Skip to content

Instantly share code, notes, and snippets.

require 'spec_helper'
describe GroupsController do
include SessionTestHelper
describe "GET 'show'" do
it "should load the group from the database" do
@the_group = Factory(:group)
Group.stub(:find_active_by_unique_name).with("london-developers").
and_return(@the_group)
require 'spec_helper'
describe GroupsController do
include SessionTestHelper
describe "GET 'show'" do
it "should load the group from the database" do
@the_group = Factory(:group)
Group.stub(:find_active_by_unique_name).with("london-developers").
and_return(@the_group)
  • 80 grams (about 1 cup whole beans) coffee
  • 2 cups room temperature water

Makes about 3 iced-coffee

  1. Grind beans coarsely, I used one setting below the coarsest. Mix water and coffee into a container, cover, and let sit for 10 hours.
  2. After, filter the brewed coffee as best you can. The result will be strong, too strong to drink. I suggest diluting with 0.5:1.0 water to brew.
  3. Pour over ice, or, heat.

Note to Self

Be With Your Mom

that's where i be

Be Confident

Tests build confidence. Write 'em. They'll save your ass, and they'll let you take a chainsaw to your code without being afraid of unintended

@bkerley
bkerley / sunburst.el
Created February 10, 2009 17:02 — forked from 53cr/sunburst.el
(defun color-theme-sunburst ()
(interactive)
(color-theme-install
'(color-theme-sunburst
((background-color . "#000000")
(foreground-color . "#FFFFFF")
(cursor-color . "#DAD085"))
(default ((t (nil))))
(modeline ((t (:background "DarkRed" :foreground "white"
:box (:line-width 1 :style released-button)))))
class Cell
def initialize
become_dead
end
def eigenclass
class << self
self
end
end
@bkerley
bkerley / @for
Created November 7, 2012 19:50 — forked from lessallan/@for
@for
@for $i from 1 through 35
.picture:nth-child($i)
+animate(fadeIn, 1s, ($i)s)
@bkerley
bkerley / 1.txt
Created February 21, 2012 02:34 — forked from anonymous/1.txt
title New Browser Setup
User->Phone: identifying info
Phone->idjump: identifying info
idjump->Phone: encrypted blob
User->Phone: decrypting info
Phone->local storage: decrypted blob
package=basho-release-6-1.noarch.rpm && wget http://yum.basho.com/gpg/$package -O /tmp/$package && sudo rpm -ivh /tmp/$package
/*This code for a PIC12F615 compiles in mikroC for PIC http://www.mikroe.com
It takes an analog value from a dash-mounted potentiometer and drives a MOSFET proportional to the input. The MOSFET pulses the low-side of a blower motor in
a 1997 Mitsubishi Mirage, providing 128 speeds*/
void main() {
int anin=0, ramped=255;
unsigned long temp = 0;