Skip to content

Instantly share code, notes, and snippets.

View augustl's full-sized avatar

August Lilleaas augustl

  • Oslo, Norway
View GitHub Profile
"=> wat": function (done) {
var d1 = when.defer(); d1.resolve();
var d2 = when.defer(); d2.resolve()
var d3 = when.defer();
var promises = [d1.promise, d2.promise];
var cb = function () {
console.log("done!");
assert(true);
done();
};
var d = when.defer();
serializeAlternatives().then(function (alts) {
data.alternatives = alts;
d.resolve(data);
}, d.reject);
return d.promise;
at when (/home/augustl/code/buster/buster/ramp-resources/node_modules/when/when.js:82:25)
at Object.resourceSet.addResource (/home/augustl/code/buster/buster/ramp-resources/lib/resource-set.js:197:20)
at add (/home/augustl/code/buster/buster/ramp-resources/test/resource-set-cache-test.js:9:15)
************
at when (/home/augustl/code/buster/buster/ramp-resources/node_modules/when/when.js:82:25)
at Function.all (/home/augustl/code/buster/buster/ramp-resources/node_modules/when/when.js:188:10)
at Object.buster.testCase.setUp (/home/augustl/code/buster/buster/ramp-resources/test/resource-set-cache-test.js:41:14)
************
at when (/home/augustl/code/buster/buster/ramp-resources/node_modules/when/when.js:82:25)
at resolveContent (/home/augustl/code/buster/buster/ramp-resources/lib/resource-set-cache.js:21:9)
-- SETUP
-- SETUP DONE
******** COMPLETE
Error
at Object.then (/home/augustl/code/buster/buster/buster-test/node_modules/when/when.js:207:55)
at timebox (/home/augustl/code/buster/buster/buster-test/lib/test-runner.js:245:23)
at callAndWait (/home/augustl/code/buster/buster/buster-test/lib/test-runner.js:258:9)
at next (/home/augustl/code/buster/buster/buster-test/lib/test-runner.js:277:31)
at callSerially (/home/augustl/code/buster/buster/buster-test/lib/test-runner.js:283:9)
at Object.bane.createEventEmitter.callSetUps (/home/augustl/code/buster/buster/buster-test/lib/test-runner.js:582:20)
buster.testCase("hmz", {
"=> doing this": function (done) {
this.clock = this.useFakeTimers();
assert(true);
process.nextTick(function () {
setTimeout(function () {
console.log("dat timeout");
}, 100);
});
this.clock.tick(5000);
(defrecord ZmqRpc [zmq-rpc-url]
component/Lifecycle
(start [component]
(let [ctx (ZMQ/context 1)
worker-url "inproc://myapp-api-responders"
router-socket (.socket ctx ZMQ/ROUTER)
dealer-socket (.socket ctx ZMQ/DEALER)]
(.bind router-socket zmq-rpc-url)
(.bind dealer-socket worker-url)
(dotimes [n 4]
(jetty/run-jetty
(if (= env :dev)
#((myapp-gui.ring-handler/create-handler gui-system) %)
(myapp-gui.ring-handler/create-handler gui-system))
{:port (Integer/parseInt (.get props "webserver.port"))
:join? true})
---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.
Time: 08.08.14 11:14
Description: Ticking screen
java.lang.IndexOutOfBoundsException
at java.nio.Buffer.checkIndex(Unknown Source)
at java.nio.DirectIntBufferU.get(Unknown Source)
at bma.a(SourceFile:271)
type TagAttr = (String, String)
type TagAttrs = [TagAttr]
data Tag = TagWithoutEnd String TagAttrs
| TagWithEnd String TagAttrs [Tag]
tag :: String -> TagAttrs -> [Tag] -> Tag
tag "div" attrs children = (TagWithEnd "div" attrs children)
tag "p" attrs children = (TagWithEnd "p" attrs children)
tag "input" attrs children = (TagWithoutEnd "input" attrs)
(!) :: String -> String -> String
(!) a b = reverse a ++ reverse b
"foo" ! "bar"
-- "oofrab"