- Nota seems like a nice command-line calculator. It converts what you type into ASCII art formulas.
In[1]: 10 + 10
Out[1]: 20.0
_____
In[2]: ╲╱ 100
Out[2]: 10.0
┌ ┐
In[3]: Max │ 10 , 1 , 21 , -3 │
└ ┘
Out[3]: 21.0
In[4]: ⟨Emre's Number⟩ ≡ 79
Out[4]: 79.0
_______________
In[5]: ╲╱ Emre's Number
Out[5]: 8.888194417315589
2
In[6]: Emre's Number
Out[6]: 6241.0
Emre's Number
In[7]: Emre's Number
Out[7]: 8.1759873707105095e149
It looks a bit heavy for a CLI calculator, as it is written in Haskell and downloads 100+ MB of libraries, but when you need ASCII art to display your calculations or want to use spaces in variable names, it may prove useful.
I began to use Intention to limit my Twitter time. It allows you to set a limited time (1, 5, 10, or 15 minutes) for yourself and tracks the total time you spend on addictive sites. When this total time is lower than your goal for a period, you get a streak. It looks visually and psychologically nicer than LeechBlock.
I read the
git resetsection in the Git book. It details howgit resetbehaves with its--soft,--mixed, and--hardparameters. The first resets only theHEAD; the second resets both the index andHEAD; and the third resets the working tree and copies files back from the currentHEADto the working tree.One important point: Contrasting
git checkout masterandgit reset master: the first movesHEADto themasterbranch, while the second moves the current branch tomaster.git resetcan also be used to squash commits. Basically, yougit reset --mixedto an earlier commit likeHEAD~3and recommit. This creates a new commit, takingHEAD~3as the parent and skippingHEAD~2andHEAD~1, resulting in a newHEAD.Here are many useful pure Bash functions to be used in scripts. I’m a Zsh person, but writing Bash scripts is more portable, of course.