原始代码:
// closure_library_path/closure/goog/events/events.js L222
// goog.events.listen = function(src, type, listener, opt_capt, opt_handler) {....
// Attach the proxy through the browser's API
var express = require('express') | |
var app = express.createServer() | |
var port = 3000 | |
app.use( require('./x-futurama') ) | |
app.get('*',function(req,res,next) { | |
res.end() | |
}) |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>unclosed tag and selectors</title> | |
<style type="text/css"> | |
body>div{margin:2em;border:3px dashed gray;height:3em;} | |
</style> |
# mkdir | |
md output | |
# get-content , set-content -encoding | |
# 括号是必须的 | |
ls *.txt | %{ gc $_ | sc -en utf8 ('output/'+$_.name) } |
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Page Zoom Test</title> | |
<style type="text/css"> | |
body{ | |
font:20px/1.5 Cambria,Georgia,serif; | |
} |
var support = function(attr) { return attr in document.createElement('input') } | |
if ( !support('autofocus') ) { | |
$('input[autofocus]', $form).focus() | |
} |
javascript:void function(a,b){var c=a.navigationStart;console.info(b.map(function(k){var t=a[k];return[k,t?t-c:'-zero-'].join('\t')}).join('\n'))}(performance.timing,['navigationStart','unloadEventStart','unloadEventEnd','redirectStart','redirectEnd','fetchStart','domainLookupStart','domainLookupEnd','connectStart','connectEnd','secureConnectionStart','requestStart','responseStart','responseEnd','domLoading','domInteractive','domContentLoadedEventStart','domContentLoadedEventEnd','domComplete','loadEventStart','loadEventEnd',]) |
// 为兼容 ie7, 用恰当的边距代替两端对齐:可见间隙2个,实际上三个——第三个处于负边距 | |
@item-gap: floor( (960px - 245 * 3) / 2 ); | |
.list { | |
padding-bottom: 35px; | |
margin-right: -(@item-gap + 2); // 可能被取整过,保持溢出 | |
letter-spacing: -2px; | |
} | |
.item { |
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<style type="text/css"> | |
a { | |
/*text-decoration: none;*/ | |
} |
/* | |
http://stackoverflow.com/questions/65849/how-to-insert-line-breaks-in-html-documents-using-css/66000#66000 | |
*/ | |
a:before { | |
content: '\a'; | |
white-space: pre; | |
} |