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
// | |
// SDTimedDisableOverlayView.m | |
// TimedDisabledAnimation | |
// | |
// Created by Tyrone Trevorrow on 15-05-13. | |
// Copyright (c) 2013 Sudeium. All rights reserved. | |
// | |
#import "SDTimedDisableOverlayView.h" |
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
// | |
// FireworksView.m | |
// Cloudsdale | |
// | |
// Created by Tyrone Trevorrow on 24/05/12. | |
// Copyright (c) 2012 Cloudsdale. All rights reserved. | |
// | |
#import <QuartzCore/QuartzCore.h> | |
#import "FireworksView.h" |
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
static objc_property_t* class_copyPropertyList_recursive(Class aClass, unsigned int *outCount) | |
{ | |
unsigned int total = 0; | |
objc_property_t *contiguousList = nil; | |
objc_property_t *ptr = nil; | |
unsigned int ptrOffset = 0; | |
unsigned int listLen = 0; | |
unsigned int const increment = 32; | |
contiguousList = malloc(sizeof(objc_property_t) * increment); |
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
require 'rubygems' | |
require 'snmp' | |
require 'socket' | |
iPhones = [ "00:23:32:f4:c4:a1" ] | |
pcs = [ "00:1B:21:29:70:1D" ] | |
wakeUp = Hash::new | |
woken = Hash::new | |
seen = Hash::new |
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
@interface HorizontallyPagingCollectionViewFlowLayout : UICollectionViewFlowLayout | |
@end | |
@implementation HorizontallyPagingCollectionViewFlowLayout | |
- (CGSize) collectionViewContentSize | |
{ | |
CGSize superSize = [super collectionViewContentSize]; | |
CGSize frameSize = self.collectionView.frame.size; |
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 | |
REMOTE="origin" | |
if [ $# -gt 0 ] | |
then | |
REMOTE="$1" | |
fi | |
BRANCH=$(git symbolic-ref -q HEAD) | |
BRANCH=${BRANCH##refs/heads/} | |
BRANCH=${BRANCH:-HEAD} |
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
// | |
// RoundedRectUtility.h | |
// Cloudsdale | |
// | |
// Created by Tyrone Trevorrow on 28/02/12. | |
// Copyright (c) 2012 Cloudsdale. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
#ifndef BRITISH_H | |
#define BRITISH_H | |
#define perchance if | |
#define otherwise else | |
#define what_about switch | |
#define perhaps case | |
#define splendid break | |
#define on_the_off_chance default |
NewerOlder