Skip to content

Instantly share code, notes, and snippets.

View zachaysan's full-sized avatar
🏎️
🚗

Zach Aysan zachaysan

🏎️
🚗
View GitHub Profile
@zachaysan
zachaysan / squarer.py
Created June 6, 2012 19:40
My version of the sq thing
class Point(object):
def __init__(self):
self.x = None
self.y = None
a = Point()
b = Point()
a.x = 20
a.y = 1
@zachaysan
zachaysan / node-and-npm-in-30-seconds.sh
Created May 5, 2011 16:18 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
printf '\nexport PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh