Date: [date]
Between us [company name] and you [customer name].
In short; neither of us will share any confidential information about each-other, by any means, with anyone else.
class PaymentsController < ActionController::Base | |
skip_before_filter :verify_authenticity_token, :only => :notification | |
before_filter :load_subscription | |
def checkout | |
redirect_to @subscription.paypal.checkout_url( | |
return_url: "http://www.example.com" + "/paypal/review/#{@subscription.id}", | |
cancel_url: "http://www.example.com" + "/paypal/cancel/#{@subscription.id}" |
When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.
Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008
…………………………
# First, make sure that you have the most recent rvm. Several bugs with 2.0.0-preview1 | |
# have recently been fixed. | |
# | |
# Second, the openssl that comes with MacOS is too old for Ruby 2.0. You need to install | |
# a newer one with homebrew or the rvm pkg command. | |
# Option 1, with homebrew openssl: | |
brew update | |
brew install openssl |
# Patched to no process @media queries in <style> blocks. | |
# For HTML emails, @media queries are exclusively used for | |
# targeting mobile clients. These should not be inlined. | |
class CssParser::Parser | |
def parse_block_into_rule_sets!(block, options = {}) # :nodoc: | |
current_media_queries = [:all] | |
if options[:media_types] | |
current_media_queries = options[:media_types].flatten.collect { |mt| CssParser.sanitize_media_query(mt)} | |
end |
# Dump | |
pg_dump -U username -W -h localhost dbname -f dump.sql | |
# Import | |
psql -U username -h localhost dbname -f /home/username/dump.sql |
@media only screen and (min-width: 320px) { | |
/* Small screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rbenv' | |
# Basic settings: | |
# domain - The hostname to SSH to | |
# deploy_to - Path to deploy into | |
# repository - Git repo to clone from (needed by mina/git) | |
# user - Username in the server to SSH to (optional) |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |