Skip to content

Instantly share code, notes, and snippets.

@DChinin
DChinin / lg.yml
Created March 24, 2017 08:11 — forked from mseeley/lg.yml
Known LG devices
---
- 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"
@DChinin
DChinin / tmux.md
Created December 13, 2016 18:52 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@DChinin
DChinin / tmux-cheatsheet.markdown
Created September 9, 2016 16:08 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@DChinin
DChinin / index.html
Created November 21, 2015 10:45 — forked from RubaXa/index.html
CSS vs. Inline style (http://jsbench.github.io/#a9283bb254143ea63d7c) #jsbench #jsperf
<!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>
@DChinin
DChinin / what-forces-layout.md
Created September 29, 2015 06:46 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

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.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()