Skip to content

Instantly share code, notes, and snippets.

View blueset's full-sized avatar

Eana Hufwe blueset

View GitHub Profile
@blueset
blueset / README.md
Last active June 6, 2019 23:21
big_text_bot: Pure text sticker Telegram inline bot.
@blueset
blueset / Links.png
Last active June 3, 2019 23:45
Links
@blueset
blueset / README.md
Last active May 14, 2019 15:49
Filter all telegram stickers messages in groups for 60 seconds.
  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 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 / 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 / telegram-zh.scpt
Last active September 6, 2018 10:39
Telegram Swift Native load language file
-- 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 February 26, 2018 00:53
BOC Exchange Rate Monitor (AUD/CNY)

./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 / 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}]
@blueset
blueset / kagami3.py
Created September 10, 2017 07:45
Utsushidasu Kagami ver 3
import telegram
import telegram.ext
import re
# Utsushidasu Kagami Bot v3
# With sticker removal and off-topic transfer.
# License: MIT
"""
Copyright 2017 Eana Hufwe