Skip to content

Instantly share code, notes, and snippets.

Avatar

Eana Hufwe blueset

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 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
@blueset
blueset / README.md
Last active Jun 6, 2019
big_text_bot: Pure text sticker Telegram inline bot.
View README.md
@blueset
blueset / README.md
Last active May 14, 2019
Filter all telegram stickers messages in groups for 60 seconds.
View README.md
  1. Clone https://github.com/vysheng/tg/, and install all necessary dependencies
  2. Apply documents.patch, then ./configure && make
  3. pip3 install pytg
  4. Modify main.py and change tgdir to the correct path.
  5. Log in your tg-cli
  6. nohup ./bin/telegram-cli --json -R -W -P 4458 --permanent-peer-ids --permanent-peer-ids > /dev/null &
  7. nohup python3 kagami.py > /dev/null &
@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 / telegram-zh.scpt
Last active Sep 6, 2018
Telegram Swift Native load language file
View telegram-zh.scpt
-- Telegram Native Swift 汉化脚本
-- 制作:Eana Hufwe
set zh_cn to "简体中文语言文件,来自 @zh_CN 的 GitHub Repo"
set zh_tw to "正體中文化文件(台灣),尚未收录"
set zh_hk to "繁體中文化文件(香港),尚未收录"
set tlocal to "本地语言文件"
set iinput to (choose file with prompt "选择您的 Telegram Native Swift 程序。" of type {"app"} default location "Applications") as string
set tgpath to POSIX path of iinput
@blueset
blueset / README.md
Last active Feb 26, 2018
BOC Exchange Rate Monitor (AUD/CNY)
View README.md