Skip to content

Instantly share code, notes, and snippets.

View davidrhoden's full-sized avatar

David Rhoden davidrhoden

View GitHub Profile
@davidrhoden
davidrhoden / gist:3854420
Created October 8, 2012 19:30
I want to return the index each time I loop through
var portfolio = '<% _.each(projects, function(projects, index) { %><div id="<%= projects.iimage %>" class="anImage <%= (projects.index)== 1 ? "active visible" : "hidden" %> ...
// just logging the output from underscore.js .each function, pulling in some json data.
var portfolio = '<% _.each(projects, function(iimage, iproject, ilink_to_more_copy, iimage_name, pproject_name, pproject_subtitle, pproject_desc, iimage_desc){ console.log("iimage:", iimage, "iproject", iproject, "ilink_to_more_copy", ilink_to_more_copy, "iimage_name",iimage_name, pproject_name, "pproject_subtitle:", pproject_subtitle, "pproject_desc", pproject_desc, "iimage_desc", iimage_desc); } ) %>';
var template = _.template(portfolio, {projects : [{"iimage":"GHI_Mothers2.jpg","iproject":"5","ilink_to_more_copy":"","iimage_name":"","iimage_desc":"GHI Physicians are the types of professionals that can do anything and go anywhere they choose in life. The Mothers Campaign captures the emotion during those once-in-a-lifetime events when their children make them prouder than they ever could have ever imagined. In this campaign, those momentous occasions happen to correspond directly with the choice they make to become
Family,
Please everyone take me off your lists of political emails. Most of them
are beyond common sense and incredibly insulting. I hate to have to ask
this of my family who I find smart and loving, but it's gone past the point
of just being able to simply delete or ignore.
Thank you.
Love you,
Jason Carpentier
Family,
Please everyone take me off your lists of political emails. Most of them
are beyond common sense and incredibly insulting. I hate to have to ask
this of my family who I find smart and loving, but it's gone past the point
of just being able to simply delete or ignore.
Thank you.
Love you,
Jason Carpentier
@davidrhoden
davidrhoden / gist:4113f9eca0204efea3cf
Created April 20, 2015 04:25
first attempt at editing a vagrant config file
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
vagrant box add hashicorp/precise32