NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
*.json | |
*.xml | |
token* | |
oauth* |
var U = require("uglify-js"); | |
var fs = require("fs"); | |
var sys = require("sys"); | |
var code = fs.readFileSync("/tmp/test.js", "utf8"); | |
// 1. parse | |
var ast = U.parser.parse(code); | |
// 2. UglifyJS compress |
set :application, "yyyyyyyyyyy" | |
set :repository, "here-be-your-githubs" | |
set :scm, :git | |
set :branch, "master" | |
set :user, "xxxxxxxx" | |
set :scm_verbose, true | |
default_run_options[:pty] = true | |
set :deploy_via, :remote_cache | |
ssh_options[:forward_agent] = true |
-(float)compareString:(NSString *)originalString withString:(NSString *)comparisonString | |
{ | |
// Normalize strings | |
[originalString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; | |
[comparisonString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; | |
originalString = [originalString lowercaseString]; | |
comparisonString = [comparisonString lowercaseString]; | |
// Step 1 (Steps follow description at http://www.merriampark.com/ld.htm) |
require 'rubygems' | |
require 'eventmachine' | |
children = [] | |
Signal.trap('SIGINT') do | |
EventMachine.next_tick { EventMachine.stop_event_loop } | |
end | |
Signal.trap('EXIT') do |
Subject: Thanks for signing up! | |
Date: {{date}} | |
To: {{recipient}} | |
From: {{sender}} | |
MIME-Version: 1.0 | |
Content-Type: text/plain | |
Thanks for signing up for the Foobar service! | |
Your email address is: {{recipient}} |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# Resize selenium browser window to avoid Selenium::WebDriver::Error::MoveTargetOutOfBoundsError errors | |
# | |
# Example usage with Rspec (in spec/support/spec_helper.rb): | |
# | |
# config.before(:each) do | |
# set_selenium_window_size(1250, 800) if Capybara.current_driver == :selenium | |
# end | |
# | |
def set_selenium_window_size(width, height) | |
window = Capybara.current_session.current_window.resize_to |
#test2 { background-color: red ;} | |
#test2 { background-color: red ;} | |
#test2 { background-color: red ;} | |
#test2 { background-color: red ;} | |
#test2 { background-color: red ;} | |
#test2 { background-color: red ;} | |
#test2 { background-color: red ;} | |
#test2 { background-color: red ;} | |
#test2 { background-color: red ;} | |
#test2 { background-color: red ;} |