Skip to content

Instantly share code, notes, and snippets.

View tonyseing's full-sized avatar

Tony Seing tonyseing

  • United States
View GitHub Profile
@tonyseing
tonyseing / gist:f80c432aecaccee5ab5d
Created December 12, 2014 19:30
Auto-accept Facebook friend requests bookmarklet
javascript:for( i = 1;i<document.getElementsByName("actions[accept]").length;i++){document.getElementsByName("actions[accept]")[i].click();}void(0);
(defmacro r-infix [form]
(cond (not (seq? form))
form
(= 1 (count form))
`(r-infix ~(first form))
:else
(let [operator (second form)
first-arg (first form)
others (rest (rest form
))]
@tonyseing
tonyseing / server.js
Created May 8, 2011 20:28 — forked from kurokikaze/server.js
Delaying proxy, xkcd-style http://wp.me/pfjwm-me
var oc = function(a) {
var o = {};
for(var i=0;i<a.length;i++) {
o[a[i]]='';
}
return o;
}
var http = require('http'),
url = require('url'),