I hereby claim:
- I am jredville on github.
- I am jredville (https://keybase.io/jredville) on keybase.
- I have a public key ASA5OdDxYxwvId5x0OKx0gK2BFVsWBA5S-UduUQ3EXwa9wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
set -e | |
base_dir=${$base_dir:=/opt/app} | |
pre_run=$base_dir/pre_run | |
$pre_run check || ($pre_run foo && $pre_run baz) | |
retval=$? | |
if [ $retval -ne 0 ]; then |
[user] | |
name = Jim Deville | |
email = [email protected] | |
[merge] | |
keepBackup = false | |
[github] | |
user = jredville | |
[color] | |
ui = true | |
[color "branch"] |
class Letter { | |
constructor(letter) { | |
this._letter = letter; | |
this._before = []; | |
this._after = []; | |
} | |
get letter() { | |
return this._letter; | |
} |
class Letter | |
include Comparable | |
attr_reader :before, :after | |
def initialize(letter) | |
@letter = letter | |
@before = [] | |
@after = [] | |
end |
package main | |
import ( | |
"log" | |
) | |
type Foo interface { | |
Bar() string | |
} |
def enumerable_select_with_index(arr, &block) | |
[].tap do |new_arr| | |
arr.each_with_index do |item, index| | |
new_arr.push item if block.call item, index | |
end | |
end | |
end |
Observable.generate do | |
initial_state 0 | |
condition {|x| x <= 3} | |
result_selector {|x| x + 1} | |
iterator {|x| x } | |
scheduler RX::TestScheduler.new | |
end | |
# OR |
def reduce(coll, initial = nil, sym = nil, &blk) | |
if block_given? && sym.nil? | |
reduce_with_block coll, initial, &blk | |
else | |
reduce_without_block coll, initial, sym | |
end | |
end | |
def reduce_with_block(coll, initial, &blk) | |
memo = initial || coll.first |
def subscribe_on_next(&blk) | |
obs = Observer.configure do |o| | |
o.on_next &blk | |
end | |
subscribe obs | |
end |