This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.flip { | |
-moz-transform: scaleX(-1); | |
-o-transform: scaleX(-1); | |
-webkit-transform: scaleX(-1); | |
transform: scaleX(-1); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::selection { | |
background-color: #dd2020; | |
color: #fff; | |
} | |
::-moz-selection { | |
background-color: #dd2020; | |
color: #fff; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blockquote { | |
background:#f9f9f9; | |
border-left:10px solid #ccc; | |
margin:1.5em 10px; | |
padding:.5em 10px; | |
quotes:"\201C""\201D""\2018""\2019"; | |
} | |
blockquote:before { | |
color:#ccc; | |
content:open-quote; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.dock no-bouncing -bool TRUE | |
killall Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GRUNT-BUILD-CONTROL | |
// https://npmjs.org/package/grunt-build-control | |
// http://curtisblackwell.com/blog/my-deploy-method-brings-most-of-the-boys-to-the-yard | |
// | |
// use grunt to auto push /dist to live, stage, whatever on build | |
// | |
- npm install grunt-build-control --save-dev | |
- // grunt.loadNpmTasks('grunt-build-control'); ( not needed with yeoman ) | |
- configuration: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global help.autocorrect 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/jrcryer/grunt-pagespeed | |
https://npmjs.org/package/grunt-responsive-images | |
https://npmjs.org/package/grunt-modernizr | |
https://github.com/globaldev/grunt-montage | |
https://github.com/nicholasstephan/grunt-spritesheet | |
https://npmjs.org/package/grunt-autoshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MyClass() { | |
this.myCallback = function() { | |
alert("MyClass.myCallback()"); | |
}; | |
this.startRequest = function() { | |
var myself = this; | |
GM_xmlhttpRequest({ | |
'method': 'GET', | |
'url': "http://www.google.com/", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var thingsWeCanDo = { | |
doThisThing : function() { /* behavior */ }, | |
doThatThing : function() { /* behavior */ }, | |
doThisOtherThing : function() { /* behavior */ }, | |
default : function() { /* behavior */ } | |
}; | |
var doSomething = function(doWhat) { | |
var thingToDo = thingsWeCanDo.hasOwnProperty(doWhat) ? doWhat : "default" | |
thingsWeCanDo[thingToDo](); |
OlderNewer