Skip to content

Instantly share code, notes, and snippets.

@adicirstei
adicirstei / bad.elm
Created January 8, 2016 09:34
minimal Elm
main = 42
@adicirstei
adicirstei / data.json
Last active September 11, 2015 07:27
homework d3 vis
[
{"year": "1990",
"party": "Republicans",
"spending": 299
},
{"year": "1990",
"party": "Democrats",
"spending": 376
},
{"year": "2006",
function which {
Param ([String]$Name)
(Get-Command $Name).Definition
}
var axon = require('axon');
var sock = axon.socket('pub');
sock.bind(3000);
console.log('pub server started');
setInterval(function(){
sock.send('hello');
}, 500);
destroy: function(req, res) {
var id = req.param('id');
MyModel.findOne(id)
.exec(function foundRecord (err, record) {
if (err) return res.serverError(err);
if(!record) return res.notFound('No record found with the specified `id`.');
MyModel.destroy(id)
.exec(function(err) {
if (err) return res.negotiate(err);