Skip to content

Instantly share code, notes, and snippets.

View thaoms's full-sized avatar

thaoms

  • Belgium
  • 13:12 (UTC +02:00)
View GitHub Profile
@thaoms
thaoms / gist:76e4b902f79c2fc0971db3e27af4c907
Created November 22, 2019 12:51
Git Recent Branches alias
git config --global alias.grb 'for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"'

Keybase proof

I hereby claim:

  • I am thaoms on github.
  • I am thaoms (https://keybase.io/thaoms) on keybase.
  • I have a public key ASB2LGQ1FL088dqZ56KBqr4ZuN--fBgRQFDnPZCZoEor-wo

To claim this, I am signing this object:

@thaoms
thaoms / switchclass.js
Last active June 22, 2017 07:43
Check if item has class and switch
let first = 'nav-trans';
let second = 'nav-op';
if(this.menu.classList.contains(first)) {
[first, second] = [second, first];
}
@thaoms
thaoms / gist:6112862
Last active December 20, 2015 10:08
Remove spaces from all filenames in folder to underscores
for i in *.pdf; do mv "$i" "`echo $i | sed -e 's, ,_,g'`"; done