Skip to content

Instantly share code, notes, and snippets.

View desplesda's full-sized avatar

Jon Manning desplesda

View GitHub Profile
@desplesda
desplesda / resize.sh
Last active December 28, 2015 02:08
A quick little script to shrink down a large icon down to the various sizes needed on iOS. Note that small icons can get pretty blurry, so you should probably design those separately.
ORIGINAL_ICON="Icon-1024.png"
convert $ORIGINAL_ICON -resize 512 Icon-512.png
convert $ORIGINAL_ICON -resize 76 Icon-76.png
convert $ORIGINAL_ICON -resize 152 [email protected]
convert $ORIGINAL_ICON -resize 72 Icon-72.png
convert $ORIGINAL_ICON -resize 144 [email protected]
@desplesda
desplesda / gist:11363431
Last active August 29, 2015 14:00
UIView+BlurFade
UIView* myView = ...
[myView fadeOut];
@desplesda
desplesda / gist:11363491
Created April 28, 2014 06:43
UIView+BlurFade Fading In
[myView fadeIn];
// Sorting Layer Offset, for Unity sprites. By Jon Manning (@desplesda) at Secret Lab! http://secretlab.com.au
// This code is released under the CC-0 license. https://creativecommons.org/publicdomain/zero/1.0/
// You can do whatever you like with it, but neither I nor Secret Lab offer any support for it.
using UnityEngine;
using System.Collections;
// Shift all sorting layers based on Z position - the farther they are in Z,
// the lower their sorting order will be!
@desplesda
desplesda / is_the_census_working.sh
Created August 9, 2016 12:22
A little script to see if the @ABSCensus (http://census.abs.gov.au) is working or not, and when.
#!/usr/bin/env bash
echo "`date`: Starting to check the Census site"
# loops forever until you Ctrl-C it
while [[ 1 ]]; do
# check the main site, following any redirects
# dump all responses, we only care if it works (return code = 0) or not
curl -L -s http://census.abs.gov.au > /dev/null
@desplesda
desplesda / readme.txt
Created December 15, 2018 06:07
Button Squid (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@desplesda
desplesda / readme.txt
Created December 15, 2018 06:27
Button Squid (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@desplesda
desplesda / readme.txt
Created December 15, 2018 22:38
Button Squid (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@desplesda
desplesda / readme.txt
Created December 15, 2018 22:45
Button Squid (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@desplesda
desplesda / readme.txt
Created December 16, 2018 01:37
Button Squid (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html