Skip to content

Instantly share code, notes, and snippets.

View ehaughee's full-sized avatar

Eric Haughee ehaughee

View GitHub Profile
@ehaughee
ehaughee / regexres.md
Last active May 10, 2020 22:41
Regular Expression Resources
@jihuichoi
jihuichoi / keybindings.json
Created August 22, 2019 09:55
to navigate backward/forward using mouse button 4,5 on mac
[
// move backward/forward using mouse button 4, 5
{ // remove exsiting bind
"key": "",
"command": "editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly"
},
{ // remove exsiting bind
"key": "",
# Allows for any file to be extracted using: x $1
x () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
@haacked
haacked / encouragements.txt
Created August 6, 2014 21:45
My Encouragements
😱 Seriously?
😷 That's a bad look.
Burn it to the ground! 🔥
😠 Torvalds frowns at you.
🚶 Have you considered another career?
You must hate your coworkers. 👹
😡 You must hate yourself.
Ha! Yeah, that'll work. 😄
😕 Are you just hitting keys at random?
You code like a PM. 😐
@ehaughee
ehaughee / latency.txt
Created May 31, 2012 15:29 — forked from jboner/latency.txt
Latency numbers every programmer should know
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns
Mutex lock/unlock 25 ns
Main memory reference 100 ns
Compress 1K bytes with Zippy 3,000 ns
Send 2K bytes over 1 Gbps network 20,000 ns
Read 1 MB sequentially from memory 250,000 ns
Round trip within same datacenter 500,000 ns
Disk seek 10,000,000 ns
@ehaughee
ehaughee / hack.sh
Created April 5, 2012 01:08 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#