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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'aws/s3' | |
local_file = ARGV[0] | |
guid = ARGV[1] | |
bucket = ARGV[2] | |
mime_type = ARGV[3] | |
AWS::S3::Base.establish_connection!( | |
:access_key_id => 'AKJAFLWEAJFLAKJ', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am arches on github. | |
* I am arches (https://keybase.io/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# to install, replace your .git/hooks/pre-commit with this file | |
if [ $staged_asset_count -gt 0 ]; then | |
if [ $changed_asset_count -eq 0 ]; then | |
echo "Packaging css/js assets with jammit..." | |
jammit -f | |
git add public/packaged # you might need to change this based on the package_path you use in your assets.yml | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Entities | |
class Post | |
attr_accessor :id, :title, :link, :summary | |
attr_accessor :reactions | |
def score | |
self.reactions.inject(0){|r, sum| sum += r.score } | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Foo; if (!Foo) Foo = {}; | |
// Then you can safely define things on Foobar: | |
Foo.Bar = function(){}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'iron_mq' | |
# IronMQ credentials | |
token = asdf | |
project_id = asdf | |
# each chatter needs their own queue | |
@fido = IronMQ::Client.new('token' => token, 'project_id' => project_id, :queue_name => "fido") | |
@red_rover = IronMQ::Client.new('token' => token, 'project_id' => project_id, :queue_name => "red_rover") |
OlderNewer