@@ -0,0 +1,1239 @@
+# Just a quick script used to convert 'skills.json' into a different format%0A%0Aimport json%0Afrom itertools import *%0A%0Adef in_array(array, key, category_name):%0A    for i, item in enumerate(array):%0A        if key in item and item%5Bkey%5D == category_name:%0A            return i%0A%0Awith open('derived/skills.json', 'r') as skills:%0A    data = json.load(skills)%0A%0A    improved = %7B%7D%0A%0A    improved%5B'name'%5D = %22skills%22%0A    improved%5B'children'%5D = %5B%5D%0A%0A    for skills in data:%0A        category = skills%5B'category'%5D%0A        children = improved%5B'children'%5D%0A%0A        index = in_array(children, 'category', category)%0A        # create children list if no there already%0A        if index is None:%0A            children.append(%7B'category':category, 'children': %5B%5D%7D)%0A            index = -1%0A%0A        grandchildren = children%5Bindex%5D%5B'children'%5D%0A%0A        index = in_array(grandchildren, 'skill',  skills%5B'skill'%5D)%0A%0A        if index is None:%0A            grandchildren.append(%7B'skill':skills%5B'skill'%5D, 'type':skills%5B'type'%5D, 'children':%5B%5D%7D)%0A            index = -1%0A%0A        greatgrandchildren = grandchildren%5Bindex%5D%5B'children'%5D%0A        greatgrandchildren.append(%7B'level':skills%5B'level'%5D, 'count':skills%5B'count'%5D, 'user_ids':skills%5B'user_ids'%5D%7D)%0A%0A%0A    print json.dumps(improved)%0A

add script to reformat skills for use with bubbles