Python snippets to do number representation conversion among binary/decimal/hexadecimal.
Python snippets to do number representation conversion among binary/decimal/hexadecimal.
This posts explain how the emacs in-built query-replace-regexp
command can be used to convert upper-cased strings to lower case.
I have a couple of theme packages installed on my emacs but I would like to assign a default theme.
I set the zenburn theme via a function zenburn
. I set the
leuven theme via another function leuven
. But in my emacs
startup I didn’t want to hard-code either of these function and thus
arose the need to set a variable to one of these functions.
Some times I would need to define an alias in tcsh which can have optional arguments. tcsh doesn’t seem to support that directly.
Here’s how I solve that problem.
Update (2017/02/23) — Now I use GNU Global with Universal
Ctags as back-end to generate the tag files. In emacs, I use the
ggtags
package – [config].
This post still has value if you are interesting in configuring
ctags
only.
This posts shows how to set up ctags
to parse SystemVerilog code and
how to access that tag database in emacs.
I found how to escape a $ sign in a regex expression in a tcsh alias. BUT it is UGLY!
Update (2017/02/23) — Now I use Hugo instead of Octopress for
blogging. But the same method of using [^1]
works for creating
footnotes.
While looking for a way to add footnotes to my posts, I came across this post.
Based on that, here is how I got the footnotes working:
Faster way to send the same command to each and every pane in your tmux session.
If you have bc
installed, you can use it to do math operations on
variables in a Makefile.
This post shows how to get the current directory name without the
preceeding path, using awk
or rev
+cut
or the boring basename
.