Skip to content

Instantly share code, notes, and snippets.

@lucas-clemente
Created March 18, 2014 16:34
Show Gist options
  • Save lucas-clemente/9623826 to your computer and use it in GitHub Desktop.
Save lucas-clemente/9623826 to your computer and use it in GitHub Desktop.
convert sublime snippets to atom
require "json"
json = JSON.parse(IO.read('snippets.json'))
json.each do |s|
name = s["contents"]
prefix = s["trigger"]
body = s["contents"]
puts name.to_json
puts " 'prefix': #{prefix.to_json}"
puts " 'body': #{body.to_json}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment