Skip to content

Instantly share code, notes, and snippets.

View sebge2emasphere's full-sized avatar

Sébastien Gérard sebge2emasphere

  • emasphere
View GitHub Profile
@dlo
dlo / generate_iconset_contents.py
Created November 1, 2017 01:01
Automatically generate a Content.json file for an iOS icon set from a list of iOS icons in a folder.
#!/usr/bin/env python
# Usage: ls *.png | ./generate_iconset_contents.py
import sys
import re
import json
r = re.compile(".*(AppStore|iPhone|iPad).*-([\d\.]+)(@\dx)?\.png")