Skip to content

Instantly share code, notes, and snippets.

Wesley Beary geemus

Block or report user

Report or block geemus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@geemus
geemus / expansion.md
Last active Aug 29, 2015
Rough spec for API expansions
View expansion.md

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:

@geemus
geemus / meetups.md
Last active Aug 29, 2015
Iowa City Tech Meetups
View meetups.md
View excon_multipart_form_data.rb
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=)
View shinzoku-kai.md

Open Source

Less Obvious Lessons

Herding Cats 101

newbs

 

newbs

View compact.md
$ 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
@geemus
geemus / compact.md
Created Apr 3, 2012
dx/cli-style-guide.md styled
View compact.md
$ 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"
@geemus
geemus / compact.md
Created Apr 3, 2012
markdownish styleguide
View compact.md
$ 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
@geemus
geemus / heroku.md
Created Oct 12, 2011
heroku style guide
View heroku.md

TODO empty arrays and/or nil values (see apps:info)

General Guidelines

  • Use full sentences, including punctuation.
  • Labels should be provided where needed in the form of 'Labels labels:'.
  • Commands should have one newline between the header and body and another after the body.
  • Alpha-sort arrays before display and display labeled data in alpha-sorted key order.
@geemus
geemus / gist:1248281
Created Sep 28, 2011
2012 Fukuoka Ruby Award Competition
View gist:1248281

Details on the competition: http://www.myfukuoka.com/events/2012-fukuoka-ruby-award-competition

Outline

Explain briefly functions and feature.

fog provides a consistent, simple interface to many cloud services. Whether utilizing computing, DNS, storage or other cloud resources, fog's simple interface helps new users get started quickly and easily, find the best provider for their needs, and migrate easily when those needs change. Because of it's open source license and the community built around it, fog also allows for quick extension of its interface when new cloud products and features are released.

You can’t perform that action at this time.