Using markdown:
- Use lists
- etc.
var input = 'Hello, :name.first :name.last! :greeting'; | |
function tokenReplace(str, values) { | |
return str.replace(/:([\w.]+)/g, function (token, name) { | |
return name.split('.').reduce(function (value, part) { | |
return value[part] || null; | |
}, values) || token; | |
}); | |
} |
{ | |
"sublimelinter": "load-save", | |
// jshint: options for linting JavaScript. See http://www.jshint.com/options/ for more info. | |
// By deault, eval is allowed. | |
"jshint_options": | |
{ | |
// To fix column positions for JSHint errors you may want to add `"indent": 1` to your | |
// **User** "jshint_options". This issue affects users with tabs for indentation. | |
// This fix was reverted due to a conflict with using the `"white": true` option. |
# GIT Prompt | |
parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
WHITE="\[\033[1;37m\]" | |
GREEN="\[\033[0;32m\]" | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
B_YELLOW="\[\033[1;33m\]" | |
GREY="\[\033[0;39m\]" |
function addX (x) { | |
return function (a) { | |
return a + x; | |
} | |
} | |
var add5 = addX(5); | |
var add10 = addX(10); | |
// What is result? |
(?:(?:\r\n)?[ \t])*(?:(?:(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*|(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)*\<(?:(?:\r\n)?[ \t])*(?:@(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\ |
// Optional `options. Stuff like retry count, ramp-up, etc. | |
// should have sane defaults. | |
var wait = waitforit(options, function (cb) { | |
// This would be the 'test' function. | |
// cb(true) when 'it' is done. | |
}); | |
wait.on('ready', function () { | |
// Do something because the test condition passed. |
#!/bin/bash | |
USER=ubuntu | |
HOME=/home/ubuntu | |
# install pubkeys | |
mkdir -p $HOME/.ssh | |
chmod 700 $HOME/.ssh | |
curl --silent --location [url to an authorized keys file] > $HOME/.ssh/authorized_keys | |
chmod 600 $HOME/.ssh/authorized_keys |
I hereby claim:
To claim this, I am signing this object: