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
sub, sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; | |
/* Where the magic happens: makes all browsers position |
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
grep <sitemap file> --only-matching -E -e 'http(s?):\/\/[^ \"\(\)\<\>]*' >> links.txt | |
for i in `cat links.txt` ; do curl -I $i ; done (edited) |
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
# google_analytics.js.coffee | |
class @GoogleAnalytics | |
@load: -> | |
window['GoogleAnalyticsObject'] = 'ga' | |
window['ga'] = window['ga'] || -> | |
(window['ga'].q = window['ga'].q || []).push arguments | |
window['ga'].l = 1 * new 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
rails new . --database=postgresql --skip-bundle -T |
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 'date' | |
require 'harvested' | |
class MissingHarvestEntries | |
attr_accessor :subdomain, :username, :password, :timesheet, :missing_entries, :start_date, :end_date | |
def initialize(start_date, end_date) | |
@subdomain = 'MY SUBDOMAIN' | |
@username = 'MY USERNAME' | |
@password = 'MY PASSWORD' |
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 "spec_helper" | |
describe ExampleController do | |
context "GET #index" do | |
let(:resources) { FactoryGirl.create_list(:resource) } | |
before do | |
get :index | |
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
#!/bin/bash | |
# | |
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance. | |
# | |
# Must be run with root privileges | |
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5) | |
# | |
export BUILD_DIR="$PWD" |
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
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
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
[{"rpi":1,"name":"Kentucky","conference":"SEC","record":"34-0","wins":34,"losses":0},{"rpi":2,"name":"Villanova","conference":"BE","record":"32-2","wins":32,"losses":2},{"rpi":3,"name":"Kansas","conference":"B12","record":"26-8","wins":26,"losses":8},{"rpi":4,"name":"Wisconsin","conference":"B10","record":"31-3","wins":31,"losses":3},{"rpi":5,"name":"Arizona","conference":"P12","record":"31-3","wins":31,"losses":3},{"rpi":6,"name":"Duke","conference":"ACC","record":"29-4","wins":29,"losses":4},{"rpi":7,"name":"Virginia","conference":"ACC","record":"29-3","wins":29,"losses":3},{"rpi":8,"name":"Gonzaga","conference":"WCC","record":"31-2","wins":31,"losses":2},{"rpi":9,"name":"Iowa St.","conference":"B12","record":"25-8","wins":25,"losses":8},{"rpi":10,"name":"Baylor","conference":"B12","record":"23-9","wins":23,"losses":9},{"rpi":11,"name":"North Carolina","conference":"ACC","record":"24-11","wins":24,"losses":11},{"rpi":12,"name":"SMU","conference":"Amer","record":"26-6","wins":26,"losses":6},{"rpi":13,"name": |
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
config.action_mailer.default_url_options = { host: "localhost:3000" } | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { | |
address: "smtp.gmail.com", | |
port: 587, | |
domain: "domain.com", | |
user_name: "email@domain.com", | |
password: "password", | |
authentication: :login, | |
enable_starttls_auto: true, |
OlderNewer