Thanks a ton for coming down to my talk, folks <33z. Your energy was amazing. This page has a few extra resources for you.
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 url = "http://example.com:3000/pathname/?search=test#hash"; | |
var _a = new URL(url); | |
_a.protocol; // => "http:" | |
_a.hostname; // => "example.com" | |
_a.port; // => "3000" | |
_a.pathname; // => "/pathname/" | |
_a.search; // => "?search=test" | |
_a.hash; // => "#hash" |
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
@import "compass/utilities/sprites"; // Include compass sprite helpers | |
@import "compass/css3/background-size"; // Include helper to calc background size | |
@mixin sprite($name, $hover: false, $active: false) { | |
@include retina-sprite($name, $sprites, $sprites2x, $hover, $active); | |
} | |
// The general purpose retina sprite mixin. | |
// |
Note: this rough draft has turned into https://github.com/maxogden/art-of-node#art-of-node
go to https://github.com/maxogden/art-of-node#art-of-node to view the newer versions of this document
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
minify: { | |
nofiles: {}, | |
manual: { | |
files: [ | |
// Why specify all src-dest mappings manually... | |
{src: 'lib/grunt.js', dest: 'build/grunt.min.js'}, |
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
<script src="/scripts/require.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
requirejs.config({ | |
paths: { | |
'jquery': 'jquery-1.9.1.min', | |
'jquery.mobile': 'jquery.mobile-1.3.0.min' | |
}, | |
shim: { | |
'jquery.mobile': ['jquery', 'jquery.mobile-config'] | |
} |
介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
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
$bgcolor: hsl(53,56%,87%); | |
.button-primary { | |
background: $bgcolor; | |
color: if(lightness($bgcolor) < 50%, white, black); | |
} |
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
mutation _ { | |
newTodo: createTodo(text: "This is a todo mutation example") { | |
text | |
done | |
} | |
} |
OlderNewer