I hereby claim:
- I am doughsay on github.
- I am doughsay (https://keybase.io/doughsay) on keybase.
- I have a public key ASDJDoHmARusPsAkDmvXxZvftA_sVBmE1tfZ3FURQUb59Qo
To claim this, I am signing this object:
| class Bar | |
| include Virtus::ValueObject | |
| include Virtus::ValueObject::Mongoize | |
| values do | |
| attribute :bar, String | |
| end | |
| end | |
| class Foo |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| export DOTENV_ENV=${DOTENV_ENV:-dev} | |
| GIT_DIR=$(git rev-parse --show-toplevel 2>/dev/null || pwd) | |
| DOTENV_FILE=$GIT_DIR/.env.$DOTENV_ENV | |
| if [ -e $DOTENV_FILE ]; then source $DOTENV_FILE; fi | |
| $@ |
| # gotta have an opengl context to do the below... | |
| require "lib_glfw" | |
| LibGLFW.init | |
| LibGLFW.window_hint LibGLFW::CONTEXT_VERSION_MAJOR, 3 | |
| LibGLFW.window_hint LibGLFW::CONTEXT_VERSION_MINOR, 3 | |
| LibGLFW.window_hint LibGLFW::OPENGL_FORWARD_COMPAT, 1 | |
| LibGLFW.window_hint LibGLFW::OPENGL_PROFILE, LibGLFW::OPENGL_CORE_PROFILE | |
| window = LibGLFW.create_window 800, 600, "foo", nil, nil |
| for each y going from -1 to MAX_Y: | |
| for each x going from -1 to MAX_X: | |
| if (x, y) is air: | |
| if (x, y + 1) is NOT air: | |
| draw a south facing wall at (x, y + 1) | |
| if (x + 1, y) is NOT air: | |
| draw a west facing wall at (x + 1, y) | |
| else: | |
| if (x, y + 1) IS air: | |
| draw a north facing wall at (x, y) |
| require "socket" | |
| def handle_connection(socket, client_id) | |
| puts "#{client_id}: client connected" | |
| loop do | |
| message = socket.gets | |
| if message | |
| puts "#{client_id}: received #{message}" | |
| socket << message + "\n" | |
| else |
| const bigInt = require('big-integer') | |
| function getCurrentMonoTime () { | |
| const [s, n] = process.hrtime() | |
| return bigInt(s).times(1000000000).plus(n) | |
| } | |
| const bootGameTime = 0 | |
| const bootMonoTime = getCurrentMonoTime() |
| def identity(nums): | |
| """Identity: | |
| Given a list of numbers, write a list comprehension that produces a copy of the list. | |
| >>> identity([1, 2, 3, 4, 5]) | |
| [1, 2, 3, 4, 5] | |
| >>> identity([]) | |
| [] |
Generating the first 1000 occurrences of the following icalendar recurrence rule:
DTSTART:19970101T123000
RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,WE,FR
i.e.: Starting on 1997-01-01 12:30:00, every other week on Mondays, Wednesdays and Fridays.
Cocktail:
| [alias] | |
| up = "!git remote update -p; git merge --ff-only @{u}" | |
| mup = "!git checkout master; git up" | |
| u="!git merge --ff-only @{u}" | |
| del = "!git-rm-merged" | |
| clean-branches="!git_clean_branches" |