This document has now its own repository.
How to use brackets [ ] to advise lossless corrections.
[1][2][3]
This document has now its own repository.
How to use brackets [ ] to advise lossless corrections.
[1][2][3]
## Colours and font styles | |
## Syntax: echo -e "${FOREGROUND_COLOUR}${BACKGROUND_COLOUR}${STYLE}Hello world!${RESET_ALL}" | |
# Escape sequence and resets | |
ESC_SEQ="\x1b[" | |
RESET_ALL="${ESC_SEQ}0m" | |
RESET_BOLD="${ESC_SEQ}21m" | |
RESET_UL="${ESC_SEQ}24m" | |
# Foreground colours |
pr () { | |
git fetch origin refs/pull/$1/head:refs/remotes/origin/pr/$1 --force | |
git checkout -b pr/$1 origin/pr/$1 | |
git rebase master | |
git checkout master | |
git merge pr/$1 --ff-only | |
} |
ffmpeg -i out.ogv -s 160x128 -pix_fmt rgb24 -ss 62.6 -t 3 -r 5 -loop 0 -f gif out.gif | |
convert -loop 0 -layers Optimize out.gif outopt.gif |
var ctx = modul.context; | |
function skin_Default() { | |
ctx.clearRect(0,0,50,50); | |
// modul.io DEFAULT SKIN | |
ctx.beginPath(); | |
// Here is a trick to random the modul's color: | |
ctx.fillStyle="rgba(" + Math.floor( Math.random() * 255) + "," + Math.floor( Math.random() * 255) + "," + Math.floor( Math.random() * 255) + ",1)"; | |
//eyes | |
ctx.fillRect(12,3, 4, 4); |
<!-- here's the PHP'ish way of making inline decisions while constructing HTML markup --> | |
<select name="foobar"> | |
<option value="bam" <?=($foobar==="bam"?"selected":"")?>>Bam</option> | |
<option value="baz" <?=($foobar==="baz"?"selected":"")?>>Baz</option> | |
</select> | |
<input type="radio" name="foobar" value="bam" <?=($foobar==="bam"?"checked":"")?>> Bam | |
<input type="radio" name="foobar" value="baz" <?=($foobar==="baz"?"checked":"")?>> Baz |
/x/==x |
# First install https://github.com/flazz/semver | |
# With this script, you can run "vminor add more cowbell" or just "vminor" | |
function vbump() { | |
level=$1 | |
semver inc $level | |
shift | |
git tag -a $(semver tag) -m "${*:-bump}" | |
git tag -n9 | grep `git describe` # show annotated | |
} |