Skip to content

Instantly share code, notes, and snippets.

View windshadow233's full-sized avatar
🏠
Working from home

WindShadow windshadow233

🏠
Working from home
View GitHub Profile
@windshadow233
windshadow233 / mt19937.py
Last active November 21, 2024 17:40
MT19937 Predictor Written in Python
import hashlib
import math
import os
import struct
import time
from itertools import repeat, accumulate
from bisect import bisect
from typing import Set, Sequence
@windshadow233
windshadow233 / Hackergame 2024 关灯 前三小题代码
Created November 9, 2024 11:45
Hackergame 2024 关灯 前三小题代码
Hackergame 2024 关灯 前三小题代码
@windshadow233
windshadow233 / GeekGame 2024 神秘计算器 - 素数判断函数 解题代码
Created October 19, 2024 12:38
GeekGame 2024 神秘计算器 - 素数判断函数 解题代码
GeekGame 2024 神秘计算器 - 素数判断函数 解题代码
@windshadow233
windshadow233 / fm22bin.py
Created October 19, 2024 11:19
GeekGame 2024 TAS概论大作业 flag1、flag2的文件转换脚本
#!/usr/bin/env python3
FM2_SMB1_HEADER_LINES = 12 # SMB1 FM2文件的头部行数,可手动修改
BUTTONS = ['A', 'B', 'S', 'T', 'U', 'D', 'L', 'R']
def input_to_int(input_str: str) -> int:
'''
Converts a string of 8 buttons back to a byte (integer).
'''
@windshadow233
windshadow233 / GeekGame 2024 从零开始学Python - 科学家获得的实验结果 解题代码
Created October 19, 2024 11:12
GeekGame 2024 从零开始学Python - 科学家获得的实验结果 解题代码
GeekGame 2024 从零开始学Python - 科学家获得的实验结果 解题代码
@windshadow233
windshadow233 / GeekGame 2024 验证码 - Expert 解题代码
Created October 19, 2024 09:23
GeekGame 2024 验证码 - Expert 解题代码
GeekGame 2024 验证码 - Expert 解题代码
@windshadow233
windshadow233 / Geekgame 2024 熙熙攘攘我们的天才吧 - Magic Keyboard 脚本
Last active October 19, 2024 13:02
Geekgame 2024 熙熙攘攘我们的天才吧 - Magic Keyboard 脚本
Geekgame 2024 熙熙攘攘我们的天才吧 - Magic Keyboard 脚本
logRe
var ajaxhome='';//主页的url
var ajaxcontent = 'content';//需要ajax动态加载的区域id
var ajaxsearch_class = 'search-form';//ajax搜索表单的class
var ajaxignore_string = new String('#, /wp-, .pdf, .zip, .rar, /goto');
var ajaxignore = ajaxignore_string.split(', ');
var ajaxloading_code = 'loading';//加载过程中的提示内容
var ajaxloading_error_code = 'error';//加载失败时的提示内容
var ajaxreloadDocumentReady = false;
var ajaxtrack_analytics = false
var ajaxscroll_top = true
PKU GeekGame 2nd 扫雷 II 解题代码