Skip to content

Instantly share code, notes, and snippets.

@erikprice
erikprice / 2.0-development_ReactiveCocoa.podspec
Created July 30, 2013 11:34
Interim podspec for the `2.0-development` branch of ReactiveCocoa. To use this podspec: 1. Fork the ReactiveCocoa project, clone it locally, and tag the 2.0-development branch as `v2.0-development` (note the leading `v`, it's important). 2. Copy this gist into a file called `ReactiveCocoa.podspec` and place it in the root of your local clone of …
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" => "josh@github.com" }
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" \
// 1.
// “Safe” but retain cycle.
[self setCompletionBlock:^{
NSLog(@"1: %@", self->_foo);
}];
// 2.
// Unsafe. Could dereference nil.
__weak BCThing *weakSelf = self;
(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