Skip to content

Instantly share code, notes, and snippets.

View jessabean's full-sized avatar

Jessica Eldredge jessabean

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jessabean on github.
  • I am jessabean (https://keybase.io/jessabean) on keybase.
  • I have a public key whose fingerprint is 10A0 1BC8 40D9 0DBC 7B7B D809 934B A5F3 8CF4 9C07

To claim this, I am signing this object:

@jessabean
jessabean / emblem-js-error.md
Created June 5, 2014 01:42
Ember/Emblem.js build error

In application.emblem:

header Exercism
  nav
    ul
      li
        link-to 'Explore' 'explore'
@jessabean
jessabean / hours_in_year
Created April 14, 2012 00:01
Chris Pine Chapter 2 - Exercise 1
puts 24*365
@jessabean
jessabean / minutes_in_decade
Created May 22, 2012 00:46
minutes_in_decade
puts 60*24*365*10
@jessabean
jessabean / age_in_seconds
Created May 22, 2012 01:11
My age in seconds
puts 29*365*24*60*60
santa_list = ["Andrea", "Gloria", "Jessica", "Angela", "Mike N.", "Mike B.", "Chris", "Mom", "Dad"]
while !santa_list.empty? do
santa = santa_list.shift
giftee_list = santa_list.shuffle
giftee = giftee_list.shift
assignment = {:santa => santa, :giftee => giftee}
puts assignment
<div class="dogear-right primary revenue-calculator">
stuff goes inside here
</div>
===========
CSS
===========
.dogear {
position: absolute;
@jessabean
jessabean / if_statement_nested
Last active December 12, 2015 00:28
codecademy rock paper scissors
var compare = function(choice1, choice2) {
if (choice1 = "rock") {
if (choice1 === choice2) {
return "The result is a tie!";
} else if (choice2 = "scissors") {
return "rock wins";
} else {
return "paper wins";
}
}
@jessabean
jessabean / gist:5339272
Created April 8, 2013 18:33
Secret Santa Assignments
givers = %w[austen chris elise jess lynn matt sam]
getters = givers.dup
assignments = {}
givers.each do |giver|
getter = (getters - [giver]).shuffle.first
getters.delete(getter)
assignments[giver] = getter
end
require 'pp'
@jessabean
jessabean / application.html.haml
Created April 17, 2013 23:55
Example of inserting javascript specific to a page or resource
!!!
%html{:lang => "en", :xhmns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en"}
%head
%title= full_title(yield(:title))
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
= stylesheet_link_tag "application", "http://fonts.googleapis.com/css?family=Questrial|Damion"
= javascript_include_tag "https://js.stripe.com/v1/", "application"
= csrf_meta_tags
= tag :meta, :name => "stripe-key", :content => STRIPE_PUBLIC_KEY
%body