This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(window,undefined){ | |
| // Load Helpers | |
| var | |
| intervalScript, intervalJquery, | |
| loadScript = function(scriptUrl){ | |
| var e = document.createElement('script'); | |
| e.setAttribute('src',scriptUrl); | |
| window.document.body.appendChild(e); | |
| return e; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var HTTPS = require('https'); | |
| var QueryString = require('querystring'); | |
| /** | |
| * Facebook API Wrapper | |
| * @constructor | |
| * @param {Object} info Info about the Facebook application | |
| */ | |
| var Client = function (info) { | |
| if (!info.id) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- IMStatus | |
| -- version 2.0, Lantrix (http://techdebug.com) | |
| -- idea conceived from script by Jason Kenison "theWebGuy" Blog at: | |
| -- http://www.jasonkenison.com/blog.html?id=22 | |
| (* | |
| Copyright (c) 2008, TechDebug.com | |
| Permission to use, copy, modify, and/or distribute this software for any | |
| purpose with or without fee is hereby granted, provided that the above |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var querystring = require("querystring"); | |
| var base64ToString = function(str) { | |
| return (new Buffer(str || "", "base64")).toString("ascii"); | |
| }; | |
| var base64UrlToString = function(str) { | |
| return base64ToString( base64UrlToBase64(str) ); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Ported from Stefan Gustavson's java implementation | |
| // http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
| // Read Stefan's excellent paper for details on how this code works. | |
| // | |
| // Sean McCullough banksean@gmail.com | |
| /** | |
| * You can pass in a random number generator object if you like. | |
| * It is assumed to have a random() method. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Vim syntax file | |
| " Language: HTML (version 5) | |
| " Maintainer: Rodrigo Machado <rcmachado@gmail.com> | |
| " URL: http://gist.github.com/256840 | |
| " Last Change: 2010 Aug 26 | |
| " License: Public domain | |
| " (but let me know if you liked it :) ) | |
| " | |
| " Note: This file just adds the new tags from HTML 5 | |
| " and don't replace default html.vim syntax file |
NewerOlder