This is surprisingly easy...basically following Arch Wiki:
https://wiki.archlinux.org/index.php/Howdy
After some investigation, here is step by step and preferences
// Execute with "bun run index.ts > tailwind.gpl" | |
// | |
import colors from 'tailwindcss/colors' | |
type RGB = {r: number, g: number, b: number}; | |
function isObj(data: any): data is object { | |
return data !== null && typeof data === 'object' && !Array.isArray(data) | |
} |
# This script automatically handles Syncthing conflicts on text files by applying a | |
# git three-way merge between the previously synced version and each divergent version. | |
# It depends on the watchdog package and git. | |
# For automatic dependency installation when running with ´uv run --script deconflicter.py´: | |
# /// script | |
# requires-python = ">=3.10" | |
# dependencies = [ | |
# "watchdog", |
from sys import argv | |
import os | |
import re | |
pattern = re.compile(r'^(.*?)(\(\d+\))+\.(.*?)$') | |
if __name__ == "__main__": | |
for file_to_rename in argv[1:]: | |
if os.path.isfile(file_to_rename): | |
match_result = re.match(pattern, file_to_rename) |
''' | |
网页版树洞从 Alice 到 Zombie Zach 的颜色渐变 | |
https://pkuhelper.pku.edu.cn/hole/##1264962 | |
参考了网页版树洞的颜色生成机制,值越接近则颜色越接近。 | |
可以通过更改 i 的值(0 到 1)来改变从谁开始 | |
''' | |
NAMES = [ | |
'Alice', |
// ==UserScript== | |
// @name PKU Auto Click | |
// @namespace https://gist.github.com/AllanChain/c0782061f9e9836e2807a81acfe3b254 | |
// @version 3.6 | |
// @description 自动点击 PKU IAAA,教学网和邮箱的登录键,首次使用需手动点击一次以使插件记录密码。 | |
// @icon https://www.pku.edu.cn/favicon.ico | |
// @author Allan Chain | |
// @copyright 2020 - 2024, Allan Chain | |
// @homepageURL https://gist.github.com/AllanChain/c0782061f9e9836e2807a81acfe3b254 | |
// @supportURL https://gist.github.com/AllanChain/c0782061f9e9836e2807a81acfe3b254 |
module Adamopt | |
# This is a module implementing vanilla Adam (https://arxiv.org/abs/1412.6980). | |
export Adam, step! | |
# Struct containing all necessary info | |
mutable struct Adam | |
theta::AbstractArray{Float64} # Parameter array | |
loss::Function # Loss function | |
grad::Function # Gradient function |
This is surprisingly easy...basically following Arch Wiki:
https://wiki.archlinux.org/index.php/Howdy
After some investigation, here is step by step and preferences
/* mkdir ~/.goldendict/styles/arc-dark/ | |
then put this stylesheet there */ | |
body { | |
margin-top: 1px; | |
margin-right: 3px; | |
margin-left: 2px; | |
margin-bottom: 3px; | |
background: #4b5162; | |
color: white; | |
font-family: Noto Serif CJK SC, Noto Serif, Bookerly, Segoe UI, |
#!/usr/bin/python3 | |
import asyncio | |
import time | |
import socket | |
import argparse | |
import aiohttp | |
class MyConnector(aiohttp.TCPConnector): |
This page contains a list of the current Minecraft Fabric mods. (As of 2021-08-19 08:05:23 Timezone: UTC+0000 (GMT))
To search for mods by name, category, or download count, visit the website, fibermc.com!
Note: You can view a mod's source files by following the "Source" link on its CurseForge page, assuming that the mod's creator has made such files public.
There are currently 2954 mods in this list.