Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
// ==UserScript== | |
// @name PivotalTracker link copier | |
// @namespace http://www.eastagile.com | |
// @version 1.3 | |
// @description Adds a button for quick copying from PT | |
// @match https://www.pivotaltracker.com/*/projects/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// @copyright 2012+, Thien Lam | |
// ==/UserScript== | |
// access global variable 'app' |
// ==UserScript== | |
// @name Pivotal Link for commit | |
// @namespace http://eastagile.com/ | |
// @version 1.0 | |
// @description This is use for get the link from story for commit name | |
// @match https://www.pivotaltracker.com/*/projects/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// @copyright 2013+, Hieu Nguyen | |
// ==/UserScript== |
// ==UserScript== | |
// @name Unfriend In Single-Click on Facebook by Cha | |
// @description This script is useful if you don't want to delete each friends one by one. | |
// @namespace Cha | |
// @include *.facebook.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js | |
// @version 3.6.1 | |
// ==/UserScript== | |
// Developed by Cha(Muhammad Rafizan) - http://fb.com/cha.dae.woong.sunbae |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
class Animal | |
def name | |
'animal' | |
end | |
end | |
class Cow < Animal | |
def name | |
'cow' | |
end |
namespace :something do | |
task execute_patch: :environment do | |
# OtherClass is used in MyClass | |
OtherClass.class_eval do | |
def foo | |
'bar' | |
end | |
end | |
loop do |
require 'open-uri' | |
require 'fileutils' | |
require 'ruby-progressbar' | |
progress_bar = ProgressBar.create( | |
starting_at: 0, | |
total: nil, | |
format: "%a %B %p%% %r KB/sec", | |
rate_scale: lambda { |rate| rate / 1024 } | |
) |
#!/bin/bash | |
array=("master" "acts_as_api" "active_model_serializers" "jbuilder" "jbuilder_with_partial" "rabl" "roar") | |
for i in "${array[@]}" | |
do | |
env -i git checkout $i | |
rspec | |
done |
describe "validations" do | |
it "validates presence of github_username" do | |
acceptance = build(:acceptance, github_username: "") | |
expect(acceptance).to be_invalid | |
expect(acceptance.errors[:github_username]).to eq(["can't be blank"]) | |
end | |
it "bubbles up user validations" do | |
acceptance = build(:acceptance, password: "") |