Skip to content

Instantly share code, notes, and snippets.

@bahamas10
bahamas10 / output.txt
Created August 28, 2012 19:58
figure out what is trying to write to a stream in node
Trace
at WriteStream.process.stdout.write (/Users/dave/dev/node-latest/index.js:4:11)
at Object.exports.log (console.js:25:18)
at Object.keys.forEach.console.(anonymous function) [as log] (/Users/dave/dev/node-latest/node_modules/log-timestamp/index.js:13:14)
at defaultCb (/Users/dave/dev/node-latest/node_modules/npm/lib/npm.js:205:16)
at Conf.done (/Users/dave/dev/node-latest/node_modules/npm/node_modules/npmconf/npmconf.js:218:15)
at Object.oncomplete (fs.js:297:15)
undefined
@adamschwartz
adamschwartz / instant-flat-ui.js
Last active December 27, 2015 15:39
"Instant" "Flat" "UI"™ — Run this bookmarklet on any page to make it "flat".
var d = document.createElement('div');
d.innerHTML = '\
<style>\
*:not(.icon):not(i), *:not(.icon):not(i):after, *:not(.icon):not(i):before {\
box-shadow: none !important;\
text-shadow: none !important;\
background-image: none !important;\
}\
*:not(.icon):not(i) {\
border-color: transparent !important;\
@aescarcha
aescarcha / nodeAsyncTest.js
Created September 25, 2018 07:03
Javascript async / await resolving promises at the same time test
// Simple gist to test parallel promise resolution when using async / await
function promiseWait(time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve(true);
}, time);
});
}