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
!!! 5 | |
//if lt IE 7 | |
| <html class="no-js ie6 oldie" lang="en"> | |
//if IE 7 | |
| <html class="no-js ie7 oldie" lang="en"> | |
//if IE 8 | |
| <html class="no-js ie8 oldie" lang="en"> | |
//if gte IE 9 | |
| <html class="no-js" lang="en"> | |
head |
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
tar -zxf node-v0.6.5.tar.gz | |
cd node-v0.6.5 | |
./configure | |
make | |
sudo make install | |
export PATH=$PATH:/opt/node/bin |
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 http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}).listen(1337, "127.0.0.1"); | |
console.log('Server running at http://127.0.0.1:1337/'); |
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 YOUR_NAME_HERE <YOUR_URL_HERE> | |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
var app = module.exports = express.createServer(); | |
// 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
#header-container | |
header.wrapper.clearfix | |
h1.title | |
#main-container | |
#main.wrapper.clearfix | |
#footer-container | |
footer.wrapper |
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
render` | |
<table class="table table-striped table-bordered table-sm"> | |
<thead> | |
<tr><th>Label</th><th>Value</th></tr> | |
</thead> | |
<tbody> | |
${ary.map(obj => wire(obj)`<tr><td>${obj.label}</td><td>${obj.value}</td></tr>`)} | |
</tbody> | |
</table> | |
`; |
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 display() { | |
render` | |
<table class="table table-striped table-bordered table-sm"> | |
<thead> | |
<tr><th>Label</th><th>Value</th></tr> | |
</thead> | |
<tbody> | |
${ary.map(obj => wire(obj) `<tr><td>${obj.label}</td><td>${obj.value}</td></tr>`)} | |
</tbody> | |
</table> |
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 display() { | |
render` | |
<table class="table table-striped table-bordered table-sm"> | |
<thead> | |
<tr> | |
<th><a onclick="${sort}" data-target="label" href="#">Label</a></th> | |
<th><a onclick="${sort}" data-target="value" href="#">Value</a></th> | |
</tr> | |
</thead> | |
<tbody> |
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 sort(e) { | |
console.log(e, e.target, this); | |
////MouseEvent,HTMLAnchorElement,HTMLAnchorElement | |
} |
OlderNewer