start new:
tmux
start new with session name:
tmux new -s myname
" Settings | |
" alias ':g' to ':tabnew google' | |
command g tabnew google | |
let completionengines = ["google", "amazon", "imdb"] | |
" blacklists prefixed by '@' act as a whitelist | |
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@*://*orf.at/*"] |
Setup | |
----- | |
git clone <repo> | |
Info | |
---- | |
git reflog | |
Use this to recover from *major* mess ups! It's basically a log of the | |
last few actions and you might have luck and find old commits that |
<div ng-repeat="m in milestone_choices" class="row-fluid"> | |
<label><input type="radio" name="meaningless" value="(( $index ))" ng-model="milestone_data.index" /> | |
<span ng-bind="m.title"></span></label> | |
</div> |
stopBefore(document, 'getElementById')
stopBefore('document.getElementById') // the same as the previous
stopBefore(Element.prototype, 'removeChild')
function uuid() { | |
var uuid = "", i, random; | |
for (i = 0; i < 32; i++) { | |
random = Math.random() * 16 | 0; | |
if (i == 8 || i == 12 || i == 16 || i == 20) { | |
uuid += "-" | |
} | |
uuid += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16); | |
} |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
Authored by Peter Rybin , Chrome DevTools team
In this short guide we'll review some new Chrome DevTools features for "function scope" and "internal properties" by exploring some base JavaScript language concepts.
Let's start with closures – one of the most famous things in JS. A closure is a function, that uses variables from outside. See an example:
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |