Skip to content

Instantly share code, notes, and snippets.

View endemic's full-sized avatar
🍛

Nathan Demick endemic

🍛
View GitHub Profile
@endemic
endemic / gist:8a755392489df0dce5dd
Created October 31, 2014 11:03
Script to create Xcode image assets
#!/usr/bin/env ruby
require "json"
require 'fileutils'
# Requires https://github.com/JamieMason/ImageOptim-CLI
Dir.glob("source/*.png") do |path|
file = path.split("/").pop
filename = file.split(".").shift