Skip to content

Instantly share code, notes, and snippets.

@jasonlcrane
jasonlcrane / .bash_profile
Last active December 22, 2016 16:37
A collection of shortcuts from my bash profile
# GIT ALIASES
alias s="git status"
alias aa="git add ."
alias log="git log"
alias glog="git log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%ai) %C(bold blue)<%an>%Creset'"
alias pulld="git pull origin development"
alias pushd="git push origin development"
alias pullm="git pull origin master"
alias pushm="git push origin master"
alias merged="git merge development"
@jasonlcrane
jasonlcrane / index.html
Created April 8, 2013 01:11
A CodePen by Jason Crane. State abbreviations in a datalist - A demo showing state abbreviations in a text field with an associated datalist element, and then validating the entered text based on the datalist.
<label for="state">State</label><input id="state" type="text" maxlength="2" list="state_abbr" />
<datalist id="state_abbr">
<option value="AL">
<option value="AK">
<option value="AZ">
<option value="AR">
<option value="CA">
<option value="CO">
<option value="CT">
<option value="DE">
@jasonlcrane
jasonlcrane / jquery.docs.versionNotifier.js
Created December 14, 2011 21:30
Notifies a user if they arrive at an outdated documentation page for jQuery Mobile.
// ==UserScript==
// @match http://jquerymobile.com/demos/*
// ==/UserScript==
// notifies user of newer version of jQuery Mobile documentation
(function versionNotifier() {
var path = window.location.pathname,
// regex for version number in url
re = /[0-9ab.]+\//,
// extract version being viewed from path