Skip to content

Instantly share code, notes, and snippets.

View vigorouscoding's full-sized avatar

Kai Schwaiger vigorouscoding

View GitHub Profile
#!/usr/bin/env bash
set -e
target_osx=$(sw_vers -productVersion)
project_dir=/Users/rkmax/development/aseprite
skia_dir=/Users/rkmax/development/skia
arch="$(uname -m)"
bundle_trial_url=https://www.aseprite.org/downloads/trial/Aseprite-v1.2.40-trial-macOS.dmg
@vigorouscoding
vigorouscoding / gist:f5abeedd3c17fa6eb9f47602890245e9
Created July 26, 2016 14:26 — forked from juri/gist:5677168
Parse a GPX file and add extra locations by interpolation. This allows you to slow down a simulated route in Xcode/iOS Simulator.
#!/usr/bin/python
# Interpolate GPX waypoints to slow a simulated route down.
import itertools
import sys
import xml.etree.ElementTree as ET
def pairwise(iterable):
"s -> (s0,s1), (s1,s2), (s2, s3), ..."
@vigorouscoding
vigorouscoding / Create App Icons.jsx
Last active January 24, 2017 20:05 — forked from twonjosh/Create iOS Icons.jsx
Photoshop script for automated generation of iOS and Mac App Icons (http://www.vigorouscoding.com/2013/02/photoshop-script-for-app-icon-creation-for-ios-and-mac-apps/) - Enabled non-PNG file support. - Removed some (IMHO unnecessary) checks since the user can load PSDs or some kind of vector-based image - Added a dialog to select for which platf…
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete permanently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
@vigorouscoding
vigorouscoding / NSString+Templating.h
Last active December 11, 2015 20:29 — forked from popcornylu/NSString+template.c
A simple templating category for NSString. I made a couple of small changes to better suit my needs. (check out the diff to see what)
#import <Foundation/Foundation.h>
@interface NSString (Templating)
+(NSString*)stringWithTemplate:(NSString*)tpl
fromMap:(NSDictionary*)map;
@end