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 "SenTestCase+MethodSwizzling.m" | |
@interface ExampleTest : SenTestCase {} | |
+ (BOOL)trueMethod; | |
+ (BOOL)falseMethod; | |
@end | |
@implementation ExampleTest | |
+ (BOOL)trueMethod { return YES; } |
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
#!/usr/bin/env ruby | |
# Exports open issues for one project as CSV | |
# | |
# Usage: | |
# ./list-issues.rb > my-project-issues.csv | |
require 'net/http' | |
require 'json' | |
require 'csv' |
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
// | |
// PKRespondsToMatcher.h | |
// | |
// Created by Pavel Kunc on 11/02/2011. | |
// Copyright 2011 Pavel Kunc. All rights reserved. | |
// | |
#import <OCHamcrestIOS/HCBaseMatcher.h> | |
#import <OCHamcrestIOS/HCDescription.h> | |
#import <objc/objc-api.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
// | |
// TestiTunesAppDelegate.h | |
// TestiTunes | |
// | |
// Created by Pavel Kunc on 11/02/2011. | |
// Copyright 2011 Fry-IT, Limited. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.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
var sys = require('sys'); | |
// Namespace | |
var o2 = function O2() { | |
var o = {}; | |
// Core extensions | |
if (typeof Object.create !== 'function') { | |
Object.create = function(o) { | |
var F = function() {}; |
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/bash | |
CURRENT_DIR=`pwd` | |
for dir in $(find $1 -type d -depth 1 -not -name "\.*"); | |
do | |
cd $dir | |
if [ -f *.gem ]; then | |
rm -rv *.gem | |
fi |
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
# vim:set filetype=ruby: | |
begin | |
require ::File.expand_path('.bundle/environment', __FILE__) | |
rescue LoadError | |
require 'rubygems' | |
require 'bundler' | |
Bundler.setup | |
end | |
require 'merb-core' |
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/bash | |
FROM=$1 | |
TO=$2 | |
echo "Spliting '$TO' from '$FROM'" | |
git clone --no-hardlinks $FROM $TO | |
cd $TO | |
git filter-branch --subdirectory-filter $TO HEAD -- --all | |
git reset --hard | |
git gc --aggressive | |
git prune |
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
begin | |
require ::File.expand_path('.bundle/environment', __FILE__) | |
rescue LoadError | |
require 'rubygems' | |
require 'bundler' | |
Bundler.setup | |
end | |
require 'merb-core' | |
Merb::Config.setup(:merb_root => ::File.expand_path(::File.dirname(__FILE__)), |
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
#!/usr/bin/env ruby -w | |
owner = 'pavel.kunc@gmail.com' | |
gems = %w{ | |
merb | |
merb-action-args | |
merb-assets | |
merb-auth-core | |
merb-auth-more | |
merb-auth-slice-password |