Skip to content

Instantly share code, notes, and snippets.

View neruthes's full-sized avatar
🏳️
Vive la France

Neruthes 0x5200DF38 neruthes

🏳️
Vive la France
View GitHub Profile
@neruthes
neruthes / renum.js
Created January 2, 2024 04:34
Hash numbers for order no, etc.
const crypto = require('crypto');
function renum(num, key) {
// Convert the number to a string
const numStr = String(num);
const len = numStr.length;
// Hash the string using SHA-256
const hash = crypto.createHash('sha256');
const hashedNum = hash.update(numStr, 'utf8').digest('hex').slice(0, len + 2);

摘要

AOSC的诸位同仁:

我了解到最近社区内发生着关于参与度的意见交锋。在此议题上,我也产生了许多思考,希望借此机会向大家介绍。

在本邮件中,我将从我个人经历和体验出发讨论项目工作参与层面的阻碍,以及可能的改进方案。

PDF URL

@neruthes
neruthes / quantum.svg
Created September 2, 2023 21:02
This is a vector adoption of the Quantum icon from Honkai Star Rail. The copyright belongs to its original creator (supposedly Mihoyo Shanghai). Vectornized by Neruthes. The vectornizor does not assume any copyright over the SVG code contained herein.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\documentclass[a4paper,12pt]{article}
\usepackage[a4paper,landscape,textwidth=50em,tmargin=24mm,bmargin=24mm]{geometry}
\usepackage{calc}
\usepackage[PunctStyle=plain,RubberPunctSkip=false,CJKglue=,CJKecglue=\hskip 4pt plus 20pt]{xeCJK}
\setlength{\parindent}{0pt}
\setlength{\parskip}{7pt}
\pagestyle{empty}
\begin{document}

DYBank - Terms and Conditions

Preamble

This Document of Terms and Conditions ("the agreement") shall govern the use between two parties, i.e. DYBank ("we", "us", "our side") and the user ("you").

The Essence of the Service

Our Service consist of the following components:

The Hackable Dashboard

简介

我们希望开发一个浏览器扩展,由它提供高度可定制的浏览器主页体验。此外,这种体验应当可以在正常网页上复刻,不依赖浏览器扩展。

整体设计原则

  • 单一配置文件:用户的整体配置,保管在一个便携的配置文件内
  • 网格布局:提供一个 12x240 的网格,用户可以自行安排如何布置 block

全树 QA 策略草案

需求综述

  • 每次更新包版本时需要做 QA 测试。
  • 我们的 QA 约束会越来越多。
  • 虽然一个包上次合格,但这次不一定合格。
  • 就算不发版,也要用新的 QA 约束回归测试。
  • QA 不合格构成阻碍因素,合格前不再更新这个包的版本。
  • 不合格的包要变得合格,要么找上游改,要么发行版打 patch。
// ImgMultiSrcLoader.js
// Usage:
// <img src="1.png" data-multi-src="1.png 2.png https://example.com/3.png">
window.addEventListener('load', function () {
document.querySelectorAll('img[data-multi-src]').forEach(function (img) {
const srcArr = img.getAttribute('data-multi-src').split(' ');
srcArr.forEach(function (src) {
const xhr = new XMLHttpRequest();
xhr.addEventListener('load', function (e) {

炽锋 - 霹雳弦惊

背景

炽锋,退役军人。

璃月人,成男体型,岩元素神之眼,弓箭。

卡池标题:霹雳弦惊。