Skip to content

Instantly share code, notes, and snippets.

View nonefffds's full-sized avatar
🪙
project_raputa

FDS (Disheng Fan) nonefffds

🪙
project_raputa
View GitHub Profile
@nonefffds
nonefffds / maze.py
Created March 31, 2025 13:48
NGU 3rd: MAZE 迷宫生成器
import random
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
import matplotlib.patches as patches
import os
from matplotlib import font_manager
from matplotlib.path import Path
# 尝试设置中文字体
@nonefffds
nonefffds / anki-decryption.js
Last active December 6, 2024 06:15
对加密的anki卡片内容解密
//本脚本参考了 https://oddpaw.com/2023/07/decrypt-anki-deck/
//非常感谢原作者的贡献
//本脚本仅供个人使用,请勿将获取他人的anki卡组解密后再次售卖
//本脚本适用于anki卡片模板里有 decryptBack() 的js函数的anki卡片,本质:使用了 https://www.jsjiami.com/jsjiami.v6.html 进行加密
//使用方法:在anki里使用chrome inspector打断点获得加密使用的key,在本脚本开头填入key,在本脚本末尾填入输入输出的txt路径
//保存本脚本为 anki-decryption.js 在终端内导航到脚本所在位置并输入 node ./anki-decryption.js
//如何打断点:(如果有时间再更新)
@nonefffds
nonefffds / Elk-Floating-Compose.user.js
Last active February 24, 2023 01:41
Add Floating Compose Button on Elk.zone
// ==UserScript==
// @name Add Floating Compose Button on Elk
// @namespace https://elk.zone
// @version 0.1
// @description A personal use case.
// @match https://elk.zone/*
// @license MIT
// @require http://code.jquery.com/jquery-latest.js
// @require https://greasyfork.org/scripts/47911-font-awesome-all-js/code/Font-awesome%20AllJs.js?version=275337
// @grant GM_addStyle
@nonefffds
nonefffds / autologin.sh
Last active May 6, 2022 01:21
Autologin to school network (自动登录学校校园网)
#!/bin/sh
while true;
do if ping -c 1 baidu.com >/dev/null 2>&1 ; then
sleep 30
else
srun-cli -u <USERNAME> -k <PASSWORD>
fi
@nonefffds
nonefffds / TwitterVerified.html
Created May 5, 2021 09:53
Twitter Verified Bedge
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
@nonefffds
nonefffds / fetch_zhaokao.sh
Last active June 1, 2020 14:55
Push notification if zhaokao.net is updated
#!bin/zsh
# I'll just using zsh as my shell, could be replaced with bash.
cd ~/Downloads/zhaokao # Move to directory of operation
curl -O http://www.zhaokao.net/gzfwlist\?colid\=all # Download the page with cURL, only main page.
mv gzfwlist?colid=all 2.html # Rename
diff 1.html 2.html >> diff.txt # Using built-in diff tool to compare
if [ -s diff.txt ] ; then # [ -s xxx ] meant to validate if the diff.txt is empty(which meant there's no changes), if it's not empty, then return true
@nonefffds
nonefffds / taobao-homepage-banner-disable.js
Last active May 31, 2020 16:21
taobao-homepage-banner-disable
/* ==UserStyle==
@name test banner remove
@author nonefffds
@version 1.1
@namespace cascadea304633902
@preprocessor default
==/UserStyle== */
@-moz-document domain("taobao.com")
{
@nonefffds
nonefffds / bvtest.py
Created March 30, 2020 06:27 — forked from abc1763613206/bvtest.py
BVID Validate
import requests
import json
import random
Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid='
headers = {
'Cookie': "Replace Me With REAL COOKIE" ,
'Pragma': 'no-cache',
@nonefffds
nonefffds / bilibili-av-bv-converter.applescript
Last active November 15, 2022 16:42
bilibili av bv converter w/ AppleScript
#bilibili-av-bv-converter
#Date: March 29,2020
#Language: AppleScript
#License: WTFPL licence
#Algorithm Implementations
#Global Varibles
global S
global table
global xor
@nonefffds
nonefffds / random_post.md
Last active May 3, 2019 05:36
dunno what it is and randomly posted

what it is I dunno

[TOC] (does github support table of content or I dunno how to use it?)

Brief

For I dunno what this so I created this gist.

Comments