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
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
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
/* | |
# .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
/** | |
* @param {Number} ms | |
*/ | |
function sleep(ms) { | |
var end = Date.now() + ms; | |
while (Date.now() < end); | |
} |
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
_人人人人人人_ | |
> 突然の死 < | |
 ̄Y^Y^Y^Y^Y ̄ |
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
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } | |
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } | |
audio:not([controls]) { display: none; } | |
[hidden] { display: none; } | |
html { font-size: 100%; -webkit-text-size-adjust: 100%; } | |
body { margin: 0; font-size: 13px; line-height: 1.231; } | |
body, button, input, select, textarea { font-family: sans-serif; color: #222; } | |
a { color: #00e; } | |
a:visited { color: #551a8b; } | |
a:hover { color: #06e; } |
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
/** | |
* 値の更新を待つscrollToのラッパー(for Android) | |
* | |
* @param {Number} x | |
* @param {Number} y | |
* @param {[Function]} callback | |
*/ | |
function setScrollTo(x, y, callback) { | |
var body = document.body; |
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 prefix = !getComputedStyle ? null : (function() { | |
var prefix = null, i = 0, | |
style = getComputedStyle(document.documentElement, null); | |
while (style[i++]) { | |
if (style[i].charAt(0) === '-') { | |
prefix = style[i].split('-')[1]; | |
break; | |
} | |
} |
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 global = Function('return this')(); |