Skip to content

Instantly share code, notes, and snippets.

View dprados's full-sized avatar

Diego Prados dprados

View GitHub Profile
@a2
a2 / install_booted.sh
Last active September 25, 2018 12:11
Installs app at argument path to all booted simulators and launches them
#!/bin/sh
if [ "$#" -ne 1 ]; then
echo "$0 <path>"
exit 1
fi
APP_PATH=$1
BUNDLE_ID=`/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "$APP_PATH/Info.plist"`
for DEVICE in $(xcrun simctl list -j devices | jq --raw-output ".devices[][] | select(.state == \"Booted\") | .udid"); do
@sketchytech
sketchytech / gist:ff01f08c48c295fa9b25
Created December 5, 2014 12:11
Swift: Spinning cube example
import UIKit
class ViewController: UIViewController {
var topOfCube:CAShapeLayer!
var leftOfCube:CAShapeLayer!
var frontOfCube:CAShapeLayer!
var backOfCube:CAShapeLayer!
var rightOfCube:CAShapeLayer!
var baseOfCube:CAShapeLayer!
override func viewDidLoad() {