Skip to content

Instantly share code, notes, and snippets.

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

Jacob Evans dekz

🐢
⠚⠁⠉⠕⠃
View GitHub Profile
@dekz
dekz / gist:10562224
Created April 12, 2014 23:37
HabitRPG UUID

HabitRPG UUID

6ce52b25-f317-44c5-bcd1-2f1af2da9b92
source 'https://rubygems.org'
gem 'sinatra'
gem 'data_mapper'
gem 'bcrypt'
gem 'carrierwave'
alert();
@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:

@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
#!/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 / 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.

@dekz
dekz / choose.vim
Last active August 29, 2015 14:13
" find file in git repo
function! ChooseFile()
let dir = expand("%:h")
if empty(dir) | let dir = getcwd() | endif
let root = system("cd " . dir . " && git rev-parse --show-toplevel")
if v:shell_error != 0 | echo "Not in a git repo" | return | endif
let root = root[0:-2]
let selection = system("cd " . root . " && git ls-files -co --exclude-standard | choose")
# Input
{ task_list: 1,
tasks:
[{:user=>"jacob", :task=>"feed cat", :id => 1},
{:user=>"jacob", :task=>"mow lawn", :id => 2},
{:user=>"steve", :task=>"feed lawn", :id => 1},
{:user=>"steve", :task=>"mow dog", :id => 2}]
}
# This seems possible
@dekz
dekz / chromium updater.py
Created June 12, 2009 06:02
Get latest Chromium for OSX from http://chromium.org
#!/usr/bin/env python
# Chromium Updater
# Download and install the newest Chromium build from http://chromium.org
# on Mac OS X.
import urllib2, os.path, sys
BASE_URL = 'http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/'
UPDATE_URL = 'http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/LATEST'
DOWNLOAD_PATH = os.path.expanduser('~/Downloads/Chromium Updater')