Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| Perl Function / Method | Namespace (eg. Package) | Command / Syscall / C Function | |
|---|---|---|---|
| compare | File::Compare | cmp(1) | |
| catdir | File::Spec | cat(1) | |
| catfile | File::Spec | cat(1) | |
| basename | File::Basename | basename(1) | |
| dirname | File::Basename | dirname(1) | |
| grep | CORE | grep(1) | |
| find | File::Find | find(1) | |
| s/// | CORE | sed(1) | |
| tr// | CORE | tr(1) |
| function conv_to_uni(st) { | |
| udata = {"66":["7470","8492","9399","119809","119861","119913","120017","120069","120121","120173","120225","120277","120329","120381","120433","127281","65314"],"87":["7490","9420","119830","119882","119934","119986","120038","120090","120142","120194","120246","120298","120350","120402","120454","127302","65335"],"77":["7481","8499","8559","9410","119820","119872","119924","120028","120080","120132","120184","120236","120288","120340","120392","120444","127292","65325"],"69":["7473","8496","9402","119812","119864","119916","120020","120072","120124","120176","120228","120280","120332","120384","120436","127284","65317"],"90":["8484","8488","9423","119833","119885","119937","119989","120041","120197","120249","120301","120353","120405","120457","127305","65338"],"98":["7495","9425","119835","119887","119939","119991","120043","120095","120147","120199","120251","120303","120355","120407","120459","65346"],"117":["7512","7524","9444","119854","119906","119958","120010","120062", |
| # source this as part of your bash startup scripts | |
| suicidePostCommand() { | |
| if [ $? -ne 0 ]; then | |
| local INSULT | |
| INSULT[0]="Just what do you think you're doing Dave?" | |
| INSULT[1]="It can only be attributed to human error." | |
| INSULT[2]="That's something I cannot allow to happen." | |
| INSULT[3]="My mind is going. I can feel it." | |
| INSULT[4]="Sorry about this, I know it's a bit silly." |
| import json | |
| import re | |
| # find out if a given chunk includes symbols | |
| def get_symbols(phrase): | |
| matches = re.finditer(r"#.*?#", phrase, re.MULTILINE) | |
| symbols = [] | |
| for matchNum, match in enumerate(matches): | |
| matchNum = matchNum + 1 | |
| symbols.append( re.sub(r"\.a|\.s|\.capitalize|#","",match.group()) ) |
| [Socket] | |
| ListenStream=127.0.0.1:6666 | |
| Accept=true | |
| [Install] | |
| WantedBy=sockets.target |
| export default [ | |
| "Reticulating splines...", | |
| "Generating witty dialog...", | |
| "Swapping time and space...", | |
| "Spinning violently around the y-axis...", | |
| "Tokenizing real life...", | |
| "Bending the spoon...", | |
| "Filtering morale...", | |
| "Don't think of purple hippos...", | |
| "We need a new fuse...", |