Skip to content

Instantly share code, notes, and snippets.

View gtzilla's full-sized avatar
🎯
Focusing

gregory tomlinson gtzilla

🎯
Focusing
View GitHub Profile
@gtzilla
gtzilla / SeriesQueue.js
Created July 7, 2011 05:53
Just a call queue based around the webkit animation frame
/*
* 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,
//
// BitsMetricViews.js
// bitly2
//
// Created by gregory tomlinson on 2011-05-12.
// Copyright 2011 the public domain. All rights reserved.
//
/*
Usage:
//
// BitsMetaMetric.js
// bitly2
//
// Created by gregory tomlinson on 2011-05-11.
// Copyright 2011 the public domain. All rights reserved.
//
/*
//
// rokuAttack.js
// 7codes
//
// Created by gregory tomlinson on 2011-05-08.
// Copyright 2011 the public domain. All rights reserved.
//
/*
Dependency
//
// CallerQueue.js
// 7codes
//
// Created by gregory tomlinson on 2011-05-10.
// Copyright 2011 the public domain. All rights reserved.
//
/*
Dependency, jQuery 1.5.2+
@gtzilla
gtzilla / install gist commandline
Created April 26, 2011 16:20
one liner for installing the gist commandline tool mac OSX
curl -s -L http://gt-co.de/hOaVwe > gist && chmod 755 gist && sudo mv gist /usr/local/bin/gist
//
// phantom_test.js
// bit_spam
//
// Created by gregory tomlinson on 2011-04-23.
// Copyright 2011 the public domain. All rights reserved.
//
// requires phantomjs (sudo port -v install phantomjs)
// -- requires qt4-(os) aka qt4-mac
@gtzilla
gtzilla / js closure
Created April 22, 2011 17:49
JS CLosure
(function(window) {
function super_private() {
console.log("only called from inside, aka private");
}
window.myPublicObj=function() {
super_private();
#!/usr/bin/env python
"""
Add php-serve.py to your PATH, then, from whatever directory is the root
of your PHP application, just run:
$ php-serve.py
You can optionally specify a port number as an argument. By default,
port 8000 is used:
var partial = exports.partial = function partial(fn) {
var args = arguments,
func = fn;
[].shift.apply(args);
return function() {
var _args = args;
[].push.apply(_args, arguments);
return func.apply(func, _args);
};
};