Skip to content

Instantly share code, notes, and snippets.

View blueset's full-sized avatar

Eana Hufwe blueset

View GitHub Profile
@blueset
blueset / README.rst
Last active September 25, 2023 09:55
Filter: A demo of advanced user interaction with master channel through middleware.

Filter: A demo of advanced user interaction with master channel through middleware

Usage

  1. Place filter.py to your EFB_DATA_PATH/modules directory.
  2. Enable this middleware as filter.FilterMiddleware
  3. Send filter` to any chat for the filter control panel of the chat.
@blueset
blueset / README.md
Created May 22, 2023 20:23
Eana’s Windows 11 Dark theme for Fxliang’s Weasel
@blueset
blueset / Netease_LRC.py
Last active May 11, 2023 12:08
Netease LRC Downloader
import requests
import argparse
import os
import re
import json
import mutagen
import base64
from mutagen import easyid3
import sys
from Crypto.Cipher import AES
@blueset
blueset / README.md
Last active March 25, 2023 04:01
UniMelb COMP10001 2016S2 Worksheet My Solution

This is the place for me to share my solutions to the Grok Learning Worksheets for the COMP10001 Foundation of Computing course in the University of Melbourne in Semester 2, 2016.

Take note that all code released here are EXPIRED, i.e. they are no longer available to be submitted as examinable works. And all codes below is licensed under MIT license.

Note that some codes used below may include advanced contents that may not be taught before the deadline. Also, some “dirty tricks”, like joining code into one long line, is strongly not recommended to be used in your projects.

In the meanwhile, you might be interested in my solution to the Practice Projects.

- -------------------------------- !ALERT! --------------------------------- -
@blueset
blueset / dictionary.json
Last active January 6, 2023 07:58
Word Puzzle Mojipittan Encore (Kotoba no Pazuru Mojipittan Ankōru) dictionary data
This file has been truncated, but you can view the full file.
[
{
"reading": "ああ",
"notation": "",
"meaning": "あのように。あんな。"
},
{
"reading": "ああいう",
"notation": "",
"meaning": "あのような。あんな。"
@blueset
blueset / README.md
Last active October 21, 2022 02:56
Download/Print StuDocu.com documents without watermark

Usage

Add StuDocu Extracter to your Browser favorites, and click on it after you open the StuDocu document.

How it works

javascript:(function(){var a = "", x = document.getElementsByTagName("svg"); for(var i = 0; i < x.length; i++){a += x[i].outerHTML;} document.getElementsByTagName("body")[0].innerHTML = a;var a = document.getElementsByTagName("svg");for (var i = 0; i < a.length; i++){a[i].style.width="99.8%";a[i].style.height="auto";a[i].style.position="inherit";a[i].style.display="block";a[i].style.boxShadow="0 3px 3px rgba(0,0,0,0.3)";a
@blueset
blueset / massdrop-ctrl-massdrop_ctrl_layout.json
Created August 1, 2022 17:00
QMK Configuration for dual Colemak/QWERTY, macOS/Windows layout
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "massdrop/ctrl",
"keymap": "massdrop_ctrl_layout_mine",
"layout": "LAYOUT",
"layers": [
[
"KC_ESC",
#%%
key = open("/Users/blueset/Downloads/key.txt", "r").read()
idx = key.find("3jX8lFiNQ7JHQBVuXAEQXIajamj1EDqa9n34eHZ7y0XbfuxPt7pMj")
key = key[idx - 143:]
# key = key[idx - 200:]
#%%
def vba_decode(sequence, offset, key):
# Input a list and an integer
# key = "XAEQXIajamj1EDqa9n34eHZ7y0XbfuxPt7pMj3jX8lFiNQ7JHQBVu"
@blueset
blueset / jsonparser.py
Last active April 17, 2022 04:48
A rough JSON parser in Python
import re
from typing import Any, Tuple, Union
"""A very rough JSON parser.
Implementing the standard outlined in https://www.json.org/json-en.html
Number parsing is handled by Python.
Usage:
>>> data, _ = parse_json('{"key": ["value", -1e20, true, false, null]}')
>>> assert data == {"key": ["value", -1e20, True, False, None]}
@blueset
blueset / README.md
Last active November 17, 2021 02:05
UniMelb COMP10001 2016S2 Project 1 My Solution

This is the place for me to share my solutions to Project 1 for the COMP10001 Foundation of Computing course in the University of Melbourne in Semester 2, 2016.

Take note that all code released here are EXPIRED, i.e. they are no longer available to be submitted as examinable works. And all codes below is licensed under MIT license.

Copyright (c) 2016 Eana Hufwe

Permission is hereby granted, free of charge, to any person obtaining a 
copy of this software and associated documentation files (the "Software"), 
to deal in the Software without restriction, including without limitation