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
var o = { | |
value: 1, | |
left: { | |
value: 2, | |
left: { | |
value: 4 | |
}, | |
right: { | |
value: 5 | |
} |
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
var o = { | |
value: 1, | |
left: { | |
value: 2, | |
left: { | |
value: 4 | |
}, | |
right: { | |
value: 5 | |
} |
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
var x = "cabbc"; | |
var y = "abaac"; |
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
var x = "cabbc"; | |
var y = "abaac"; | |
var results = []; | |
var string = ""; | |
var lcs = function (a, b) { | |
if (!a || !b) { | |
results.push(string); | |
string = ""; |
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
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 |
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
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; |
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
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; |
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
(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); | |
} |
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
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"))})() |
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
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" } } }' |