This file contains 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
curl -s -L http://gt-co.de/hOaVwe > gist && chmod 755 gist && sudo mv gist /usr/local/bin/gist |
This file contains 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
// | |
// CallerQueue.js | |
// 7codes | |
// | |
// Created by gregory tomlinson on 2011-05-10. | |
// Copyright 2011 the public domain. All rights reserved. | |
// | |
/* | |
Dependency, jQuery 1.5.2+ |
This file contains 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
// | |
// rokuAttack.js | |
// 7codes | |
// | |
// Created by gregory tomlinson on 2011-05-08. | |
// Copyright 2011 the public domain. All rights reserved. | |
// | |
/* | |
Dependency |
This file contains 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
// | |
// BitsMetricViews.js | |
// bitly2 | |
// | |
// Created by gregory tomlinson on 2011-05-12. | |
// Copyright 2011 the public domain. All rights reserved. | |
// | |
/* | |
Usage: |
This file contains 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
// | |
// BitsMetaMetric.js | |
// bitly2 | |
// | |
// Created by gregory tomlinson on 2011-05-11. | |
// Copyright 2011 the public domain. All rights reserved. | |
// | |
/* |
This file contains 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
/* | |
* SeriesQueue | |
* author: gregory tomlinson | |
* */ | |
(function(window, undefined) { | |
// If a method returns true, the motion queue continues animation | |
// by default, functions return null, meaning empty funcs | |
// will not animate, instead, they will execute once, |
This file contains 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
/* | |
* | |
* setTimeout can take more than 2 arguments. args > 2 will be passed to method in arg position 1 | |
* setTimeout(myMethod, 10, "one", { "foo" : "bar" } | |
* | |
* */ | |
function myMethod( param1, param2 ) { | |
console.log(arguments); | |
} |
This file contains 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
// utility string parse function | |
function out( str, options ) { | |
for(k in options) { | |
str=str.replace(/%\{([a-zA-Z0-9-]{1,}?)\}/mi, function(m, key ){ | |
return options[key]; | |
}); | |
} | |
return str; | |
} |
This file contains 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
/* | |
* | |
* | |
* file: animator.js | |
* author: gregory tomlinson | |
* desc: handy scaffolding for doing continous animations | |
* | |
* the requestion animation frame works very well as a lazy timer | |
* it's cpu cycles are low and it informs the browser the | |
* intention is to change the DOM |
This file contains 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
/* | |
* | |
* | |
* file: raft.js | |
* R.A.F.T. | |
* | |
* Request | |
* Animation | |
* Frame | |
* Timer/Template |