Skip to content

Instantly share code, notes, and snippets.

@itayw
itayw / bitdeli.md
Created October 31, 2013 17:34
A sample bitdeli tag syntax

Bitdeli Badge

@itayw
itayw / out.js
Created October 31, 2013 17:20
nodejs - simple write to file
var fs = require('fs');
fs.writeFile("/tmp/test", "Hey there!", function(err) {
if(err) {
console.log(err);
} else {
console.log("The file was saved!");
}
});
@itayw
itayw / authors.js
Created October 31, 2013 15:15
nodejs script to create AUTHORS.md
var
fs = require('fs'),
spawn = require('child_process').spawn,
git = spawn('git', ["log", "--format='%aN##<%aE>'"]);
var exclusions = ['<[email protected]>'];
var buffer = '';
git.stdout.on('data', function (data) {
buffer += data;