I hereby claim:
- I am omni5cience on github.
- I am se (https://keybase.io/se) on keybase.
- I have a public key whose fingerprint is 70A3 4B5E CBC5 C9E0 40D4 FBED 9DAB 6752 4EA8 39C7
To claim this, I am signing this object:
var wat = /.+/g; | |
wat.test(undefined); // true | |
wat.test(undefined); // false | |
wat |
I hereby claim:
To claim this, I am signing this object:
NOTE: Scroll down for explanation (the difference turns out to be scoping, not closures per se).
$ cat juices.lua
local fruits = {"apple", "orange", "grape"}
local juicers = {}
for i,v in ipairs(fruits) do
# ruby | |
l=92.chr;eval s="s=s.dump[r=1..-2].gsub(/("+l*4+"){4,}(?!\")/){|t|'\"+l*%d+\"'%(t | |
.size/2)};5.times{s=s.dump[r]};puts\"# python\\nprint(\\\"# perl\\\\nprint(\\\\\\ | |
\"# lua"+l*4+"nprint("+l*7+"\"(* ocaml *)"+l*8+"nprint_endline"+l*15+"\"-- haskel | |
l"+l*16+"nimport Data.List;import Data.Bits;import Data.Char;main=putStrLn("+l*31 | |
+"\"/* C */"+l*32+"n#include<stdio.h>"+l*32+"nint main(void){char*s[501]={"+l*31+ | |
"\"++intercalate"+l*31+"\","+l*31+"\"(c(tail(init(show("+l*31+"\"/* Java */"+l*32 | |
+"npublic class QuineRelay{public static void main(String[]a){String[]s={"+l*31+" | |
\"++intercalate"+l*31+"\","+l*31+"\"(c("+l*31+"\"brainfuck"+l*64+"n++++++++[>++++ | |
<-]+++++++++>>++++++++++"+l*31+"\"++(concat(snd(mapAccumL h 2("+l*31+"\"110"+l*31 |
From 1aac15aadd1c6231854fc38dfa25f6d3ac920d4e Mon Sep 17 00:00:00 2001 | |
From: Sam Epstein <same008@gmail.com> | |
Date: Thu, 3 Nov 2011 21:13:55 -0400 | |
Subject: [PATCH] First pass at jQuery.later | |
--- | |
src/core.js | 10 ++++++++++ | |
test/unit/core.js | 13 +++++++++++++ | |
2 files changed, 23 insertions(+), 0 deletions(-) |
/*! | |
* jQuery JavaScript Library v1.7pre | |
* http://jquery.com/ | |
* | |
* Copyright 2011, John Resig | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ |
Go to the stanford machine learning class site and run that from the js console | |
It's helpful to go to the download videos page, because you need to get the video ids from there; |
net.js:560 | |
socket._readWatcher.set(socket.fd, true, false); | |
^ | |
TypeError: Cannot call method 'set' of null | |
at doConnect (net.js:560:23) | |
at net.js:717:9 | |
at dns.js:192:30 | |
at IOWatcher.callback (dns.js:74:15) |
error: Error running command apps start | |
error: Nodejitsu Error (500): Internal Server Error | |
warn: Error returned from Nodejitsu | |
error: Error: Attempt to start running application | |
error: at /root/nodejitsu/lib/nodejitsu/resources/app/controller.js:342:23 | |
error: at /root/nodejitsu/lib/nodejitsu/resources/app/controller.js:310:5 | |
error: at /root/nodejitsu/vendor/resourcer/lib/resourcer/resource.js:147:21 | |
error: at loop (/root/nodejitsu/vendor/resourcer/lib/resourcer/resource.js:63:17) | |
error: at Function.runAfterHooks (/root/nodejitsu/vendor/resourcer/lib/resourcer/resource.js:65:10) | |
error: at /root/nodejitsu/vendor/resourcer/lib/resourcer/resource.js:144:22 |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
warn: Error returned from Nodejitsu | |
error: Error: ECONNREFUSED, Connection refused | |
error: at Socket._onConnect (net.js:601:18) | |
error: at IOWatcher.onWritable [as callback] (net.js:186:12) | |
info: Nodejitsu not ok |