Skip to content

Instantly share code, notes, and snippets.

View doodlemoonch's full-sized avatar

Matt Tortolani doodlemoonch

View GitHub Profile
@doodlemoonch
doodlemoonch / README.md
Last active December 16, 2015 05:59 — forked from assimovt/README.md

Setup

Add the following gems to your Gemfile:

gem 'activeresource'
gem 'newrelic_api'

Update your bundle:

.after::-webkit-input-placeholder {
color: #F00;
}
.after:-moz-placeholder {
color: #F00;
}
.after:-ms-input-placeholder {
color: #F00;
}
<input type="text" placeholder="Type and I'll disappear" />
$ phantomjs yslow.js --info basic --format plain http://www.bbc.co.uk
size: 387.0K (387053 bytes)
overall score: C (78)
url: http://www.bbc.co.uk/
# of requests: 54
ruleset: ydefault
page load time: 833
@doodlemoonch
doodlemoonch / gist:1723746
Created February 2, 2012 14:36
Stops telephone number links being clickable in (modern) desktop browsrs
/* Desktops and laptops ----------- */
@media only screen and (min-width : 1224px) {
a[href^="tel:"] {
pointer-events: none;
}
}
@doodlemoonch
doodlemoonch / gist:973081
Created May 15, 2011 11:47 — forked from tlrobinson/gist:961765
Slightly less ghetto JavaScript console bookmarklet for MobileSafari
javascript:(function(){var l,r="";while(l=prompt(r)){try{r=String(eval(l));}catch(e){r="Error: "+e}}})();