Description | Code |
---|---|
Reset | \x1b[0m |
Bright | \x1b[1m |
Dim | \x1b[2m |
Underscore | \x1b[4m |
Blink | \x1b[5m |
Reverse | \x1b[7m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x, y, z, a, b, c, dt; | |
var points; | |
function setup(){ | |
createCanvas(600, 600, WEBGL); | |
points = []; | |
x = 0.01; | |
y = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function arrangements(letters){ | |
if (letters.length == 1){ | |
return [letters]; | |
} | |
else if (letters.length == 2){ | |
return [letters[0] + letters[1], letters[1] + letters[0]]; | |
} | |
else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var n = 4; | |
var angles; | |
var speeds; | |
var lengths; | |
function setup(){ | |
createCanvas(window.innerWidth, window.innerHeight); | |
stroke(0, 10); | |
fill(0); | |
frameRate(99999999999); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var n = 7; | |
var angles, speeds, lengths; | |
function setup(){ | |
createCanvas(window.innerWidth, window.innerWidth); | |
background(255); | |
fill(0, 20); | |
frameRate(9999); | |
angles = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createHighDPICanvas(width, height){ | |
let dpi = window.devicePixelRatio || 1 | |
let canvas = document.createElement("canvas") | |
canvas.width = width * dpi | |
canvas.height = height * dpi | |
canvas.style.width = width + "px" | |
canvas.style.height = height + "px" | |
canvas.getContext("2d").scale(dpi, dpi) | |
return canvas | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from: https://davidwalsh.name/detect-scrollbar-width | |
function getScrollbarWidth() { | |
const div = document.createElement("div") | |
div.style = ` | |
width: 100px; | |
height: 100px; | |
overflow: scroll; | |
position: absolute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assuming a partition already exists, apply LUKS formatting to it | |
sudo cryptsetup luksFormat /dev/whatever | |
# open it | |
sudo cryptsetup luksOpen /dev/whatever mapping_name | |
# format it to ext4 (or whatever) | |
sudo mkfs.ext4 /dev/mapper/mapping_name | |
# mount it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from: https://stackoverflow.com/a/4630407 | |
rsync -rvz -e "ssh -p <PORT>" --progress /source/path user@host:/target/path |
I hereby claim:
- I am jrc03c on github.
- I am jrc03c (https://keybase.io/jrc03c) on keybase.
- I have a public key whose fingerprint is 1033 6973 7373 5FD5 7AE9 5114 ED23 C1F4 B19A C886
To claim this, I am signing this object:
OlderNewer