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
Pod::Spec.new do |s| | |
s.name = "ReactiveCocoa" | |
s.version = "2.0-development" | |
s.summary = "A framework for composing and transforming sequences of values." | |
s.homepage = "https://github.com/ReactiveCocoa/ReactiveCocoa" | |
s.author = { "Josh Abernathy" => "[email protected]" } | |
s.source = { :git => "https://github.com/YOUR_GITHUB_NAME/ReactiveCocoa.git", :tag => "v#{s.version}" } | |
s.license = 'Simplified BSD License' | |
s.description = "ReactiveCocoa offers:\n" \ | |
"1. The ability to compose operations on future data.\n" \ |
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
// 1. | |
// “Safe” but retain cycle. | |
[self setCompletionBlock:^{ | |
NSLog(@"1: %@", self->_foo); | |
}]; | |
// 2. | |
// Unsafe. Could dereference nil. | |
__weak BCThing *weakSelf = self; |
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
(ns datasifter) | |
;; Write a data sifter, sift, that partitions a string into a list of lists. | |
;; Start with the case of using letters as a delimiter, and numbers as data. | |
;; There can be any number of repetitions of numbers & letters. | |
;; | |
;; user=>(sift "a1b2cd34") | |
;; (("a" ("1")) ("b" ("2")) ("c" ()) ("d" ("3" "4"))) | |
;; | |
;; from http://fulldisclojure.blogspot.com/2010/01/code-kata-data-sifter.html |
NewerOlder