Skip to content

Instantly share code, notes, and snippets.

View zheung's full-sized avatar
💭
I may be slow to respond. Find me quickly on bilibili maybe

DanoR zheung

💭
I may be slow to respond. Find me quickly on bilibili maybe
View GitHub Profile
@zheung
zheung / uno.config.js
Last active October 11, 2025 11:50
@nuogz/web-app-unocss-config
/**
* @file @nuogz/web-app-unocss-config
* @author DanoR
* @version 1.1.0+25101118
* @requires unocss
* @requires @unocss/preset-mini
* @link https://gist.github.com/zheung/809a08169bbf9fb9956dcb184d7dee88
*/
import { defineConfig, presetWind3 as getPresetWind3 } from 'unocss';
@zheung
zheung / __main__.317.py
Created November 22, 2024 22:48
cdtb rst dump mod
def command_rst_dump(parser, args):
from .rstfile import hashfile_rst_xxh3, RstFile, key_to_hash as key_to_rsthash
from .tools import write_file_or_remove
hashes = {}
rstfile = RstFile(args.rst, 9999)
hashes = {key_to_rsthash(hash, rstfile.hash_bits): value for hash, value in hashes.items()}
rst_json = {"entries": {}, "version": rstfile.version}
@zheung
zheung / eslint.config.js
Last active September 5, 2025 02:05
@nuogz/dynamic-eslint-config
/**
* @file @nuogz/dynamic-eslint-config
* @author DanoR
* @version 5.5.1+25090510
* @requires globals
* @requires @eslint/js
* @requires @stylistic/eslint-plugin
* @requires eslint-plugin-vue@^10 (optional)
* @link https://gist.github.com/zheung/60a57c1bd87a82296fdf22dd9c277dec
*/
@zheung
zheung / hash-tester.html
Created March 25, 2024 09:04
Hash Test: a simple quick fnv1a/fnv1 hash calculator for brute force hash testing manually
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" type="image/ico" href="https://yz.lol.qq.com/favicon.ico" />
<style>
html {
height: 100%;
margin: 0px;
@zheung
zheung / global-var.md
Last active October 31, 2018 07:41
desire wiki

Serv 2.0 全局变量

_ 系统变量,官方模块

变量名 模块
_fs fs
_pa path
_qs querystring
_ul url
_os os
@zheung
zheung / Simplified Weibo Picture Upload on Node.js
Created August 16, 2016 06:43
Simplified Weibo Picture Upload on Node
var http = require('http'), fs = require('fs');
var conf = {
file: './test.jpg',
cookie: 'SUB=_2A256tuCKDeTxGedI7lAT8CbPyDuIHXVZwlVCrDV8PUNbmtBeLRbtkW997byBiVvLOWKxqzGSrT0KJ_9wOw..;'
};
var req = http.request({
method: 'POST',
host: 'picupload.service.weibo.com',
@zheung
zheung / Board.java
Created April 22, 2014 14:42
马踏棋盘
package danor.experiment.HouseTour;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.List;
public class Board
{
private StringBuilder sb;
@zheung
zheung / DanoR_Gist001.java
Last active August 29, 2015 13:59
输入一个数进行进制转换,以String方式输出对应的进制表示
pulic class DanoR_Gist001
public static String HexConvert(double number, int ary, int accuracy)
{
int z = (int)number;
double x = number - z;
String r = "";
for(;z>0;z/=ary)
r = (char)(z%ary>9?z%ary+55:z%ary+48)+r;