Skip to content

Instantly share code, notes, and snippets.

View tfogo's full-sized avatar

Tim Fogarty tfogo

View GitHub Profile
@paulirish
paulirish / bling.js
Last active November 4, 2024 17:48
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
};
NodeList.prototype.__proto__ = Array.prototype;
@SeraphimSerapis
SeraphimSerapis / liwpp.js
Created October 12, 2013 23:41
Code to use Log In with PayPal in Node.js apps. Uses request and querystring and runs on the express framework.
'use strict';
var request = require('request');
var querystring = require('querystring');
/*
* CLIENT DETAILS
*/
var CLIENT_ID = "CLIENT_ID_HERE";
@caniszczyk
caniszczyk / clone-all-twitter-github-repos.sh
Created October 9, 2012 04:25
Clone all repos from a GitHub organization
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'