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 'component/component_spec_helper' | |
describe "Routing", type: :routing do | |
describe "for the home page" do | |
specify {{ get: '/' }.should route_to('lists#index') } | |
end | |
describe "for authentication" do | |
specify {{ get: '/auth/new' }.should route_to('sessions#new') } | |
specify {{ get: '/auth/37signals/callback' }.should route_to('sessions#create', provider: '37signals') } | |
specify {{ get: '/auth/failure' }.should route_to('sessions#failure') } |
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
screen_name | full_name | number_of_tweets | |
-----------------+----------------------+------------------ | |
TheStateTheatre | The State Theatre | 1468 | |
discoveryspace | Discovery Space | 1463 | |
CentreCoPAWS | Centre County PAWS | 618 | |
CentreFNDN | Centre Foundation | 292 | |
ccwrcedteam | CCWRC | 250 | |
AllaynB | Allayn Beck | 157 | |
TheHouseofCare | The House of Care | 156 | |
olliatpsu | OLLI at Penn State | 147 |
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 'bundler/setup' | |
require 'active_support' | |
require 'active_support/dependencies' | |
ActiveSupport::Dependencies.autoload_paths += %w{ app/models lib } | |
require 'active_record' | |
db_config = YAML.load_file('config/database.yml') | |
ActiveRecord::Base.establish_connection(db_config['test']) |
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
module GoogleMapsHelper | |
# Returns a URL to use in an iframe for embedding a Google map | |
# Reference: http://asnsblues.blogspot.com/2011/11/google-maps-query-string-parameters.html | |
def google_maps_embed_url(address) | |
"#{google_maps_url(address)}&output=embed" | |
end | |
# Returns a URL to use for linking to a Google map | |
# Reference: http://asnsblues.blogspot.com/2011/11/google-maps-query-string-parameters.html |
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
# git aliases. Add new ones to the bottom of ~/.git-completion.bash to enable | |
# autocomplete. | |
alias ga='git add' | |
alias gap='git add -p' | |
alias gau='git add -u' | |
alias gb='git branch' | |
alias gc='git commit -v' | |
alias gca='git commit -a -v' | |
alias gco='git checkout' | |
alias gd='git diff' |
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
en: | |
helpers: | |
label: | |
payment: | |
first_name: First Name | |
last_name: Last Name | |
email: Email | |
company: Company | |
card_number: Credit Card Number | |
card_expiration_date: Expiration Date |
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
Exception | |
NoMemoryError | |
ScriptError | |
LoadError | |
NotImplementedError | |
SyntaxError | |
SignalException | |
Interrupt | |
StandardError | |
ArgumentError |
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
#!/usr/bin/env ruby | |
# This script will clean out old capistrano releases from a set of | |
# subdirectories, but will keep a minimum number. It's designed to be run as | |
# a cron job. | |
# | |
# (c) Copyright 2008 West Arete Computing, Inc. | |
require 'date' | |
require 'fileutils' |
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 | |
# | |
# Since paig is on a dynamic IP address cable modem, we use this script to | |
# periodically update DNS with the current record. In this case, we're using | |
# the hostname paig.2surfers.com. | |
# | |
# Keep the contents of this file secret, since it contains the domain's API | |
# key. The ID of the record to be updated by hovering over it in DNSimple's | |
# web interface. |