Skip to content

Instantly share code, notes, and snippets.

View theevocater's full-sized avatar
🐈‍⬛

Jake Kaufman theevocater

🐈‍⬛
View GitHub Profile
@theevocater
theevocater / .bashrc
Created May 29, 2013 21:06
I couldn't find a concise "add npm bin" anywhere on the web so here you go. If you use npm and you need the binaries everywhere you go (ie you use less) just add this to your .bashrc and it will add it to your path.
if [[ `which npm` && -d `npm bin` ]] ; then
PATH=$PATH:`npm bin`
fi
@theevocater
theevocater / gist:5358997
Created April 10, 2013 22:23
Python Random Scoping
>>> x = [1,2,3,4,5]
>>> for i in x:
... print i
...
1
2
3
4
5
>>> print i