[script] Create list category

This commit is contained in:
dkhamsing 2016-05-12 07:17:26 -07:00
parent 2837e185ef
commit c777aca9df
1 changed files with 9 additions and 0 deletions

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']}