Skip to content

Instantly share code, notes, and snippets.

View geemus's full-sized avatar

Wesley Beary geemus

View GitHub Profile
@geemus
geemus / compact.md
Created April 3, 2012 13:33
dx/cli-style-guide.md styled
$ heroku help apps:create
= usage: heroku apps:create [NAME]
= description: create a new app
= options:
  --addons ADDONS
    a comma-delimited list of addons to install
  -b, --buildpack BUILDPACK
    a buildpack url to use for this app
  -r, --remote REMOTE

the git remote to create, default "heroku"

$ heroku help apps:create
Usage:
  heroku apps:create [NAME]
Description:
  create a new app
Options:
  --addons ADDONS
    a comma-delimited list of addons to install
  -b, --buildpack BUILDPACK

a buildpack url to use for this app

API Hack-a-thon

heroku

API Team

brandur mfine pedro sclasen geemus

Open Source

Less Obvious Lessons

Herding Cats 101

newbs

 

newbs

require 'excon'
require 'securerandom'
def multipart_form_data(buildpack_file_path)
body = ''
boundary = SecureRandom.hex(4)
data = File.open(buildpack_file_path)
data.binmode if data.respond_to?(:binmode)
data.pos = 0 if data.respond_to?(:pos=)
@geemus
geemus / meetups.md
Last active August 29, 2015 14:00
Iowa City Tech Meetups
@geemus
geemus / expansion.md
Last active August 29, 2015 14:18
Rough spec for API expansions

Expansion

Motivations

We include parent (belongs_to) type relationships in serializations, but should not require n+1 to lookup all parents. This is especially powerful when coupled with the de-nesting strategy.

Example

Addons include a plan. This is usually included in a summary that looks like:

Hacking Exercise for Health

Intervals

  • A majority of the exercise benefit is seen from the first set, though further sets can help optimize.
    • It's much better to do something (anything) than nothing.
  • High intensity seems to matter more that duration, weight, etc in terms of overall efficacy.

Cardio

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.