Skip to content

Instantly share code, notes, and snippets.

View gliesche's full-sized avatar
🏠
Working from home

Felix Gliesche gliesche

🏠
Working from home
View GitHub Profile
@gliesche
gliesche / facebook-sdk-jade
Created April 30, 2012 11:00
Facebook Javascript SDK loading for Jade templates
div(id="fb-root")
script
window.fbAsyncInit = function() {
FB.init({
appId :'YOUR_APP_ID', // App ID
channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
status : true, // check login status
cookies : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
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
curl http://npmjs.org/install.sh | sh