Skip to content

Instantly share code, notes, and snippets.

View jgillman's full-sized avatar

Joel Gillman jgillman

View GitHub Profile
@jgillman
jgillman / keybase.md
Created March 5, 2014 21:53
keybase.md

Keybase proof

I hereby claim:

  • I am jgillman on github.
  • I am jgillman (https://keybase.io/jgillman) on keybase.
  • I have a public key whose fingerprint is E3EE D513 929D 3C0A 69A9 B9CA 5B58 90FE 1310 4968

To claim this, I am signing this object:

@jgillman
jgillman / dabblet.css
Created March 20, 2014 00:02
GB Kitty Tiles..
/**
* GB Kitty Tiles..
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
@jgillman
jgillman / dabblet.css
Created March 20, 2014 00:35
Ribbon Banners
/**
* Ribbon Banners
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
font-family: sans-serif;
}
@jgillman
jgillman / animation.sass
Created April 7, 2014 22:50
Native Sass mixin for CSS3 animation, no Compass needed.
// Choose what browser prefixes you want based on info you find here:
// http://caniuse.com/#feat=css-animation
// Add vendor prefixes to keyframes
@mixin keyframes($animation-name)
@-webkit-keyframes #{$animation-name}
@content
@-moz-keyframes #{$animation-name}
@content
@keyframes #{$animation-name}
@jgillman
jgillman / dabblet.css
Created May 5, 2014 18:53
Pseudo-skewed box
/**
* Pseudo-skewed box
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
padding: 8em;
}
@jgillman
jgillman / pre-commit.sh
Last active August 29, 2015 14:01 — forked from alexbevi/pre-commit.sh
Git pre-commit hook to check all staged Ruby (*.rb/haml/js/coffee) files for debug statements
#!/bin/sh
#
# Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files
# for Pry binding references
#
# Installation
#
# cd .git/hooks
# ln -s relative/path/to/pre-commit.sh
#
@jgillman
jgillman / launch_plex.sh
Created June 3, 2014 04:56
A quick and dirty shell script to turn on the Lightpack, launch Plex, then turn off the Lightpack when Plex exits.
#!/bin/bash
# A quick and dirty shell script to turn on the Lightpack, launch Plex, then
# turn off the Lightpack when Plex exits.
# Turn on Lightpack
(sleep 1; echo "lock"; echo "setstatus:on"; sleep 1; echo "exit") \
| telnet 127.0.0.1 3636;
# Launch Plex Home Theater, and turn off Lightpack on exit
@jgillman
jgillman / dabblet.css
Created July 9, 2014 22:52
The difference between max-width 100% and width 100%
/**
* The difference between max-width 100% and width 100%
*/
.maxwidth {
max-width: 100%;
}
.width {
width: 100%;
@jgillman
jgillman / fedexChecker.js
Created March 17, 2015 19:06
Check the validity of a FedEx tracking number based on their 2011 spec
// Depends on ECMAScript 6 for the `map` and `reduce` functions. They are
// easily replaced with a library like Lodash or Underscore.
var FedExChecker = (function() {
'use strict';
var CHECK_WEIGHT_ARRAY, TRACKING_NUMBER_MAX_LENGTH, digitsToArray;
function FedExChecker() {}
@jgillman
jgillman / dabblet.css
Created March 19, 2012 18:43
CSS only button arrows
/**
* CSS only button arrows
*/
ul {
border: 2px solid red;
}
ul:after {
content: '.';
clear: both;