[TOC] (does github support table of content or I dunno how to use it?)
For I dunno what this so I created this gist.
| 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 | |
| # 尝试设置中文字体 |
| //本脚本参考了 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 | |
| //如何打断点:(如果有时间再更新) |
| // ==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 |
| #!/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 |
| <!DOCTYPE html> | |
| <html lang="en-us"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| </head> | |
| <body> |
| #!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 |
| 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', |
| #bilibili-av-bv-converter | |
| #Date: March 29,2020 | |
| #Language: AppleScript | |
| #License: WTFPL licence | |
| #Algorithm Implementations | |
| #Global Varibles | |
| global S | |
| global table | |
| global xor |