Skip to content

Instantly share code, notes, and snippets.

View clindsey's full-sized avatar

not important clindsey

  • haunting the internet
View GitHub Profile

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).

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.

@clindsey
clindsey / 5by5.html
Created November 12, 2012 21:32 — forked from stammy/5by5.html
Front-end Challenge: 5x5 grid of blocks that change color when ... (click download and run this in your browser)
<!--
Create a 5 x 5 grid of blue blocks. When a block is clicked it turns red. Its adjacent block turns green.
If a red block is on the end of a row, the adjacent green block is on the line below on the first column,
et cetera. When another block is clicked, the previous red/green blocks go back to blue. There will only
ever be one red and one green block on the screen, the rest are always blue.
Only worry about Chrome.
------
@clindsey
clindsey / github.jquery.js
Created January 13, 2012 05:07 — forked from tantalor/github.jquery.js
list github projects using javascript, in <dl />. shows source repos, sorted by last commit date
(function() {
// http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html
jQuery.githubUser = function(username, callback) {
jQuery.getJSON("http://github.com/api/v1/json/" + username + "?callback=?", callback);
};
jQuery.fn.loadRepositories = function(username) {
this.html("<span>Querying GitHub for repositories...</span>");
@clindsey
clindsey / classy.js
Created October 18, 2010 16:54 — forked from clehner/classy.js
/*
Classy - Simple and Fast Javascript Inheritance.
(No fancy stuff)
Inspiration:
http://ejohn.org/blog/simple-javascript-inheritance/
http://valums.com/javascript-oop/
http://www.broofa.com/blog/2009/02/javascript-inheritance-performance/
Example:
/*
Example Use;
$(document).ready(function(){
$(document).konami({ callback: function(){
//do something funny here! hehe
}});
});
*/
// up, up, down, down, left, right, left, right, B, A
(function($){
try
set visible of window "SVNwindow" to true
tell application "Finder"
activate
set theWin to window 1
set thePath to (POSIX path of (target of theWin as alias))
try
set svnAdd to do shell script "cd " & thePath & ";svn add * --force;"
set svnUp to do shell script "cd " & thePath & ";svn update;"
set svnStatus to do shell script "cd " & thePath & ";svn status | awk '{print $1, $2}'"