Skip to content

Instantly share code, notes, and snippets.

@banksJeremy banksJeremy/_.js
Created Jul 20, 2012

Embed
What would you like to do?
(function a(){if(arguments.length>100){var b=0,c=new $.Deferred,d=[],e,f=setInterval(e=function(e){b>e.length?(clearInterval(f),c.resolve(d)):(a.apply(this,[].slice.call(e,b,b+100)).then(function(a){[].push.apply(d,a)}),b+=100)},1e4,arguments);e(arguments);return c.promise()}var g=[].map.call(arguments,String),h="XeZZHccRWHO6GGXUpZr6sg((",i="http://api.stackexchange.com/2.0/posts/"+g.join("%3B")+"?order=asc&sort=creation&site=stackoverflow&pagesize=100&filter=!LYcS_pIiq0KIhg63M2ZZ4y&key="+h,j=arguments;return $.ajax(i,{dataType:"jsonp"}).pipe(function(a){var b=[],c={},d;for(d=0;d<a.items.length;d++)c[a.items[d].post_id]=!0;for(d=0;d<g.length;d++)c[g[d]]||b.push(g[d]);console.log("data.items.length",a.items.length),console.log("postIds.length",g.length);return b})})(215894,215903,215907,215919,215925,215931,215968,215974,215977,215986,215997,216023,216026,216034,216045,216055,216062,216227,216232,216235,216910,217620,257880,267431,267496,267503,275094,277812,311003,315016,384551,573940,737556,827771,827859,829115,829238,854281,854511,897509,901597,1091998,1116974,1116982,1212607,1213276,1213322,1252683,1462314,1510988,1573524,1573626,1586180,1586234,1604693,1891014,1891284,1891573,1892485,2214450,2219836,2256822,2259635,2259650,2261790,2261817,2275056,2276302,2300226,2303375,2452519,2459172,2526891,2527865,2634215,2664677,2669755,2694639,2695135,2695173,2716244,2716440,2790434,2791458,2795355,2799779,2800003,2800151,2800182,2800255,2807717,2815469,2816158,2816187,2822603,2844427,2883662,2893087,2901299,2901567,2910387,2977062,2977092,2977412,2978760,2980033,2980045,2981112,2990352,3019446,3026941,3026946,3045994,3048185,3049784,3073521,3120439,3120488,3121358,3122171,3122187,3128763,3129136,3150039,3161987,3162273,3162415,3162714,3162832,3168292,3168734,3176325,3176863,3182676,3208530,3208722,3208764,3208781,3208815,3209216,3232460,3232498,3260398,3272967,3273718,3291060,3365715,3396411,3401128,3401148,3401624,3402361,3410997,3423111,3423467,3433963,3433974,3452743,3452962,3454096,3472402,3488601,3489509,3489560,3489632,3503020,3534939,3545915,3545953,3592265,3617668,3618273,3621216,3637713,3645884,3646080,3689412,3754946,3755188,3760485,3778481,3779404,3794957,3799203,3814367,3898078,3954355,3967176,3977862,3982782,3983005,4005804,4153718,4163849,4173002,4203901,4219301,4230275,4237575,4239473,4239736,4241012,4258826,4298164,4299398,4299536,4308651,4308742,4353659,4353959,4387341,4387734,4403275,4419172,4441029,4462261,4479114,4484849,4497924,4509861,4513193,4514056,4522898,4523027,4531984,4536149,4539398,4546360,4558732,4559399,4559463,4575308,4580011,4588009,4645613,4645636,4713906,4714144,4714528,4740062,4795510,4795592,4845881,4845938,4891920,4914439,4934997,4935050,4962889,5076267,5155499,5210494,5370052,5411991,5445750,5602129,5604106,5608791,5611386,5614666,5653420,5767548,5767714,5770139,5848140,5856728,5896845,6341106,6372160,6398496,6422753,6461052,6478978,6479131,6581091,6633886,6807440,7056717,7056745,7057081,7131974,7245127,7245149,7245173,7260990,7360424,7477587,7632820,7678595,7707152,7710220,7746089,7969145,7969482,7969832,7969964,7971221,7974119,7978378,8036452,8038717,8041274,8043893,8043997,8201439,8280823,8281601,8281756,8281858,8286376,8310440,8369818,8438304,8439454,8440553,8461229,8465899,8552651,8652588,8687089,8688262,8692499,8730885,8732824,8771358,8777074,8777582,8816921,8857275,8857463,8862427,8864841,8864951,9062300,9119287,9217472,9240374,9240396,9253622,9325957,9393268,9501107,9501798,9556016,9557293,9572728,9573827,9584554,9584792,9616681,9616886,9648207,9729560,9729631,9778294,9840055,9930730,9947588,9949260,9957004,9959780,9963265,10058547,10073059,10121291,10121574,10124432,10166362,10187369,10267241,10272902,10295312,10300702,10312856,10329903,10410315,10500639,10500723,10553155,10580329,10580357,10661311,10689930,10791252,10791286,10819322,10897664,10901677,10914270,10971237,10971303,10986421,11031027,11047194,11049248,11049900,11079623,11079985,11097930,11099983,11103121,11104122,11118079,11120343,11140437,11159056,216058,1255825,1255841,1482446,2262401,2662934,2663205,2664697,2796678,2977953,2978363,2980017,2980113,2980037,3129711,3162136,3720310,3795679,5127034,5426581,827594,7318496,9904370,10592200).then(function(a){document.write("<!doctype html><html><body><code>select Id as [Post Link], * from Posts where Id in ("+a+")")})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.