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

What do vegans eat?

These are my go to meals.

Smoothie

  • 1 ripe banana
  • 1 cup frozen blueberries
  • 6 oz spinach OR some kale stems
  • 1 scoop vega protein powder

Wabi Sabi Care

Food

Automatic Feeder

Should be programmed to dispense food 2 times a day, at 8am and 8pm. They usually don’t eat all of it. Check that there is food in the bowl every day. If there is none, manually put out a few handfuls.

Wet Food

Request

POST https://www.googleapis.com/civicinfo/v1/voterinfo/2000/lookup?officialOnly=true&key={YOUR_API_KEY}

Content-Type:  application/json
X-JavaScript-User-Agent:  Google APIs Explorer
 
{
 "address": "3474 17th St, San Francisco, CA"

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@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
@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
class ActivityAnswerStore
include Mongoid::Document
field :user_id, type: Integer
field :type, type: String
end
class PersonalValuesActivityAnswerStore < ActivityAnswerStore
field :values, type: Array
end
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
@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