Skip to content

Instantly share code, notes, and snippets.

@jeanlaurent
Created February 1, 2013 20:00
Show Gist options
  • Save jeanlaurent/4693696 to your computer and use it in GitHub Desktop.
Save jeanlaurent/4693696 to your computer and use it in GitHub Desktop.
Read codestory data in json to markdown for a blog post
fs = require 'fs'
json = fs.readFileSync 'data.json.1','UTF-8'
data = JSON.parse json
data.sort (a,b) ->
b.perf - a.perf
for user in data when user.perf >= 1000
console.log "* ![](#{user.gravatar})#{user.name} #{user.perf}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment