Skip to content

Instantly share code, notes, and snippets.

View lucasmotta's full-sized avatar

Lucas Motta lucasmotta

View GitHub Profile
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active April 14, 2025 11:07
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.
echo 'export 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 https://www.npmjs.org/install.sh | sh
@og2t
og2t / ExtendedArray
Created March 10, 2010 11:59
AS3 Extended array (using proxy)
/*---------------------------------------------------------------------------------------------
[AS3] ExtendedArray
=======================================================================================
Some methods by Yossy, http://www.libspark.org/
VERSION HISTORY:
v0.1 Born on 2008-04-18
@og2t
og2t / AS3 HexColor transform utils
Created January 28, 2010 09:24
AS3 Hex color utils
/*---------------------------------------------------------------------------------------------
[AS3] HexColor
=======================================================================================
Based on: http://www.razorberry.com/blog/archives/2006/03/28/colour-utility-methods/
VERSION HISTORY:
v0.1 Born on 2008-08-07