Skip to content

Instantly share code, notes, and snippets.

View stevenringo's full-sized avatar

Steven Ringo stevenringo

View GitHub Profile
Memorandum by the Prime Minister.
To do our work, we all have to read a mass of papers. Nearly all of them are far too long. This wastes time, while energy has to he spent in looking for the essential points.
I ask my colleagues and their staffs to see to it that their Reports are shorter.
(i) The aim should be Reports which set out the main points in a series of short, crisp paragraphs.
(ii) If a Report relies on detailed analysis of some complicated factors, or on statistics, these should be set out in an Appendix.
(iii) Often the occasion is best met by submitting not a full-dress Report, but an Aide-memoire consisting of headings only, which can be expanded orally if needed.
(iv) Let us have an end of such phrases as these:
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.clean_with(:truncation)
end
config.before(:each) do
DatabaseCleaner.strategy = :transaction
end
config.before(:each, js: true) do
@stevenringo
stevenringo / .gitconfig
Created July 30, 2013 09:43
gitconfig for using SourceGear's diffmerge: http://www.sourcegear.com/diffmerge/
[diff]
prompt = false
tool = diffmerge
[difftool]
prompt = false
[merge]
prompt = false
tool = diffmerge
[mergetool]
prompt = false
What's new in Ruby on Rails 4
A RoR 4 press review
Silvio Relli @ Florence On Ruby
Bibliography and related resources
1) Rails queue
http://reefpoints.dockyard.com/ruby/2012/06/25/rails-4-sneak-peek-queueing.html
http://blog.remarkablelabs.com/2012/12/rails-queue-rails-4-countdown-to-2013
https://github.com/rails/rails/commit/adff4a706a5d7ad18ef05303461e1a0d848bd662
#!/bin/zsh
/usr/bin/vagrant destroy --force
yes | knife client delete {NODE_NAME}
yes | knife node delete {NODE_NAME}
/usr/bin/vagrant up
knife bootstrap localhost --node-name {NODE_NAME} --ssh-user vagrant --ssh-password vagrant --ssh-port 2222 --sudo
/usr/bin/vagrant provision
@stevenringo
stevenringo / .rspec
Created December 27, 2012 22:39 — forked from coreyhaines/.rspec
--colour
-I app
@stevenringo
stevenringo / httpfeeds.5by5.tvbuildanalyze
Created October 9, 2012 21:17
Downcast app not updating metadata
Old title and description are shown, although feed URL seems to be updated.
//
// ArtistsViewController.m
// dslcollection
//
// Created by Steven Ringo on 24/10/11.
// Copyright (c) 2011 Jospe. All rights reserved.
//
#import "ArtworksViewController.h"
@stevenringo
stevenringo / install_homebrew.rb
Created August 30, 2011 10:46 — forked from mxcl/install_homebrew.markdown
Installs Homebrew to /usr/local with version before it broke
#!/usr/bin/ruby
# This script installs to /usr/local only. To install elsewhere you can just
# untar https://github.com/mxcl/homebrew/tarball/master anywhere you like.
module Tty extend self
def blue; bold 34; end
def white; bold 39; end
def red; underline 31; end
def reset; escape 0; end
def bold n; escape "1;#{n}" end