- Create Your Own Starter Files by @emilylewis
- Design the Code, Not Pixel-Perfect Comps by @katiekovalcin
- Goodbye Floats! Hello, CSS Flex & Grid Layouts! by @webq2
- Adaptive Images in RWD by @teleject
- Become a Sublime Text Power User by @wesbos
- Modern Layouts: Getting Out of our Ruts by @jensimmons
- A Vision for Style Guides in 2015 by @hagenburger
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
[ Launch: d3-example ] c488370a40557ea76a92e9d087724022 by jessabean
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
!!! | |
%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 |
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
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' |
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
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"; | |
} | |
} |
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
<div class="dogear-right primary revenue-calculator"> | |
stuff goes inside here | |
</div> | |
=========== | |
CSS | |
=========== | |
.dogear { | |
position: absolute; |
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
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 |
NewerOlder