Skip to content

Instantly share code, notes, and snippets.

@tommybobbins
Last active August 29, 2015 14:11
Show Gist options
  • Save tommybobbins/d3944fdc48897ad3ae3b to your computer and use it in GitHub Desktop.
Save tommybobbins/d3944fdc48897ad3ae3b to your computer and use it in GitHub Desktop.
Convert Unicorn paint to Python
grep "GET /pixel" unicorn_paint.log | awk '{print $7}' | sed -e 's/\/pixel\//unicorn\.set\_pixel\(/g' | sed -e 's/$/)/g' | sed -e 's/\//\,/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment