Related Posts
5 Object Oriented Programming Principles learned during the last 15 years
It was about 15 years ago when I first created my first class. I went from thinking of Object Oriented programming as this awesome paradigm I should know about, I remember having all these mental models of what objects where and learning all this new vocabulary that I really didn’t fully grasp until years later […]
How to enable source highlighting when doing `less mycodefile.ext`
How to enable source highlighting when doing less mycodefile.ext Install source-highlight sudo apt install source-highlight Configure it on your .bash_profile lessWithSourceHighlightSetup() { # location of the script may vary src_hilite_pipe_script=`dpkg -L libsource-highlight-common | grep lesspipe` export LESSOPEN=”| ${src_hilite_pipe_script} %s” export LESS=’ -R ‘ } lessWithSourceHighlightSetup Use it on any code file less -N /path/to/mycode.ext view […]
NSIS CharAt Macro
Lord knows why the NSIS folks didn’t add a CharAt function to their API. In case you need it to parse a string, here’s a Macro that makes StrCpy work like a CharAt function [bash] ;Get a character inside a string given an index. ;Usage: CharAt String Index Output !macro CharAt InputString Index Output StrCpy […]