Skip to content

Instantly share code, notes, and snippets.

@yaakaito
yaakaito / gist:3159976
Created July 22, 2012 15:21 — forked from tikitikipoo/gist:1812562
UIBarButtonItemのtintColorはios5からなのでios4でも同様なことができるように
// 出所:http://wizard.st/blog/archives/156
//   :http://fredandrandall.com/blog/2011/03/31/how-to-change-the-color-of-a-uibarbuttonitem/
UIBarButtonItem *item = nil;
if ([[[UIDevice currentDevice] systemVersion] floatValue] > 4.9) {
item = [[UIBarButtonItem alloc] initWithTitle:title
style:useStyle
target:self
action:@selector(toolBarButtonTapped:)];
@yaakaito
yaakaito / quickcheck.js
Created May 14, 2012 16:21 — forked from VoQn/quickcheck.js
prototyping quickcheck for js
var TestEnvironment = (function(){
return {
seed: 1,
count: 100,
current: {
args: [],
isPassed: false,
isSkipped: false,
set: function( args, prop ){