Skip to content

Instantly share code, notes, and snippets.

View thatrandomperson5's full-sized avatar
🖥️
Coding, something.

Nilts thatrandomperson5

🖥️
Coding, something.
  • Jupiter
View GitHub Profile
@thatrandomperson5
thatrandomperson5 / BUGS.md
Last active October 25, 2024 23:58
Developers docs for Desmosoft Paint

Known Bugs

  • Click-freeze: If you click any of lines drawn, desmos will freeze. Sometimes you can recover your drawing but most of the time it is cleared.

Report more in the comments

@thatrandomperson5
thatrandomperson5 / LICENSE.txt
Last active September 22, 2024 02:13
Async Nim Curly
Copyright 2024 thatrandomperson5
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
@thatrandomperson5
thatrandomperson5 / install.sh
Last active August 27, 2024 19:29
Termux NGrok installer
echo "Installing NGrok CLI in $PREFIX/bin"
ARCHITECTURE=$(lscpu | grep "Architecture" | tr -d " \t\n\r" | cut -c 14-) # Extract the architecture
URL=""
TAR_LOCATION="$PREFIX/bin/vscode.tar.gz"
if [ "$ARCHITECTURE" = "arm64" ] || [ "$ARCHITECTURE" = "aarch64" ]; then
URL="https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgz"
elif [ "$ARCHITECTURE" = "arm32" ]; then
URL="https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm.tgz"
@thatrandomperson5
thatrandomperson5 / install.sh
Last active August 27, 2024 17:55
VSCode Linux CLI install
echo "Installing VSCode CLI in $PREFIX/bin"
ARCHITECTURE=$(lscpu | grep "Architecture" | tr -d " \t\n\r" | cut -c 14-) # Extract the architecture
URL=""
TAR_LOCATION="$PREFIX/bin/vscode.tar.gz"
if [ "$ARCHITECTURE" = "arm64" ] || [ "$ARCHITECTURE" = "aarch64" ]; then
URL="https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-arm64"
elif [ "$ARCHITECTURE" = "arm32" ]; then
URL="https://code.visualstudio.com/sha/download?build=stable&os=cli-linux-armhf"
@thatrandomperson5
thatrandomperson5 / LICENSE.txt
Last active February 12, 2023 19:14
Desync: Making async-blocking code non blocking
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
@thatrandomperson5
thatrandomperson5 / highlight.nim
Created February 8, 2023 15:16
Adapted Highlighter
# Adapted from https://github.com/pietroppeter/nimib/blob/2e0c2223cef10423fc43fc3be9626890a6bb4779/src/nimib/highlight.nim
import std/[strutils, dom]
import packages/docutils/highlite
func nimNormalize(s: string): string =
# Copied from strutils.normalize (same except for branch i == 0)
# Normalizes a Nim identifier to all lowercase:
# - All letters except the first one are lower-cased
@thatrandomperson5
thatrandomperson5 / main.nim
Created January 11, 2023 01:13
Pure-Nim hand-written xml parser, using only stdlib
import parser
const xml = """
<MyTag>
Hello
<OtherTag attr1="hello" attr2="nono"></OtherTag>
<Container>
I'm shallow
<Deep>I'm down deep!</Deep>
I'm shallow
</Container>
@thatrandomperson5
thatrandomperson5 / mypy.yaml
Created December 6, 2022 01:40
Mypy example check
name: mypy
on: [push, pull_request]
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
@thatrandomperson5
thatrandomperson5 / rtfm.py
Created December 4, 2022 01:29
readthedocs lookup
import requests
from dataclasses import dataclass
import furl
from sys import argv
@dataclass
class RTDIOsearch:
slug: str
query: str
def __repr__(self):
@thatrandomperson5
thatrandomperson5 / readme.md
Last active December 3, 2022 20:55
MC flying machine speeds