Directories are relative to the current directory.
git checkout c5f567 -- file1/to/restore file2/to/restore
git checkout c5f567 -- ./folder ../other/file.js
You can see what's changed in these specific places by using diff
instead:
function Bouncer () { | |
this.bans = {} | |
return this | |
} | |
Bouncer.prototype.ban = function ban (key, time) { | |
if (!key || !time) return | |
if (this.bans[key]) clearTimeout(this.bans[key]) | |
this.bans[key] = setTimeout(this.unban.bind(this, key), time) |
// Always break for args > 2 | |
// All of the following are valid examples | |
// usual | |
myFunc(one, two) | |
// > 2 args | |
myFunc( | |
one, | |
two, |
I have not seen prelease versions utilized pre-1.0.0. It seems fairly pointless since the public API is not finalized yet. They become useful after 1.0.0 is released.
From semver.org:
Version 1.0.0 defines the public API. The way in which the version number is incremented after this release is dependent on this public API and how it changes.
Versioned and revised ideas for how to run a good tech company.
Edits can just be plain edited. Redactions must be turned into strikethrough and a comment added stating why the text/point is being removed.
# Requires http://brewformulas.org/Tree | |
alias t="tree -I node_modules -C" |
var types = [ | |
'Date', | |
'FullYear', | |
'Hours', | |
'Milliseconds', | |
'Minutes', | |
'Month', | |
'Seconds', | |
'UTCDate', | |
'UTCFullYear', |
function scramble (message) { | |
message = message || '' | |
var ret = '' | |
var re = /([a-zA-Z]+)|([^a-zA-Z]+)/g | |
var match | |
while (match = re.exec(message)) { | |
if (match[2]) { | |
ret += match[2] |
function proxy () { | |
return new Proxy(function () { | |
return proxy() | |
}, { | |
apply (target, name) { | |
return proxy() | |
}, | |
get (target, name) { | |
switch (name) { |