Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| # I absolutely hated crypto-js for this. non-standard configurations, weird algorithms, ... | |
| # well obviously you can encrypt it with a better configuration which people will not | |
| # go crazy figuring out its implementation, but in this case I wasn't encrypting the data. | |
| import base64 | |
| from Crypto.Hash import MD5 | |
| from Crypto.Util.Padding import unpad | |
| from Crypto.Cipher import AES | |
| # generated using: CryptoJS.AES.encrypt('test 123456 plaintext', 'some password').toString() |
| use std::sync::{Arc, Mutex}; | |
| use std::thread; | |
| fn main() { | |
| let a = Arc::new(Mutex::new(0)); | |
| let b = Arc::new(Mutex::new(0)); | |
| let mut handles = vec![]; | |
| { | |
| let a = Arc::clone(&a); |
| ///$(which true);FLAGS="-g -Wall -Wextra --std=c17 -O1 -fsanitize=address,undefined";THIS_FILE="$(cd "$(dirname "$0")"; pwd -P)/$(basename "$0")";OUT_FILE="/tmp/build-cache/$THIS_FILE";mkdir -p "$(dirname "$OUT_FILE")";test "$THIS_FILE" -ot "$OUT_FILE" || $(which clang || which gcc) $FLAGS "$THIS_FILE" -o "$OUT_FILE" || exit $?;exec bash -c "exec -a \"$0\" \"$OUT_FILE\" $([ $# -eq 0 ] || printf ' "%s"' "$@")" | |
| #include <stdio.h> | |
| int main() { | |
| printf("Hello world!\n"); | |
| return 0; | |
| } |
[ Update 2025-03-24: Commenting is disabled permanently. Previous comments are archived at web.archive.org. ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
| #!/bin/bash | |
| pretty() { | |
| prefix=$1 | |
| # a named pipe can be unlinked as soon as it has been attached to some file descriptor | |
| # this allows to create anonymous pipes | |
| # create a temporary named pipe | |
| PIPE=$(mktemp -u) |
With this wiki2html.sh bash script and pandoc program, you can convert markdown to html.
Usage: In the vim list section of the .vimrcfile, include options:
let g:vimwiki_list = [{'path': ‘your_wiki_place',
\ 'path_html': ‘wiki_html_location’,
\ 'syntax': 'markdown',
\ 'ext': '.md',| # LICENSE: MIT, wtfpl or whatever OSS license you like | |
| function get_stack () { | |
| STACK="" | |
| local i message="${1:-""}" | |
| local stack_size=${#FUNCNAME[@]} | |
| # to avoid noise we start with 1 to skip the get_stack function | |
| for (( i=1; i<$stack_size; i++ )); do | |
| local func="${FUNCNAME[$i]}" | |
| [ x$func = x ] && func=MAIN | |
| local linen="${BASH_LINENO[$(( i - 1 ))]}" |