Skip to content

Instantly share code, notes, and snippets.

View goatslacker's full-sized avatar

Josh Perez goatslacker

View GitHub Profile
var o = {
value: 1,
left: {
value: 2,
left: {
value: 4
},
right: {
value: 5
}
var o = {
value: 1,
left: {
value: 2,
left: {
value: 4
},
right: {
value: 5
}
var x = "cabbc";
var y = "abaac";
var x = "cabbc";
var y = "abaac";
var results = [];
var string = "";
var lcs = function (a, b) {
if (!a || !b) {
results.push(string);
string = "";
turkey
sweet potatoes
mashed potatoes
homemade mashies
scallops potatoes
cranberry sauce jelly
cranberry sauce pieces in it
homemade cranberry sauce with mandarin and pineapple
apple pie
pumpkin pie
var x = "chimpanzee";
var y = "human";
var lcs = function (a, b) {
var suba, subb, lasta, lastb;
var tmp;
var l, r;
var alen = a.length - 1;
var blen = b.length - 1;
var lcs = function (a, b) {
var mem = lcs.mem;
var suba, subb, lasta, lastb;
var tmp;
var l, r;
var alen = a.length - 1;
var blen = b.length - 1;
var key = a + b;
(function () {
var email = (function () {
var domain = "mailinator.com";
var chr = "";
var i = 0, m = 32;
function getChr() {
return String.fromCharCode(Math.floor(Math.random() * (90 - 67 + 1)) + 67);
}
javascript:(function(){var a=function(){function e(){return String.fromCharCode(Math.floor(Math.random()*24)+67)}var a="mailinator.com",b="",c=0,d=32;for(c;c<d;c+=1)b+=e();return[b,a]}(),b=document.querySelectorAll("input"),c=Array.prototype.forEach,d=!1;b.length>0&&(c.call(b,function(b){if(b.name.indexOf("email")!==-1||b.id.indexOf("email")!==-1)b.value=a.join("@"),d=!0}),d&&window.open("http://mailinator.com/maildir.jsp?email="+a[0]+"&x=0&y=0","_blank"))})()
v1/v2
curl -F 'login=goatslacker' -F 'token=XXX' -i -X PUT https://gist.github.com/gists/1437743 -F 'file_contents[gistfile1json]="nyan nyan"' -F 'file_name[gistfile1json]=nms.json' -F 'file_ext[gistfile1json]=json'
v3
curl --user goatslacker:foo -i -X PATCH https://api.github.com/gists/1437743 -d '{"description": "none", "files": { "nms.json": { "content": "hello world" } } }'