(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
--- | |
- headers: | | |
User-Agent: (LGSmartTV/1.0) AppleWebKit/534.23 OBIGO-T10/2.0 | |
result: | |
browser: | |
name: Obigo T | |
version: "10" | |
engine: | |
name: Webkit | |
version: "534.23" |
Workflow:
Базовые вопросы
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>CSS vs. Inline style</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
elem.clientLeft
, elem.clientTop
, elem.clientWidth
, elem.clientHeight
elem.getClientRects()
, elem.getBoundingClientRect()
(function(win){ | |
'use strict'; | |
var doc = win.document, simpleRe = /^(#?[\w-]+|\.[\w-.]+)$/, periodRe = /\./g, slice = [].slice; | |
win.query = function(selector, context){ | |
context = context || doc; | |
if(simpleRe.test(selector)){ | |
switch(selector.charAt(0)){ | |
case '#': |
{"name":"async","description":"Higher-order functions and common patterns for asynchronous code","main":"./lib/async","author":{"name":"Caolan McMahon"},"version":"0.2.10","repository":{"type":"git","url":"https://github.com/caolan/async.git"},"bugs":{"url":"https://github.com/caolan/async/issues"},"licenses":[{"type":"MIT","url":"https://github.com/caolan/async/raw/master/LICENSE"}],"devDependencies":{"nodeunit":">0.0.0","uglify-js":"1.2.x","nodelint":">0.0.0"},"jam":{"main":"lib/async.js","include":["lib/async.js","README.md","LICENSE"]},"scripts":{"test":"nodeunit test/test-async.js"},"_id":"async@0.2.10","dist":{"shasum":"b6bbe0b0674b9d719708ca38de8c237cb526c3d1","tarball":"http://registry.npmjs.org/async/-/async-0.2.10.tgz"},"_from":"async@~0.2.6","_npmVersion":"1.3.2","_npmUser":{"name":"caolan","email":"caolan.mcmahon@gmail.com"},"maintainers":[{"name":"caolan","email":"caolan@caolanmcmahon.com"}],"directories":{},"_shasum":"b6bbe0b0674b9d719708ca38de8c237cb526c3d1","_resolved":"https://registry.npmjs. |
var stringToDom = function(str) { | |
var wrapMap = { | |
option: [1, '<select multiple="multiple">', '</select>'], | |
legend: [1, '<fieldset>', '</fieldset>'], | |
area: [1, '<map>', '</map>'], | |
param: [1, '<object>', '</object>'], | |
thead: [1, '<table>', '</table>'], | |
tr: [2, '<table><tbody>', '</tbody></table>'], | |
col: [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'], | |
td: [3, '<table><tbody><tr>', '</tr></tbody></table>'], |