- PostMan - Super awesome REST client
- rails-api gem - Just takes things away from rails, doesn't really give you anything
- versionist gem - Awesome/Simple API versioning DSL
- code Andrew's rails-api wrote during the meeting
- Pivotal Labs blog post on API versioning
- Grape - Ruby microframework for creating an API
- code Scot, Steve, Ross, Miles's Grape team wrote during the meeting
- Sinatra - Ruby web dev microframework
- code Chris Vannoy wrote using Sinara during the meeting
- Lotus - New Ruby web framework. "Lotus brings back Object Oriente
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
# Description: | |
# Everything is awesome. | |
# | |
# Configuration: | |
# HUBOT_LESS_EVERYTHINGISAWESOME | |
# | |
# Commands: | |
# awesome | team - reply with everything is awesome thing | |
module.exports = (robot) -> |
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
class From | |
attr_accessor :original | |
def initialize(object) | |
self.original = object | |
end | |
def id | |
"#{original.class}-#{original.id}" | |
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
class FileAttachmentUploader < CarrierWave::Uploader::Base | |
storage :fog | |
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
desc "Launch a Capybara session in a console" | |
task capyconsole: :environment do | |
require "capybara" | |
require "pry" | |
driver = case ENV.fetch('DRIVER', 'phantomjs') | |
when 'phantomjs' | |
require "capybara/poltergeist" | |
Capybara.register_driver :poltergeist_debug do |app| |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AMApplicationBuild</key> | |
<string>409</string> | |
<key>AMApplicationVersion</key> | |
<string>2.5</string> | |
<key>AMDocumentVersion</key> | |
<string>2</string> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
source 'https://rubygems.org' | |
gem 'grape' |
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
def duplicate_keys(ary) | |
duplicates(ary).keys | |
end | |
def duplicates(ary) | |
count_values(ary).select { |_, count| count > 1 } | |
end | |
def count_values(ary) | |
ary.inject({}) { |memo, value| memo[value] = memo[value].to_i + 1; memo } |
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
# Enable .htaccess Files | |
# Place something like the following in your Apache configuration file, | |
# or your virtual host configuration file. | |
<Directory /home/billstemp/public_html/> | |
Options Indexes FollowSymLinks MultiViews | |
# THIS is the most important line | |
AllowOverride All | |
Order allow,deny |
OlderNewer