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
gulp.task('build-typeface', function() { | |
return merge( | |
gulp.src(paths.components) | |
.pipe(cached('components')) | |
// add tabulations to non-empty newlines | |
.pipe(replace(/(?:^|\r\n?|\n)(?![\r\n])/g, '\n\t\t\t')) | |
// replace points[X] with points(X) | |
.pipe(replace(/points\[(\d+)\]/g, 'points($1)')) | |
.pipe(jshint({ |
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
# [PackageDev] target_format: plist, ext: tmLanguage | |
--- | |
name: Prototypo Glyph Formula | |
scopeName: source.prototypo_glyph_formula | |
fileTypes: [pgf, pcf] | |
uuid: e87ec56d-d1cc-417c-98df-6507c710898f | |
patterns: | |
- include: '#line-comment' |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 Louis-Remi <http://louisremi.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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(window,document,indexOf) { | |
var _atchesSelector = "atchesSelector", | |
html = document.documentElement, | |
prefixes = [ | |
"webkitM", | |
"mozM", | |
"msM", | |
"oM", | |
"m" |
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
<ul> | |
<li><a class="label active" href="#content1">label 1</a></li> | |
<li><a class="label" href="#content2">label 2</a></li> | |
<li><a class="label" href="#content3">label 3</a></li> | |
</ul> | |
<div id="content1" class="content active">Some content for label 1</div> | |
<div id="content2" class="content">Some content for label 2</div> | |
<div id="content3" class="content">Some content for label 3</div> |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 @louis_remi <http://louisremi.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 @louis_remi <http://louisremi.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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( w, d ) { | |
// feature detection | |
if ( w.applicationCache ) { | |
// this script shouldn't run on first load | |
if ( localStorage.hasAppcache === "true" ) { | |
// display a loader and block interaction if an update is available | |
applicationCache.addEventListener("downloading", function() { |
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
// HTML inserted before elem in the DOM | |
elem.insertAdjacentHTML( "beforebegin", ... ) | |
// inside elem, before its first child | |
elem.insertAdjacentHTML( "afterbegin", ... ) | |
// inside elem, after its last child | |
elem.insertAdjacentHTML( "beforeend", ... ) | |
// HTML inserted after elem in the DOM | |
elem.insertAdjacentHTML( "afterend", ... ) |
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
canvas.addEventListener("touchmove", function( event ) { | |
event.preventDefault(); | |
// Touch events include all fingers moving on the surface | |
var touches = event.changedTouches, | |
i = touches.length; | |
// Touches can be iterated like an array | |
while ( i-- ) { | |
canvasCtx.beginPath(); | |
canvasCtx.arc( |