View applause-template
This file contains 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
*Version : x.x.x (Build xxxx)* | |
*_TITLE OF THIS RELEASE_* | |
*Description:* | |
• *Section:* change | |
• ... | |
*Bug fixes:* | |
• Fixed ... |
View Example.swift
This file contains 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
// create a chache with 60 seconds expiration time | |
var cache: InMemoryCache = InMemoryCache<LocalUrl>(expirationInSeconds: 60) | |
// data will either be returned from cache or created via callback and then returned | |
let data = cache.cachedData { | |
// do the heavy object creation here | |
return MyHeavyObject() | |
} | |
// invalidate the cache, next call will have to re-create the heavy object |
View CAMediaTimingFunctionExtension.swift
This file contains 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 QuartzCore | |
enum BezierType { | |
case Default | |
case Linear | |
case EaseIn | |
case EaseOut | |
case EaseInOut |
View Rakefile
This file contains 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
desc 'Build' | |
task :build do | |
run("xbuild Project.sln", "Build failed") | |
run("nunit-console Tests/bin/Debug/Project-Tests.dll", "Tests failed") | |
run("mono Tests/vendor/NSpecRunner.exe Tests/bin/Debug/Project-Tests.dll", "Specs failed") | |
end | |
task :default => :demo | |
# This is the important method |
View vb_bootcamp.sh
This file contains 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/sh | |
# find and unmount volume (change 'BOOTCAMP' name accordingly) | |
amount=`diskutil list | grep BOOTCAMP | wc -l` | |
if [ $amount = 1 ] | |
then | |
path=`diskutil list | grep BOOTCAMP | sed -e 's/^\(.*\)\(disk0s.\)$/\/dev\/\2/g'` | |
sudo chmod 777 $path | |
diskutil unmount $path | |
fi |
View mono.rb
This file contains 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
# http://www.mono-project.com/Compiling_Mono_on_OSX | |
require 'formula' | |
class Mono < Formula | |
url 'http://download.mono-project.com/sources/mono/mono-3.2.3.tar.bz2' | |
homepage 'http://www.mono-project.com/' | |
sha1 'e356280ae45beaac6476824d551b094cd12e03b9' | |
def install |
View Kiwi (new)
This file contains 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
[[[user1Dict[@"highscores"] valueForKey:@"fb_id"] should] contain:fbId_user2]; | |
[[[user2Dict[@"highscores"] valueForKey:@"fb_id"] should] contain:fbId_user1]; |
View UIImageView+Mask.h
This file contains 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> | |
@interface UIImageView (Mask) | |
- (void)applyMask:(NSString *)maskName; | |
@end |
View NSNotificationMatcher.h
This file contains 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 "KWHCMatcher.h" | |
#import "KWMessageTracker.h" | |
#import "Kiwi.h" | |
@interface NSNotificationMatcher : NSObject <HCMatcher> | |
{ | |
NSDictionary *_userInfo; | |
} | |
+ (id)matcherWithUserInfo:(NSDictionary *)dictionary; |
View .zshrc
This file contains 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
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
plugins=(git osx brew svn) | |
# Normal aliases | |
alias gco='git co' | |
alias gci='git ci' | |
alias grb='git rb' | |
alias d='git diff --word-diff $@' | |
alias c='git commit -v $@' | |
alias s='git status -sb' |
NewerOlder