Skip to content

Instantly share code, notes, and snippets.

@benchester
benchester / gist:1768117
Created February 8, 2012 10:47 — forked from JonB/gist:1767992
CA Test
- (IBAction)goButtonPressed:(id)sender
{
CALayer *layer = self.theRedSquare.layer;
CATransform3D initialTransform = self.theRedSquare.layer.transform;
initialTransform.m34 = 1.0 / -1000;
CATransform3D rotationAndPerspectiveTransform = CATransform3DRotate(initialTransform, M_PI , 0 , -self.theRedSquare.bounds.size.height/2, 0);
layer.anchorPoint = CGPointMake(0.0, 0.5);
@benchester
benchester / script.php
Created August 1, 2012 11:07
jenkins post-build script for uploading to HockeyApp
<?php
// USAGE:
// php script.php -t "title" -b "bundleID" -p "platform" -r "release type"
$new_url = "https://rink.hockeyapp.net/api/2/apps/new";
function getMyBundleID()
{
// framework folder, there shouldn't be more than one
foreach (glob("*.framework") as $framework) {}
@benchester
benchester / uploadToHockey.php
Created August 3, 2012 09:12
script for uploading to Hockey from Jenkins
<?php
//==== USAGE =====
// -w "Workspace" - required
// -t "Title" - required
// -r "Release type" - optional (2:Alpha, 0:Beta, 1:Live)
// -n "Notes" - optional
// -v no arguments, enable for logging
//==== JENKINS SETUP ====
// 1) Install Jenkins Post build task plugin
// https://wiki.jenkins-ci.org/display/JENKINS/Post+build+task