Skip to content

Instantly share code, notes, and snippets.

View willbowling's full-sized avatar

Will Bowling willbowling

  • Front End Consulting
  • Acworth, GA 30101
View GitHub Profile
@willbowling
willbowling / regex numeric with decimal
Created April 2, 2013 18:02
Pattern for numeric up to 20 including decimal
pattern="^[0-9][\.\d]{1,20}(,\d+)?$"
/*
* jQuery selectbox plugin
*
* Copyright (c) 2007 Sadri Sahraoui (brainfault.com)
* Licensed under the GPL license and MIT:
* http://www.opensource.org/licenses/GPL-license.php
* http://www.opensource.org/licenses/mit-license.php
*
* The code is inspired from Autocomplete plugin (http://www.dyve.net/jquery/?autocomplete)
*
@willbowling
willbowling / .bash_profile
Created November 27, 2012 21:18
My Bash Profile
PS1="\[\e[0;31m\]\u@\h:\w\$ \[\e[1;30m\]"
alias ll="ls -la"
eval "$(hub alias -s)"
export PATH=~/bin:${PATH}
export EDITOR='slime -w'
export WEBMD_SANDBOX=~/github
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
@willbowling
willbowling / .gitconfig
Created November 27, 2012 19:29
My Github GitConfig File
[user]
name = user
email = user@user.net
[core]
excludesfile = /Users/wbowling/.gitignore
editor = slime
[alias]
pu = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"
last = cat-file commit HEAD
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
@willbowling
willbowling / Preferences.sublime-settings
Created November 13, 2012 15:20 — forked from brunogama/Preferences.sublime-settings
Preferences.sublime-settings
{
"auto_complete": true,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
"characters": "<",
@willbowling
willbowling / index.html
Created September 27, 2012 14:42
Experimenting with nth-child, a SASS loop & animating objects on a circular path. No classes.
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
@willbowling
willbowling / gist:3743581
Created September 18, 2012 14:58
CSS3 Multiple Backgrounds
.selector {
background: url(sheep.png) center bottom no-repeat, url(betweengrassandsky.png) left top no-repeat;
}
@willbowling
willbowling / gist:3517206
Created August 29, 2012 19:00 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@willbowling
willbowling / dabblet.css
Created August 14, 2012 21:41
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@willbowling
willbowling / annoying.js
Created August 9, 2012 15:29 — forked from Kilian/annoying.js
How to be an asshole
/**
* Annoying.js - How to be an asshole to your users
*
* DO NOT EVER, EVER USE THIS.
*
* Copyright (c) 2011 Kilian Valkhof (kilianvalkhof.com)
* Visit https://gist.github.com/767982 for more information and changelogs.
* Visit http://kilianvalkhof.com/2011/javascript/annoying-js-how-to-be-an-asshole/ for the introduction and weblog
* Check out https://gist.github.com/942745 if you want to annoy developer instead of visitors
*