Skip to content

Instantly share code, notes, and snippets.

# http://stackoverflow.com/questions/1755665/get-names-of-all-files-from-a-folder-with-ruby
Dir["/path/to/search/**/*.rb"]
Dir.entries(folder)
@LutherBaker
LutherBaker / intro.textile
Created August 14, 2014 18:14
Node Stack
@LutherBaker
LutherBaker / introrx.md
Last active November 15, 2017 21:58 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

//
// CustomDynamicAlertView.h
// Week3_inclass
//
// Created by Victor Baro on 18/02/2015.
// Copyright (c) 2015 Produkt. All rights reserved.
//
#import <UIKit/UIKit.h>
import UIKit
public enum Image: String {
private static let bundle = Bundle(for: ClassInImageBundle.self)
// Your images here:
case imageOne = "image-1"
case imageTwo = "image-2"
public var uiImage: UIImage {