Skip to content

Instantly share code, notes, and snippets.

View fbiville's full-sized avatar

Florent Biville fbiville

View GitHub Profile
@fbiville
fbiville / aggregator.js
Created January 4, 2014 10:07
Custom feed aggregator. Stack: requirejs (+text.js)+underscore+async+moment.js+jquery+handlebars
define( ['jquery', 'underscore', 'async', 'moment', 'Handlebars'],
function($, _, async, moment, Handlebars) {
var crossOriginFeedParserUrl = function(limit, feedUrl) {
return document.location.protocol +
'//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num='+
limit+
'&callback=?&q=' +
encodeURIComponent(feedUrl);
},
@guybrush
guybrush / gist:721762
Created November 30, 2010 14:38
nodejs file-sha1
#!/usr/bin/env node
require('fs').readFile('image.png',function(err, data){
console.log(require('crypto').createHash('sha1').update(data).digest('hex'))
})