Skip to content

Instantly share code, notes, and snippets.

:octocat:
NullPointerException.

Eana Hufwe blueset

:octocat:
NullPointerException.
Block or report user

Report or block blueset

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@blueset
blueset / config.yaml
Created Aug 31, 2019
Rotational logger sample
View config.yaml
# ...
logging:
version: 1
disable_existing_loggers: false
formatters:
sample:
format: '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
handlers:
rotation:
@blueset
blueset / conf.py
Created Aug 18, 2019
Sphinx(-intl?) bug reproduction
View conf.py
source_suffix = '.rst'
master_doc = 'index'
@blueset
blueset / README.md
Created Apr 15, 2019
COMP30024 2019 S1 Project B: GUI Player (β)
View README.md
  • 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 / README.md
Last active Apr 3, 2019
COMP30024 2019 S1 Project A: Sequence Visualizer (β)
View README.md
  • 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.rst
Last active Nov 19, 2019
Filter: A demo of advanced user interaction with master channel through middleware.
View README.rst

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 Jan 29, 2019
HHHHH: How the Heck are those Horrible Hobgoblins Haunting your ETM
View README.md

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.md
Last active Feb 26, 2018
BOC Exchange Rate Monitor (AUD/CNY)
View README.md
@blueset
blueset / README.md
Created Feb 24, 2018
Big Text Bot v2
View README.md

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
View Minimum example code.md

./test.py

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

class DemoTest(TestCase):
    @classmethod
    def setUpClass(cls):
You can’t perform that action at this time.