Skip to content

Instantly share code, notes, and snippets.

@BoYanZh
BoYanZh / 2d_simulate.py
Created July 2, 2025 11:48
2D Simulation of Apex Legends Ranked Points
import math
import random
import matplotlib.pyplot as plt
from tqdm import tqdm
SCORE_DICT = {
20: (0, 10),
19: (0, 10),
18: (0, 10),
@BoYanZh
BoYanZh / main.loader.js
Last active July 2, 2025 04:47
Injector for RevengeOnGoldDiggers.exe
// Modified from: https://www.52pojie.cn/thread-2040975-1-1.html
// To use it, replace the content of this file: RevengeOnGoldDiggers/resources/app/src/main.loader.js
// Change the last line to `require(path.join(__dirname, './bin/main-darwin-' + arch + '.jsc'));` if you are using MacOS
// Shortcut keys: Z = Switch preset speed, X/C = -/+ 1.0x speed, V = 2x speed, ←/→ = rewind/forward
require('bytenode');
const path = require('node:path');
const arch = process.arch;
const { app } = require('electron');
app.commandLine.appendSwitch('remote-debugging-port', '9222');
app.commandLine.appendSwitch('remote-allow-origins', '*');
@BoYanZh
BoYanZh / res.json
Last active April 28, 2025 00:13
Apex-Crispy-Duck-Bot
{
"🐮高能混剪": [
{
"BoYanZh": "成功转身\nhttps://outplayed.tv/apex-legends/wklY26"
},
{
"Hollins": "应激\nhttps://outplayed.tv/apex-legends/V6Pd8X"
},
{
"Hollins": "这个一梭子150感觉也没办法了\nhttps://outplayed.tv/apex-legends/2PDZWz"
#!/usr/bin/bash
function register_clang_version {
local version=$1
local priority=$2
update-alternatives \
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \
--slave /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-${version} \
--slave /usr/bin/llvm-as llvm-as /usr/bin/llvm-as-${version} \
Set-StrictMode -Off;
if(!$args) { "usage: sudo <cmd...>"; exit 1 }
$powershellExe = Get-Process -Id $pid | Select-Object -ExpandProperty Path
$commandPrefix = ''
if ($host.Version.Major -gt 5) {
$commandPrefix = '-Command'
}
@BoYanZh
BoYanZh / run.js
Created September 10, 2024 07:39
Discord Quest
let QUEST_ID = "356876176465199104";
let wpRequire;
window.webpackChunkdiscord_app.push([
[Math.random()],
{},
(req) => {
wpRequire = req;
},
]);
@BoYanZh
BoYanZh / powerlevel10k.omp.json
Last active November 11, 2024 09:44
BoYanZh's Oh-My-Posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"auto_upgrade": false,
"disable_notice": true,
"blocks": [
{
"segments": [
{
"type": "executiontime",
"style": "plain",
||collector.pi.spectrum.net^
||udc-neb.kampyle.com^
||sdk.asapp.com^
void function ActuallyPutDefaultSettings()
{
entity player = GetLocalClientPlayer()
//Hack, reusing convars for this sp gamemode. Default settings for the menu declared here.
SetConVarInt( "hud_setting_minimapRotate", 0 )
SetConVarInt( "hud_setting_accessibleChat", 3 )
SetConVarInt( "hud_setting_streamerMode", 1)
SetConVarInt( "hud_setting_showTips", 1 )
SetConVarInt( "hud_setting_compactOverHeadNames", 1 )
SetConVarInt( "hud_setting_showMeter", 0)
@BoYanZh
BoYanZh / ji-tools.md
Last active June 25, 2025 11:47
Useful Tools for UM-SJTU JI Students/TAs

Canvas

BoYanZh/Canvas-Syncer - GitHub

TA Tools

BoYanZh/Joint-Teapot - GitHub tc-imba/canvas-auto-rubric - GitHub

JOJ3

joint-online-judge/JOJ3 - GitHub joint-online-judge/JOJ3-config-generator - GitHub