This file contains hidden or 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
| [layout] | |
| gap = 0 | |
| outer_gap_left = 0 | |
| outer_gap_right = 0 | |
| outer_gap_top = 0 | |
| outer_gap_bottom = 0 | |
| centering_mode = "on_overflow" | |
| center_past_edges = true | |
| width_presets = [ | |
| 0.25, |
This file contains hidden or 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
| [package] | |
| name = "chumsky-demo" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [dependencies] | |
| chumsky = { version = "0.12.0", features = ["pratt"] } |
This file contains hidden or 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
| #include <fcntl.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| void make_nonblocking(int fd) { | |
| int flags = fcntl(fd, F_GETFL, 0); | |
| if (flags == -1) { | |
| perror("fcntl(F_GETFL)"); | |
| exit(1); |
This file contains hidden or 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
| #!/bin/env python | |
| # This script pushes all stacked PRs until the trunk branch is reached | |
| import subprocess | |
| import sys | |
| import argparse | |
| def git(command, capture_output=True): | |
| """ | |
| Execute a git command using subprocess. |
This file contains hidden or 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
| import psutil | |
| import matplotlib.pyplot as plt | |
| def get_running_processes(): | |
| running_processes = [] | |
| # Iterate over all running processes | |
| for proc in psutil.process_iter(['pid', 'name', 'memory_info']): | |
| try: | |
| process_info = proc.info |
This file contains hidden or 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
| const reverseProxyBase = { | |
| acgnx: "share.acgnx.se", | |
| acgrip: "acg.rip", | |
| bangumi: "bangumi.moe", | |
| dmhy: "share.dmhy.org", | |
| mikan: "mikanani.me", | |
| miobt: "miobt.com", | |
| nyaa: "nyaa.si", | |
| nyaa_sukebei: "sukebei.nyaa.si" | |
| } |
This file contains hidden or 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
| import PIL | |
| import PIL.Image | |
| import PIL.ImageDraw | |
| import numpy as np | |
| import tqdm | |
| image_in = "image_in.png" | |
| def sample_pixel(image: PIL.Image.Image, x, y): |
This file contains hidden or 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
| black==23.1.0 | |
| click==8.1.3 | |
| contourpy==1.0.7 | |
| cycler==0.11.0 | |
| fonttools==4.39.2 | |
| kiwisolver==1.4.4 | |
| matplotlib==3.7.1 | |
| mypy-extensions==1.0.0 | |
| numpy==1.24.2 | |
| packaging==23.0 |
I hereby claim:
- I am lynzrand on github.
- I am lynzrand (https://keybase.io/lynzrand) on keybase.
- I have a public key whose fingerprint is 1467 A997 CB61 4DDD 6B8F 5FD3 B119 BA40 670B 5443
To claim this, I am signing this object:
NewerOlder
