Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View blueset's full-sized avatar

Eana Hufwe blueset

View GitHub Profile
@blueset
blueset / pok3r.json
Created October 10, 2017 10:10
Eana's Karabiner-Element Complex Modifications
{
"title": "Eana's POK3R Mods",
"rules": [
{
"description": "[POK3R] Cmd+ESC to Cmd+`",
"manipulators": [
{
"conditions": [{
"type": "device_if",
"identifiers": [{"vendor_id": 1241, "product_id": 321}]

./test.py

from unittest import TestCase
from unittest.mock import patch, Mock
from foo import FooModule

class DemoTest(TestCase):
    @classmethod
 def setUpClass(cls):
@blueset
blueset / README.md
Created February 24, 2018 23:50
Big Text Bot v2

Demo: https://t.me/big_text_bot

Dependencies:

  • python-telegram-bot
  • node.js
  • libwebp
  • Full Noto fonts
  • Sqlite support of Python 3
  • puppeteer
  • (Headless) Chrome
@blueset
blueset / README.md
Last active February 26, 2018 00:53
BOC Exchange Rate Monitor (AUD/CNY)
@blueset
blueset / README.md
Last active January 11, 2020 18:35
HHHHH: How the Heck are those Horrible Hobgoblins Haunting your ETM

HHHHH: How the Heck are those Horrible Hobgoblins Haunting your ETM

Forward all messaegs the bot got that's not from the admins, to somewhere else.

To be used with ETM 2.x.

Usage

  1. Get the ID of the chat you want HHHHH to forward those messages to
  2. Fill it in to the RECEIPIENT field
  3. Save this file to EFB_DATA_DIRECTORY/modules/hhhhh/hhhhh.py
@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
Last active April 3, 2019 02:43
COMP30024 2019 S1 Project A: Sequence Visualizer (β)
  • A sequence visualizer for COMP30024 2019 S1 Project A in UniMelb.
  • Written in Python.
  • Works in all ANSI compatible terminals.

Usage

Pipe the move sequence into stdin and the path to board description JSON as the first argument.

Things you might want to adjust

SPEED = 1.5 # number of seconds per frame
@blueset
blueset / README.md
Created April 15, 2019 04:55
COMP30024 2019 S1 Project B: GUI Player (β)
  • A GUI player for COMP30024 2019 S1 Project B in UniMelb.
  • Written in Python.
  • Adapted from texgen.py by Matt Farrugia (matt.farrugia@unimelb.edu.au).
  • Written with Tkinter, require Tk support to run.

Structure

The same server serves as both a server and a client. Its behaviour depends on how it is started.

@blueset
blueset / Links.png
Last active June 3, 2019 23:45
Links
@blueset
blueset / conf.py
Created August 18, 2019 03:55
Sphinx(-intl?) bug reproduction
source_suffix = '.rst'
master_doc = 'index'