This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)setSelected:(BOOL)selected animated:(BOOL)animated { | |
| selected_ = selected; | |
| if (animated) { | |
| CATransition *transition = [CATransition animation]; | |
| transition.duration = 0.25f; | |
| transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; | |
| transition.type = kCATransitionFade; | |
| [self.selectionImageView.layer addAnimation:transition forKey:nil]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # (Above line comes out when placing in Xcode scheme) | |
| # | |
| API_TOKEN=<TestFlight API token here> | |
| TEAM_TOKEN=<TestFlight team token here> | |
| SIGNING_IDENTITY="iPhone Distribution: Development Seed" | |
| PROVISIONING_PROFILE="${HOME}/Library/MobileDevice/Provisioning Profiles/MapBox Ad Hoc.mobileprovision" | |
| #LOG="/tmp/testflight.log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // NSURL+PathParameters.h | |
| // | |
| // Created by Johan Kool on 27/9/2011. | |
| // Copyright 2011 Koolistov Pte. Ltd. All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without modification, are | |
| // permitted provided that the following conditions are met: | |
| // | |
| // * Redistributions of source code must retain the above copyright notice, this list of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Capistrano recipe for deploying Drupal7 using git and ssh. | |
| # | |
| # Part of the explanations in the comments taken from: | |
| # http://help.github.com/deploy-with-capistrano/ | |
| # | |
| set :default_environment, { | |
| # This is the $PATH for the deploymant shell. using uberpsace's recent php | |
| # and added ~/bin for drush. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| Copyright (C) 2011 Evan Long | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
| of the Software, and to permit persons to whom the Software is furnished to do | |
| so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Created by Guillermo Enriquez on 09/10/2012. | |
| // Copyright 2012 nacho4d. All rights reserved. | |
| int main(int argc, char *argv[]) { | |
| NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
| int retVal = UIApplicationMain(argc, argv, @"Application", @"AppDelegate"); | |
| [pool drain]; | |
| return retVal; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| #import <QuartzCore/QuartzCore.h> | |
| // generate a UIColor from rgb and alpha values | |
| #define RGBA(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a] | |
| #define RGB(r, g, b) RGBA(r, g, b, 1.0) | |
| // generate a UIColor | |
| #define GRAYSCALEA(rgb, a) RGBA(rgb, rgb, rgb, a) | |
| #define GRAYSCALE(rgb) GRAYSCALEA(rgb, 1.0) | |
| // generate a UIColor from a hex and an alpha value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.view.layer.anchorPoint = CGPointMake(0.50, 1.0); | |
| CAKeyframeAnimation *bounceAnimation = [CAKeyframeAnimation animationWithKeyPath:@"transform.scale"]; | |
| bounceAnimation.values = [NSArray arrayWithObjects: | |
| [NSNumber numberWithFloat:0.05], | |
| [NSNumber numberWithFloat:1.08], | |
| [NSNumber numberWithFloat:0.92], | |
| [NSNumber numberWithFloat:1.0], | |
| nil]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Gem; end | |
| require 'rubygems/version' | |
| namespace :version do | |
| module InfoPlist | |
| extend self | |
| def [](key) | |
| output = `/usr/libexec/PlistBuddy -c 'Print #{key}' Bananas-Info.plist`.strip |