Skip to content

Instantly share code, notes, and snippets.

Jessica Eldredge jessabean

Block or report user

Report or block jessabean

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jessabean
jessabean / 0_reuse_code.js
Created Jun 9, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View _.md
View cssdevconf-resources.md
@jessabean
jessabean / emblem-js-error.md
Created Jun 5, 2014
Ember/Emblem.js build error
View emblem-js-error.md

In application.emblem:

header Exercism
  nav
    ul
      li
        link-to 'Explore' 'explore'
View keybase.md

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 / application.html.haml
Created Apr 17, 2013
Example of inserting javascript specific to a page or resource
View application.html.haml
!!!
%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
@jessabean
jessabean / gist:5339272
Created Apr 8, 2013
Secret Santa Assignments
View gist:5339272
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 / if_statement_nested
Last active Dec 12, 2015
codecademy rock paper scissors
View if_statement_nested
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";
}
}
You can’t perform that action at this time.