Created
February 1, 2013 20:00
-
-
Save jeanlaurent/4693696 to your computer and use it in GitHub Desktop.
Read codestory data in json to markdown for a blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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