This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
This file contains hidden or 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
/* | |
# .ico- | |
*/ | |
[class^="ico-"]::before, | |
[class*=" ico-"]::before { | |
display: inline-block; | |
content: ""; | |
vertical-align: middle; | |
} | |
[class^="ico-"]:not(:empty)::before, |
This file contains hidden or 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 fp = chrome.loadTimes().firstPaintTime - chrome.loadTimes().startLoadTime; | |
console.log('First paint: ' + fp); |
This file contains hidden or 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
module.exports = (grunt) -> | |
config = | |
pkg: grunt.file.readJSON("package.json") | |
jshintrc: grunt.file.readJSON(".jshintrc") | |
banner: "/*! <%= pkg.name %> (<%= grunt.template.today(\"yyyy-mm-dd\") %>) */" | |
server: | |
base: "." | |
startup: "doc/html" | |
dir: | |
doc: "doc" |
This file contains hidden or 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
/** | |
* @param {String} type [http://goo.gl/B5k5w] | |
* @param {Mix} object | |
* @return {Boolean} | |
*/ | |
function is(type, object) { | |
var klass = Object.prototype.toString.call(object).slice(8, -1); | |
return object !== undefined && object !== null && klass === type; | |
} |
This file contains hidden or 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
define(function() {return function(){/** | |
Here document | |
*/}.toString().slice(15, -3)}); |
This file contains hidden or 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
// globals.js | |
// https://gist.github.com/pocotan001/6305714 | |
// Finding improper JavaScript globals | |
(function() { | |
var prop, cleanWindow, | |
globals = new function globals() {}, | |
body = document.body, | |
iframe = document.createElement('iframe'), | |
ignore = { |
This file contains hidden or 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
.is-invisible { | |
visibility: hidden !important; | |
} | |
.is-hidden { | |
display: none !important; | |
visibility: hidden !important; /* for screenreaders */ | |
} | |
.is-hidden-visually { |
- 🎨 when improving the format/structure of the code
- 🚀 when improving performance
- ✏️ when writing docs
- 💡 new idea
- 🚧 work in progress
- ➕ when adding feature
- ➖ when removing feature
- 🔈 when adding logging
- 🔇 when reducing logging
- 🐛 when fixing a bug