Skip to content

Instantly share code, notes, and snippets.

View dtauer's full-sized avatar

Dustin Tauer dtauer

  • Frontend Masters
  • Minneapolis, MN
View GitHub Profile
@dtauer
dtauer / gist:19155c4cbf49af530d7a
Last active August 29, 2015 14:01
For Jordan - Populate data from Google Spreadsheet
#Your Current seed.rb code that creates books (the manual way):
Book.create("title" => "A Brief History of Time", "author" => "Stephen Hawking")
Book.create("title" => "Alice in Wonderland", "author" => "Lewis Carroll")
Book.create("title" => "The Lord Of The Rings", "author" => "J.R.R. Tolkien")
Book.create("title" => "The Hobbit", "author" => "J.R.R. Tolkien")
# Firstly, save each tab as a CSV file (a comman separate file)
# To save as a CSV, just go to File > Download As > CSV (for each tab)
# You could put them in a directory on your server
# Then you could do something like this (this one is for the book data):
.navbar-default {
background-color: #FFA24F;
}
.navbar-default .navbar-nav>li>a {
color: #3B406B;
background-color: #D7D456;
}
.navbar-default .navbar-nav>.active>a,
@dtauer
dtauer / gist:404576f6c550c61a3a37c812fc7d30e9
Last active May 25, 2016 15:44
Listening for Captivate play/pause events
//More API documentation here: https://helpx.adobe.com/captivate/using/common-js-interface.html
//You'll want to have this AFTER the captivate file is initialized (e.g. after cpInit() is called)
if(window.cpAPIInterface && window.cpAPIEventEmitter)
{
//add a listener to for pause event
window.cpAPIEventEmitter.addEventListener("CPAPI_MOVIEPAUSE", function(e){
console.log("captivate timeline paused");
});
@dtauer
dtauer / styles.css
Created April 20, 2018 22:11
CSS File from the HTML/CSS Class on 4/20/18
/* Change the box-sizing so we don't have issues calculating the width */
* {
box-sizing: inherit;
}
html {
box-sizing: border-box;
font-size: 16px;
}