Skip to content

Instantly share code, notes, and snippets.

View whyisjake's full-sized avatar
✈️

Jake Spurlock whyisjake

✈️
View GitHub Profile
@whyisjake
whyisjake / gist:4736816
Created February 8, 2013 05:21
Bootstrap 2.3 released
It has been far too long, friends. Nearly three months has gone by since we pushed out a new version of Bootstrap, but fret not, for that void comes to a most excellent halt tonight. After numerous delays, including a bout with the flu, we're happy to announce the release of Bootstrap 2.3.
Oh shit what
Bootstrap 2.3 includes some new features, as well as the standard bunch of bug fixes and docs improvements. Here are the highlights:
Repository changes:
Local instead of global dependencies for our makefile and install process. Now getting started is way easier—just run npm install.
Upgraded to jQuery 1.9. No changes were needed, but we did upgrade the included jQuery file to the latest release.
Moved changelog to be within the repo instead of as a wiki page.
@whyisjake
whyisjake / projects.js
Created February 8, 2013 04:23
Any ideas on how to factor this? I can change the IDs or add data attributes if needed.
jQuery(document).ready(function(){
jQuery('#link-js-step-1').click(function() {
console.log('Clicked');
googletag.pubads().refresh();
_gaq.push(['_trackPageview']);
jQuery('#js-step-1').slideDown();
jQuery('#js-step-2').slideUp();
jQuery('#js-step-3').slideUp();
jQuery('#js-step-4').slideUp();
jQuery('#js-step-5').slideUp();
@whyisjake
whyisjake / db_update.sh
Created February 8, 2013 00:24
Shell script that updates the wp-config.php file to the database name. Useful when you manage a lot of different sites.
#!/bin/bash
if [[ "$1" = "" ]]
then
echo "Usage: $0 dbname";
exit 0;
fi
FILE="/Users/jspurlock/Sites/wp-config1.php"
#FILE="/Users/jspurlock/Sites/wp-config.php"
a:5:{i:0;O:8:"stdClass":5:{s:5:"title";s:50:"Install the standpipe and underground drain pipe.";s:5:"lines";a:2:{i:0;O:8:"stdClass":4:{s:4:"text";s:408:"My design uses a 2" ABS standpipe that runs down from the washer and connects to a gently sloping horizontal pipe buried under a garden path. At the other end, the water splits and travels a bit farther in 2 directions, then flows out through perforated pots and bark chip mulch, and into the soil beneath some water-loving plants and trees. The area to be watered was 40' away and 10' below the washer.";s:8:"text_raw";s:403:"My design uses a 2" ABS standpipe that runs down from the washer and connects to a gently sloping horizontal pipe buried under a garden path. At the other end, the water splits and travels a bit farther in 2 directions, then flows out through perforated pots and bark chip mulch, and into the soil beneath some water-loving plants and trees. The area to be watered was 40' away and 10' below the washer.";s:6:"bullet";s:5:"black";s:5:"lev
@whyisjake
whyisjake / index.html
Created February 7, 2013 20:15
A CodePen by Jake Spurlock. Bootstrap Tabs - Ideally, what we want here is the thumbnails at the top of the page to change the content at the bottom. I would think that we could follow the same rough structure that bootstrap uses.
<div class="container">
<div class="row">
<div class="span12">
<div class="top-steps">
<h3>Step by Step</h3>
@whyisjake
whyisjake / single-projects.html
Created February 7, 2013 06:19
single-projects.php
<!DOCTYPE html>
<html lang="en" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta charset="utf-8">
<title>MAKE | Backyard Graywater System</title>
<meta name="description" content="Get a lush garden from your laundry water." />
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
@whyisjake
whyisjake / quote.asciidoc
Created January 29, 2013 18:01
Any ideas why this isn't blockquoting?
In the earlier days of Twitter, engineers used almost any library they were familiar with to meet front-end requirements. Inconsistencies among the individual applications made it difficult to scale and maintain them. Bootstrap began as an answer to these challenges and quickly accelerated during Twitter’s first Hackweek. By the end of Hackweek, we had reached a stable version that engineers could use across the company.
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
Collapsible Group Item #1
</a>
</div>
<div id="collapseOne" class="accordion-body collapse" style="height: 0px;">
<div class="accordion-inner">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">Collapsible Group Item #2</a>
</div>
<div id="collapseTwo" class="accordion-body in collapse" style="height: auto;">
<div class="accordion-inner">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$(".collapse").collapse()
});
</script>