Skip to content

Instantly share code, notes, and snippets.

View mikesorae's full-sized avatar

Jumpei Nishina mikesorae

View GitHub Profile
@mikesorae
mikesorae / 0_reuse_code.js
Created April 28, 2014 01:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mikesorae
mikesorae / asicon.sh
Last active August 29, 2015 14:15 — forked from lexrus/asicon.sh
generate app icons of all sizes.
#!/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 [email protected] # Home screen for Retina display
convert $1 -resize 180x180 [email protected] # Home screen for Retina display(iPhone6+)
convert $1 -resize 76x76 Icon-ipad.png # Home screen on iPad
convert $1 -resize 152x152 [email protected] # Home screen on iPad Retina
convert $1 -resize 40x40 Icon-spotlight.png # Spotlight icon for non-Retina display