This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
" tmux will only forward escape sequences to the terminal if surrounded by a DCS sequence | |
" http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTinkbdoZ8eNR1X2UobLTeww1jFrvfJxTMfKSq-L%2B%40mail.gmail.com&forum_name=tmux-users | |
if exists('$TMUX') | |
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" | |
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" | |
else | |
let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
endif |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
<!-- copy this to YOUR_THEME.tmTheme--> | |
<dict> | |
<key>name</key> | |
<string>diff: deleted</string> | |
<key>scope</key> | |
<string>markup.deleted</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#EAE3CA</string> |
<!DOCTYPE html> | |
<!-- #include "inc_header.html" title="Example" header="Sample Title" --> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example</title> | |
<link rel="stylesheet" href="css/main.css"> | |
</head> | |
<body> | |
<h1>Sample Title</h1> |
.markdown-body { | |
font-size: 14px; | |
line-height: 1.6; | |
} | |
.markdown-body > *:first-child { | |
margin-top: 0 !important; | |
} | |
.markdown-body > *:last-child { | |
margin-bottom: 0 !important; | |
} |
// detect if naturalWidth property is supported | |
// getting it is much faster than getComputedStyle() | |
var supportsNatural = ( "naturalWidth" in (new Image()) ), | |
imagePath = 'image.jpg', | |
interval, | |
hasSize, | |
onHasSize = function() { | |
if(hasSize) return; | |
var naturalWidth = supportsNatural ? img[0].naturalWidth : img.width(); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
convert a string to number at JavaScript.
+'12'; // 12
typeof +'12' // number
+'12s'; // NaN
typeof +'12s'; // number