This file contains hidden or 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
module Thing | |
module_function | |
def thing(&block) | |
(1..3).map(&block) | |
end | |
def other_thing | |
thing do |v| | |
next(:surprise) if v == 2 |
This file contains hidden or 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
import Foundation | |
import RxSwift | |
class Ref<E> { | |
private let value : Variable<E> | |
private let q = dispatch_queue_create("net.chrisfarber.Ref<\(E.self)>", DISPATCH_QUEUE_SERIAL) | |
init(i:E) { | |
value = Variable(i) | |
} |
This file contains hidden or 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
/* | |
CS 343 Project 3 | |
Polynomials | |
Chris Farber, Winter 2010 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include "polynomial.h" |
This file contains hidden or 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
$.fn.spinner = (optsOrFalse) -> | |
if (optsOrFalse != false) | |
# EVENTUALLY add small, med, large sizes for these options based on the height of the element being spun | |
spinSize = 25 | |
settings = $.extend({ | |
lines: 10 | |
length: 5 | |
width: 2 | |
radius: 3 |