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 / npm_installer.sh
Created April 14, 2015 16:00
Shell Script - npm installer
#!/bin/sh
# A word about this shell script:
#
# It must work everywhere, including on systems that lack
# a /bin/bash, map 'sh' to ksh, ksh97, bash, ash, or zsh,
# and potentially have either a posix shell or bourne
# shell living at /bin/sh.
#
# See this helpful document on writing portable shell scripts:
@willbowling
willbowling / setup.sh
Created April 14, 2015 15:58
Shell Script - Machine Environment Setup
#!/bin/bash
# The following script will install libraries that are required to test on your machine. If you are using vagrant to bring up
# twc dev VM, please execute this file outside of VM.
# Author: ksankaran (Velu)
echo "Un-Installing grunt +++++++++++++++++++++++++++++"
sudo npm uninstall -g grunt-cli
echo "Un-Installing phantomjs +++++++++++++++++++++++++"
npm uninstall phantomjs
echo "Un-Installing node ++++++++++++++++++++++++++++++"
@willbowling
willbowling / .gitconfig
Created April 14, 2015 15:43
My gitconfig
[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
lsd = log --graph --decorate --pretty=oneline --abbrev-commit --all
exclude = !sh -c 'echo "$1" >> .git/info/exclude' -
# http://lukas.zapletalovi.com/2012/07/my-git-aliases-again.html
pu = pull
@willbowling
willbowling / rename-branch.sh
Last active August 29, 2015 14:18 — forked from lttlrck/gist:9628955
Git Rename Branch Locally and Remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@willbowling
willbowling / _sass-arrows.sass
Created April 8, 2014 19:59
SASS CSS Arrows - Up Down Left Right - via border
=arrow-up($color: rgba(white, .50), $size: 5px)
width: 0
height: 0
border-left: $size solid transparent
border-right: $size solid transparent
border-bottom: $size solid $color
=arrow-down($color: rgba(white, .50), $size: 5px)
width: 0
@willbowling
willbowling / SassMeister-input-HTML.html
Created February 10, 2014 19:15
Generated by SassMeister.com.
<div style="height: 300px;">
<center style="margin-top:100px">
<div class="loader rspin">
<span class="c"></span>
<span class="d spin"><span class="e"></span></span>
<span class="r r1"></span>
<span class="r r2"></span>
<span class="r r3"></span>
<span class="r r4"></span>
@willbowling
willbowling / SassMeister-input-HTML.html
Created February 10, 2014 19:14
Generated by SassMeister.com.
<div style="height: 300px;">
<center style="margin-top:100px">
<div class="loader rspin">
<span class="c"></span>
<span class="d spin"><span class="e"></span></span>
<span class="r r1"></span>
<span class="r r2"></span>
<span class="r r3"></span>
<span class="r r4"></span>
@willbowling
willbowling / SassMeister-input-HTML.html
Created January 16, 2014 18:49 — forked from starryeyez024/Element-Queries-Demo.css
Generated by SassMeister.com.
<h4>The actual element queries in this
demo won't work since we aren't loading
the eq.js here, but the HTML may help
you visualize which mixin is best suited
for each of these examples.</h4>
<div class="test-eq" data-eq-pts="pane: 1, pane-xs: 230, pane-sm: 300, pane-md: 465, pane-lg: 630px, pane-xl: 795">
This div would be red.
</div>
// --------------------------------------------------------
// arrows
// --------------------------------------------------------
// $direction: top, left, right, bottom, top-left, top-right, bottom-left, bottom-right
// $color: hex, rgb or rbga
// $size: px or em
// @example
// .element{
// @include arrow(top, #000, 50px);
// }

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation