Skip to content

Instantly share code, notes, and snippets.

View dekz's full-sized avatar
🐢
⠚⠁⠉⠕⠃

Jacob Evans dekz

🐢
⠚⠁⠉⠕⠃
View GitHub Profile
@dekz
dekz / introrx.md
Last active August 29, 2015 14:09 — 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 (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.

#!/bin/bash
#
# Publishes CloudWatch metrics about Buildbox queue length
set -e
API='https://api.buildbox.io'
BUILDS_ROUTE='v1/accounts/ACCOUNT_NAME/projects/PROJECT_NAME/builds'
# Determines whether a binary exists on the current $PATH
@dekz
dekz / cat.rb
Created September 10, 2014 05:16
module Entity
class World
def initialize
cat = Entity::Animal::Cat.new
cat.cat_method
end
end
end
module Entity
@dekz
dekz / keybase.md
Created August 29, 2014 02:05
Keybase proof

Keybase proof

I hereby claim:

  • I am dekz on github.
  • I am dekz (https://keybase.io/dekz) on keybase.
  • I have a public key whose fingerprint is 35CC 054C 0454 AD03 5241 0643 2036 DA2A DDFB 0842

To claim this, I am signing this object:

alert();
source 'https://rubygems.org'
gem 'sinatra'
gem 'data_mapper'
gem 'bcrypt'
gem 'carrierwave'
@dekz
dekz / gist:10562224
Created April 12, 2014 23:37
HabitRPG UUID

HabitRPG UUID

6ce52b25-f317-44c5-bcd1-2f1af2da9b92
@dekz
dekz / README.md
Created November 13, 2013 23:37 — forked from JoelBesada/README.md

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
  • Google Chrome + Firefox
  • iTerm2
  • Better Touch Tool
  • Little Snitch
  • 1Password
  • Flux
  • Caffeine
  • Xcode command-line tools
  • Homebrew
  • Rbenv + ruby-build + ruby-2.0.0
[{"match_id"=>106984628,
"start_time"=>1359040453,
"lobby_type"=>0,
"players"=>
[{"account_id"=>4294967295,
"player_slot"=>0,
"hero_id"=>40,
"hero_name"=>"Venomancer"},
{"account_id"=>4294967295,
"player_slot"=>1,