Skip to content

Instantly share code, notes, and snippets.

View jlsuttles's full-sized avatar

Jessica Aster (Suttles) jlsuttles

  • South Lake Tahoe, CA
View GitHub Profile
<dl class="e-g5-app">
<dt>UID</dt>
<dd>
<a class="u-uid" href="http://g5-configurator.herokuapp.com/apps/2">
http://g5-configurator.herokuapp.com/apps/2
</a>
</dd>
<dt>Client UID</dt>
<dd>
<a class="u-g5-client-uid" href="http://g5-hub.herokuapp.com/clients/g5-c-68me4zh-lo">
<dl class="h-entry">
<dt>Name</dt>
<dd>
<span class="p-name">Lo</span>
</dd>
<dt>UID</dt>
<dd>
<a href="http://g5-hub.herokuapp.com/clients/g5-c-68me4zh-lo" rel="bookmark" class="u-url u-uid">
http://g5-hub.herokuapp.com/clients/g5-c-68me4zh-lo
</a>
<!DOCTYPE html>
<html lang="en">
<head>
<title>h-entry posts</title>
<meta charset="utf-8" />
</head>
<body>
<section>
<article class="h-entry">
@jlsuttles
jlsuttles / friday
Created April 14, 2012 00:35
friday, friday!
Oo-ooh-ooh, hoo yeah, yeah
Yeah, yeah
Yeah-ah-ah
Yeah-ah-ah
Yeah-ah-ah
Yeah-ah-ah
Yeah, yeah, yeah
Seven a.m., waking up in the morning
Gotta be fresh, gotta go downstairs
require 'minitest_helper'
describe Practice::ApplicationController do
describe '#next_activity' do
it 'should return the next activity given an activity in the list' do
activity1 = ACTIVITIES_IN_ORDER[0]
activity2 = ACTIVITIES_IN_ORDER[1]
next_activity(activity1).should == activity2
@jlsuttles
jlsuttles / activities_helper.rb
Created February 27, 2012 22:49 — forked from ehrenmurdick/activities_helper.rb
activity_sequence
ACTIVITIES = [PersonalValues, PersonActions, SomeOther]
def next_activity(klass)
ACTIVITIES[ACTIVITIES.index(klass) + 1].to_s.underscore.pluralize + "some shit"
end
def prev_activity(klass)
ACTIVITIES[ACTIVITIES.index(klass) - 1].to_s.underscore.pluralize + "some shit"
end
class ActivityAnswerStore
include Mongoid::Document
field :user_id, type: Integer
field :type, type: String
end
class PersonalValuesActivityAnswerStore < ActivityAnswerStore
field :values, type: Array
end
@jlsuttles
jlsuttles / person.rb
Created February 14, 2012 18:59
state machines confuse me
class Person < ActiveRecord::Base
state_machine :state, :initial => :authed do
event :filled_out_profile do
transition :authed => :unaccepted
end
event :admin_accepted do
transition :unaccepted => :accepted
end
@jlsuttles
jlsuttles / gist:1332498
Created November 2, 2011 00:43
Pea Guacamole
2 pounds frozen green peas, thawed
1 teaspoon crushed garlic
¼ cup fresh lime juice
½ teaspoon ground cumin
1 tomato chopped
4 green onions chopped
½ cup chopped fresh cilantro
⅛ teaspoon hot pepper sauce
Sea salt