Skip to content

Instantly share code, notes, and snippets.

Avatar

mikesorae mikesorae

View GitHub Profile
@mikesorae
mikesorae / asicon.sh
Last active Aug 29, 2015 — forked from lexrus/asicon.sh
generate app icons of all sizes.
View asicon.sh
#!/bin/bash
# According to https://developer.apple.com/library/ios/#qa/qa1686/_index.html
# Install ImageMagick with MacPort: sudo port install ImageMagick
convert $1 -resize 512x512 iTunesArtwork.png # Ad Hoc iTunes
convert $1 -resize 60x60 Icon.png # Home screen on non-Retina
convert $1 -resize 120x120 Icon@2x.png # Home screen for Retina display
convert $1 -resize 180x180 Icon@3x.png # Home screen for Retina display(iPhone6+)
convert $1 -resize 76x76 Icon-ipad.png # Home screen on iPad
convert $1 -resize 152x152 Icon-ipad@2x.png # Home screen on iPad Retina
convert $1 -resize 40x40 Icon-spotlight.png # Spotlight icon for non-Retina display
@mikesorae
mikesorae / 0_reuse_code.js
Created Apr 28, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console