Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am justinhillsjohnson on github.
  • I am destriant (https://keybase.io/destriant) on keybase.
  • I have a public key ASB1ywPk7EXxXq4ptUgdJLu-LgTPNUcKSDucXt5ZHUkOTgo

To claim this, I am signing this object:

---
title: Sitemap
slug: sitemap
is_layout: false
listed: false
published: true
cache_strategy: none
response_type: text/xml
position: 3
---
@justinhillsjohnson
justinhillsjohnson / sitemap.liquid
Created February 24, 2015 16:05
locomotivecms-sitemap-liquid
---
title: Sitemap
slug: sitemap
is_layout: false
listed: false
published: true
cache_strategy: none
response_type: text/xml
position: 1
---
[intrawest-snow-report] rake test_winter_park 8:33:39 ☁ master ☀
<table width="362" cellspacing="0" cellpadding="0" border="0" style="color: white; border-collapse: collapse; font-family: Arial, Verdana, sans-serif; font-size: 13px; line-height: 18px;" class="snow-report">
<tbody>
<tr>
<td valign="top" style="font-family: Arial, Verdana, sans-serif; font-size: 13px; line-height: 18px;" class="">
<div id="NewSnow24">
<b>New Snow in Last 24 hrs:</b> 7.5"
<br>
#!/bin/bash
APPNAME=$1
DBNAME=$2
WAITING="=============================================================="
echo "Cloning database from heroku app $APPNAME."
echo "Note: You must have heroku toolbelt and postgres installed."
echo $WAITING
echo "Capturing new backup with --expire option"
/**
* @module views/AppView
*/
define([
'jquery',
'underscore',
'backbone',
'app',
'views/BannerView',
@justinhillsjohnson
justinhillsjohnson / code-review-checklist.md
Last active August 29, 2015 14:03
code-review-checklist

General

  1. Site uses a cache buster for expiring .js, .css, and images
  2. JavaScript and CSS is minified and concatenated into logical groupings
  3. Images have been optimized by ImageOptim (http://imageoptim.com/)

Markup

  1. Code does not contain inline JavaScript event listeners
  2. Code does not contain inline style attributes
/**
* @module views/AppView
*/
define([
'jquery',
'underscore',
'backbone',
'app'
],
@justinhillsjohnson
justinhillsjohnson / analytics.js
Created June 20, 2014 22:09
GTM analytics framework using jQuery (event delegation, custom events)
jQuery(function() {
var _$window, _$body, _trackingMap;
_$window = $(window);
_$body = $(document.body);
_trackingMap = {
'click': {
'track_register': {
'trackFunction': function(e) {
analytics.pushData({
[
"$hit",
"$hit$",
"$hits",
"$hitted",
"$hitter",
"$hitting",
"3some",
"53x",
"60 nine",