-a
archives recursively
-P
shows progress and enables resuming interrupted download
-a
compresses
rsync -azP -e 'ssh -p PORT' <user>@<IP>:/path/to/folder .
# python3 -mvenv venv && source venv/bin/activate && pip install matplotlib | |
# python3 make_polygon.py | |
import matplotlib.pyplot as plt | |
import math | |
def make_polygon(vertices): | |
# compute centroid | |
average_x = sum([vertex[0] for vertex in vertices]) / len(vertices) | |
average_y = sum([vertex[1] for vertex in vertices]) / len(vertices) | |
centroid = [average_x, average_y] |
-a
archives recursively
-P
shows progress and enables resuming interrupted download
-a
compresses
rsync -azP -e 'ssh -p PORT' <user>@<IP>:/path/to/folder .
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Sand</title> | |
<meta charset="utf-8"> | |
<link rel="icon" href="data:;base64,iVBORw0KGgo="> | |
<script type="text/javascript"> | |
const SAND = 0xEF | 0xDD << 8 | 0x6F << 16 | 0xFF << 24; | |
const WATER = 0x1C | 0xA3 << 8 | 0xEC << 16 | 0xFF << 24; | |
let run = true; |
Write a buggy program:
int main() {
int *p = 0;
*p = 42;
return 0;
}
Compile it with debug options:
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <ctype.h> | |
#define MAX_LINE_LENGTH 4096 // Max line length for reading input (can be adjusted) | |
#define INITIAL_CHILDREN_CAPACITY 4 | |
#define TAB_STOP_WIDTH 4 |
source: https://raw.githubusercontent.com/andmarti1424/sc-im/freeze/src/doc | |
see license: https://github.com/andmarti1424/sc-im/blob/main/LICENSE | |
This is the sc-im help file. | |
Use the arrow keys to move around, or 'j' to go down and 'k' to go up. | |
You can also use the <ENTER> key to go one line down and <DEL> to go up. | |
<SPACE> moves a page down, while <C-f> and <C-b> move half page down or up. |
source: https://larryniven.fandom.com/wiki/Complete_Known_Space_Timeline
2125 | Pssthpok (Protector 1973) |
2341 | Interlude (Protector 1973) |
2341 | Vandervecken (Protector 1973) |
2361 | Protector (Protector 1973) |
2637-2651 | Juggler of Worlds (2008) |
2650-2652 | Fleet of Worlds (2007) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Screen Recorder</title> | |
<script src="main.js"></script> | |
</head> | |
<body> |