Skip to content

Instantly share code, notes, and snippets.

View timothydang's full-sized avatar
👋
web aficionado

Timothy Dang timothydang

👋
web aficionado
View GitHub Profile
brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#
@timothydang
timothydang / dabblet.css
Created August 4, 2013 05:53 — forked from anonymous/dabblet.css
Attempt for Chrome-style progress-indicator with SVG and CSS animations
/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
to {
stroke-dashoffset: -264;
}
}
@timothydang
timothydang / gist:1308071
Created October 23, 2011 23:31
disable touch event
var eventHandler = function(e) {
e.preventDefault();
}
document.addEventListener('touchmove', eventHandler, false);
@timothydang
timothydang / gist:1280330
Created October 12, 2011 04:58
Disable text selection highlighting
* {
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
/* make transparent link & text selection */
-webkit-tap-highlight-color: rgba(0,0,0,0);
::selection { background: transparent; }
::-moz-selection { background: transparent; }
/* prevent copy paste, to allow, change 'none' to 'text' */