Skip to content

Instantly share code, notes, and snippets.

View kylehotchkiss's full-sized avatar
👨‍💻
Javascript

Kyle Hotchkiss kylehotchkiss

👨‍💻
Javascript
View GitHub Profile
@kylehotchkiss
kylehotchkiss / chase.js
Last active August 29, 2015 14:05
Get total of Chase rewards for next statement, because chase doens't tell you.
var transactions = [];
var i = 0;
jQuery(".summary a.expander").each(function( i ) {
transactions.push( this );
});
var getTransactions = (function getTransactions() {
if ( i < transactions.length ) {
@kylehotchkiss
kylehotchkiss / gruntfile-stuff.js
Created April 27, 2014 04:41
CDNify for Grunt/Wordpress - Failsafe code for conditionally using versioned CDN'd assets with wordpress, fails back to local files.
md5: {
compile: {
files: {
'<%= config.tmp %>/styles/': '<%= config.wordpress %>/**/*.css',
'<%= config.tmp %>/scripts/': '<%= config.wordpress %>/**/*.js'
},
options: {
keepBasename: true,
keepExtension: true,
after: function ( changes ) {
@tylerwalts
tylerwalts / setupOSX.sh
Created March 5, 2014 19:56
This is a bash script to setup Mac OS X defaults on a new mac.
#!/bin/bash
#
# Set up OSX preferences
#
# Inspired by: https://github.com/mathiasbynens/dotfiles/blob/master/.osx
###########################################
# CONFIG
HOSTNAME="machiavellia"
TIMEZONE="America/Chicago" # 'systemsetup -listtimezones'
@dtipson
dtipson / jandocer.js
Last active December 15, 2015 14:19
javascript: (function () {var jsCode = document.createElement('script');jsCode.setAttribute('src', 'https://gist.github.com/dtipson/5273244/raw/4842abcef622739be3ccda188c1a057e942b30af/jandocme.js');document.body.appendChild(jsCode);}());