Skip to content

Instantly share code, notes, and snippets.

Chris Doyle arches

Block or report user

Report or block arches

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
arches / squirt
Last active Oct 13, 2016 — forked from foozmeat/squirt
squirt: upload a file to a slack channel from the cli
View squirt
#!/usr/bin/env ruby
require 'json'
require 'shellwords'
if ARGV.length < 3 then
puts "Usage: squirt <filename> <channel> <comment>"
arches / bundler.txt
Created Jul 15, 2015
what's wrong with my deps?
View bundler.txt
Bundler could not find compatible versions for gem "rest-client":
In snapshot (Gemfile.lock):
rest-client (= 1.8.0)
In Gemfile:
stripe (~> 1.17) ruby depends on
rest-client (~> 1.4) ruby
cloudinary (= 1.0.60) ruby depends on
rest-client (>= 0) ruby
arches / req.txt
Last active Aug 29, 2015
PrettyQuick - Mobile Developer (iOS)
View req.txt
PrettyQuick - Mobile Developer (iOS)
## What We're Doing
PrettyQuick is the easiest way to book beauty services. We allow our users to book beauty appointments directly from their browser or smartphone. We pride ourselves on providing trusted recommendations and an excellent customer experience. Headquartered in Chicago, we're currently live in six cities and adding new partner salons every day.
We're solving a challenging problem: seamlessly matching supply and demand in a highly fragmented $60 billion industry. We're laser-focused on a technology-centric strategy and we need your help to make it happen.
## Why We're Hiring
View gist:23fa36321152f835eb22
### Keybase proof
I hereby claim:
* I am arches on github.
* I am arches ( on keybase.
* I have a public key whose fingerprint is 1A0B 41C3 670F 854E 13BA FF5F 95AC 08C2 A2B9 C6CD
To claim this, I am signing this object:
arches / abstract.markdown
Last active Aug 29, 2015
The Rails Console - A Comprehensive Introduction
View abstract.markdown

Working on a Rails app without using the console is like flying a 747 without instruments. You can see where you're going if it's nice out but hit some bad weather and you're lost in the dark. In this talk I'll teach you the battle-tested console commands and techniques I use on a daily basis. We'll be spiking features, databasing, patching production apps, automating grunt work - the sky's the limit. You will leave with a firm command of the console and its role in your workflow.

arches / gist:9256285
Created Feb 27, 2014
batch upload to s3
View gist:9256285
require 'rubygems'
require 'aws/s3'
local_file = ARGV[0]
guid = ARGV[1]
bucket = ARGV[2]
mime_type = ARGV[3]
:access_key_id => 'AKJAFLWEAJFLAKJ',
arches / instance_block.rb
Last active Feb 17, 2016
Syntactic sugar for simple filtering. A halfway point between and{|post| post.comments.any?}
View instance_block.rb
# before - each object in the enumerable is passed to the block { |post| post.comments.any? }
class Array
def select(&blk)
if blk.arity == 0
super { |obj| obj.instance_exec &blk }
View bob.rb
require 'forwardable'
class Bob
def hey(message)
message =
when message.shouting?
"Woah, chill out!"
when message.question?
arches / cart.rb
Last active Dec 29, 2015
hash-backed shopping cart w session default
View cart.rb
require 'active_support/hash_with_indifferent_access'
class Cart
include Enumerable
attr_writer :storage
def each(&blk)
arches / example.rb
Last active Dec 25, 2015
table_print for pure ruby objects
View example.rb
> my_array = [{server: "localhost", ip: ""}, {server: "google dns", ip: ""}]
> tp my_array
localhost |
google dns |
# or with objects
> class ServerInfo
You can’t perform that action at this time.