2014-01-08から1日間の記事一覧
CoreData with CDQ and ruby-xcdm - MotionInMotion ActiveRecordのようにCoreDataを扱う Author @seriousken co-founder of infiniteRed cdq (CoreData Query) Steps setup Gemfile gem 'cdq' cdq init schema and models use like active record cdq synta…
NSPredicate - NSScreencast csv NSString *contents = [NSString stringWithContentsOfFile:csvPath encoding:NSUTF8StringEncoding error:nil]; NSArray *lines = [contents componentsSeparatedByString:@"\r\n"]; [lines enumerateObjectsUsingBlock:^(N…
Particle Systems - NSScreencast 火の玉みたいなアニメーション CAEmitterLayer emitterShape = kCAEmitterLayerPoint; Point/Line/Rectangle/Cuboid/Circle/Sphere emitterPosition renderMode kCAEmitterLayer Unordered, OldestFirst, OldestLast, BackT…
156 Array.new ★★ special guest chef James Edward Gray II (@JEG2) Ruby Rogues >> generator = 3.times >> generator.next => 0 >> generator.next => 1 >> generator.map {|i| i ** 2 } => [0, 1, 4] >> generator.map { :whatever } => [:whatever, :wh…