[script] Create list category

This commit is contained in:
dkhamsing 2016-05-12 07:17:26 -07:00
parent 2837e185ef
commit c777aca9df

9
.github/category_list.rb vendored Normal file
View File

@ -0,0 +1,9 @@
require 'json'
c = File.read 'contents.json'
j = JSON.parse c
c = j['categories']
c.sort_by { |h| h['title']}
.each { |x| puts x['id']}