Skip to content

Instantly share code, notes, and snippets.

View dberringer's full-sized avatar

Douglas Berringer dberringer

  • Calix
  • North Bay, CA
View GitHub Profile
@dberringer
dberringer / yeoman-sync-foler-log
Last active August 29, 2015 14:09
Yeoman logs from synced folder on vagrant vm
vagrant@packer-virtualbox-iso:~/angular$ yo angular testApp
_-----_
| | .--------------------------.
|--(o)--| | Welcome to Yeoman, |
`---------´ | ladies and gentlemen! |
( _´U`_ ) '--------------------------'
/___A___\
| ~ |
__'.___.'__
@dberringer
dberringer / myproject
Created June 20, 2011 19:21
bash project shortcut
myproject() {
cd /Users/doug/development/myproject/ && rvm 1.8.7
if [ "${1}" == "s" ]; then
script/server -u
fi
}
@dberringer
dberringer / gist:1025859
Created June 14, 2011 20:54
samples for phone number detection uiwebview
<meta name="format-detection" content="telephone=no">
@dberringer
dberringer / gist:1025853
Created June 14, 2011 20:53
samples for phone number detection uiwebview
<meta name="format-detection" content="telephone=no">
@dberringer
dberringer / .trackr.sh
Created April 10, 2011 22:57
this is the launchctl plist file I used to run my .trackr script
#!/bin/bash
WIFISTAT=$(networksetup -getairportpower en1 | grep -o Off)
# this will turn on the wifi if need be and get the geolocaiton
# from CoreLocationCLI then turn the wifi back off if appropriate.
# CoreLocationCLIP seems to have a bug with -once where it pulls old gps
# data rather than the current data so I have to run it then kill it then
# run it with once to get the desired results.
if [ "$WIFISTAT" == "Off" ]; then
function Car () {
this.color = 'red';
//alert('car was made');
}
function Truck () {
// how do I call the parent constructor (i.e. make the alert box appear)
this.color = 'blue';
}