Skip to content

Instantly share code, notes, and snippets.

View z0z0r4's full-sized avatar
💭
My response may be slow.

z0z0r4 z0z0r4

💭
My response may be slow.
View GitHub Profile
@z0z0r4
z0z0r4 / bomb.s
Last active March 3, 2026 23:48
CSAPP Bomb Lab 的汇编注释
bomb: 文件格式 elf64-x86-64
Disassembly of section .init:
0000000000400ac0 <_init>:
400ac0: 48 83 ec 08 sub $0x8,%rsp
400ac4: e8 f3 01 00 00 call 400cbc <call_gmon_start>
400ac9: 48 83 c4 08 add $0x8,%rsp
@z0z0r4
z0z0r4 / dat.py
Last active February 23, 2026 08:16
Double-Array Tire
import random
class DAT:
default_size: int = 4096
data_set_size = 126
base: list[int]
check: list[int]
def __init__(self):
self.base = [0] * self.default_size
@z0z0r4
z0z0r4 / rbtree.py
Created February 21, 2026 07:01
RBTree
from enum import Enum
import random
class Color(Enum):
RED = "red"
BLACK = "black"
class RBNode:
@z0z0r4
z0z0r4 / Timsort.py
Created February 15, 2026 21:58
Timsort
from typing import List
class TimSort:
items: list
stack: List[tuple]
minrun: int
min_gallop = 7
@z0z0r4
z0z0r4 / Gemini proxy group
Last active December 30, 2025 02:51
Gemini proxy group
const main = (config) => {
const allProxyNames = config.proxies ? config.proxies.map((p) => p.name) : [];
const geminiGroup = {
name: "Gemini",
type: "select",
proxies: [
// "DIRECT",
...allProxyNames
]
@z0z0r4
z0z0r4 / gobang.cpp
Created December 23, 2025 15:35
AI五子棋C++期末作业
#include <iostream>
#include <climits>
#include <cstdio>
#include <filesystem>
#include <iomanip>
#include <utility>
#include <vector>
#include <time.h>
bool debug_mode = false;
@z0z0r4
z0z0r4 / linked_list.cpp
Last active December 20, 2025 12:14
单向链表
#include <iostream>
#include <cassert>
template <typename T>
struct Node
{
T value;
Node<T> *next;
};
This file has been truncated, but you can view the full file.
[
"'Blueberries' Buckshot | NSWC SEAL",
"'Medium Rare' Crasswater | Guerrilla Warfare",
"'The Doctor' Romanov | Sabre",
"'Two Times' McCoy | TACP Cavalry",
"'Two Times' McCoy | USAF TACP",
"10 Year Birthday Sticker Capsule",
"1st Lieutenant Farlow | SWAT",
"2020 RMR Challengers",
"2020 RMR Contenders",
@z0z0r4
z0z0r4 / moodle_auto_play.js
Last active October 12, 2025 03:30
砺儒云课堂 - 自动播放 油猴脚本
// ==UserScript==
// @name 砺儒云课堂 - 自动播放
// @namespace https://gist.github.com/z0z0r4/523f47d6ea2a4858962728bb5479e46a
// @version 1.0
// @description 砺儒云课堂 - 自动播放下一个视频
// @author z0z0r4
// @match https://moodle.scnu.edu.cn/mod/fsresource/view.php*
// @grant none
// @run-at document-idle
// ==/UserScript==