This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActivityAnswerStore | |
include Mongoid::Document | |
field :user_id, type: Integer | |
field :type, type: String | |
end | |
class PersonalValuesActivityAnswerStore < ActivityAnswerStore | |
field :values, type: Array | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>h-entry posts</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<section> | |
<article class="h-entry"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dl class="h-g5-configuration"> | |
<dt>Name</dt> | |
<dd class="p-name">Feed</dd> | |
<dt>Category</dt> | |
<dd class="p-category">Instance</dd> | |
<dt>Attributes</dt> | |
<dd class="h-g5-attribute"> | |
<span class="p-g5-name">username</span> | |
<span class="p-g5-editable">true</span> | |
<span class="p-g5-default-value">Twitter Feed</span> |
OlderNewer