Skip to content

Instantly share code, notes, and snippets.

View lynzrand's full-sized avatar
🧻
Thesis isn't that far from toilet paper

Rynco Maekawa lynzrand

🧻
Thesis isn't that far from toilet paper
View GitHub Profile
@lynzrand
lynzrand / _image.md
Last active January 17, 2024 11:13
Dissonance calculation for up to 19 harmonics with microtonic scales shown -- also see https://gist.github.com/endolith/3066664

out

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"
}
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):
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
@lynzrand
lynzrand / keybase.md
Created April 3, 2023 09:22
Keybase proof

Keybase proof

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:

Hello. I would like you to be the judge of a reverse Turing test. The following are three questions generated by ChatGPT and the corresponding answers by two participants. One of them is an AI like ChatGPT and the other one is a human. Try your best to determine which is which.

Questions:

What is your favorite color and why?
If you could have dinner with any historical figure, who would it be and why?
What is one thing you would change about the world if you had the power to do so?

Answer by A:

@lynzrand
lynzrand / IITC plugin: S2 cell.user.js
Last active November 18, 2022 04:32 — forked from proosyue/IITC plugin: S2 cell
IITC plugin: S2 cell
// ==UserScript==
// @id iitc-plugin-s2cells@ny
// @name IITC plugin: S2 cell (VIP道館-藍,道館-紅,補給站-黃)
// @author ny
// @category Layer
// @version 0.1.7
// @namespace https://github.com/alvin853/s2cells
// @updateURL https://raw.githubusercontent.com/alvin853/s2cells/master/s2cells.meta.js
// @downloadURL https://raw.githubusercontent.com/alvin853/s2cells/master/s2cells.user.js
// @description IITC: Shows various S2 cells on the map
@lynzrand
lynzrand / encode.py
Last active October 30, 2022 16:31
用最短的代码画一只刘看山!当然弄巧成拙太长了
from typing import Any
import bitstream
liukanshan = open("liukanshan.txt", "r").read()
lks_lines = liukanshan.splitlines()
rle = []
# do run-length encoding of the lines
for line in lks_lines:
rle_line = []
@lynzrand
lynzrand / private-build-plans.toml
Last active July 6, 2023 14:51 — forked from re-xyr/private-build-plans.toml
Iosevka Moe/Akira - Rynco's edition - Cute variants of the Iosevka font
[buildPlans.iosevka-moe]
family = "Iosevka Moe"
desc = "CUTE Iosevka!"
spacing = "normal"
serifs = "sans"
no-cv-ss = true
[buildPlans.iosevka-moe.variants.design]
capital-b = "more-asymmetric-interrupted-serifless"
capital-c = "serifless"
// ==UserScript==
// @name 学堂云/雨课堂(是雨课堂4.0,非雨课堂,题库自动搜集)
// @namespace dandanmuaa@gmail.com
// @version 1.2
// @description 雨课堂脚本
// @author sea of flowers
// @match *://*.yuketang.cn/*
// @match *://*.edu.cn/*
// @connect huan.fm210.cn
// @grant unsafeWindow