This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl | |
#usage spliticon.pl masterfile.png | |
#e.g masterfile.png at 90*60 | |
#outputs 3 files into subdir spliticons of cwd | |
#spliticons/masterfile.png at 30*20 | |
#spliticons/masterfile@2x.png at 60*40 | |
#spliticons/masterfile@3x.png at 90*60 | |
use File::Basename; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// imageset-repair | |
// | |
// Created by Warren Burton on 25/07/2014. | |
// Create a new Xcode commmand line project and paste into main.m | |
// Use with a source control system | |
// May have unintended consequnces so you will want the ability to revert. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl | |
#enumify.pl | |
#converts a typical enum declaration into a corresponding switch/case block | |
#e.g. | |
# typedef enum { | |
# Foo, | |
# Bar, | |
# Baz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Usage: | |
#generate_icons.sh /path/to/mastericon.png | |
#Assumes your master icon image is larger than 180px by 180px at least | |
i=0 | |
sizes=(76 72 50 40 29 57 60 167) |
NewerOlder