Skip to content

Instantly share code, notes, and snippets.

View saddit's full-sized avatar

Saddit saddit

View GitHub Profile
@saddit
saddit / Crash log of Ryujinx.txt
Last active February 7, 2024 08:10
Crash log of Ryujinx
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Ryujinx [21813]
Path: /Applications/Ryujinx.app/Contents/MacOS/Ryujinx
Identifier: org.ryujinx.Ryujinx
Version: 1.1 (1.1.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
@saddit
saddit / PriorityQueue.cs
Last active April 22, 2021 10:59
包含异步多线程的优先队列
/// <summary>
/// 优先队列
/// </summary>
/// <typeparam name="T">队列内容的类</typeparam>
public class PriorityQueue<T>
{
const int TOPINDEX = 1;
private List<T> heap;
private Comparison<T> compare;
@saddit
saddit / CNInvalidRequestFilter.java
Last active February 7, 2024 08:11
Shiro支持中文的InvalidRequstFilter
package group.java.campusmall.shiro;
import org.apache.shiro.util.StringUtils;
import org.apache.shiro.web.filter.AccessControlFilter;
import org.apache.shiro.web.filter.InvalidRequestFilter;
import org.apache.shiro.web.util.WebUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import javax.servlet.ServletRequest;
@saddit
saddit / zjqndxx.py
Created March 22, 2021 15:04
青春浙江-青年大学习打卡脚本
import requests
import json
import re
import sys
if __name__ == "__main__":
getToken_url = 'https://qczj.h5yunban.com/qczj-qndxx/cgi-bin/login/we-chat/callback'
getUserInfo_url = 'https://qczj.h5yunban.com/qczj-qndxx/cgi-bin/user-api/course/last-info'
getClass_url = 'https://qczj.h5yunban.com/qczj-qndxx/cgi-bin/common-api/course/current'
checkin_url = 'https://qczj.h5yunban.com/qczj-qndxx/cgi-bin/user-api/course/join'