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 November 17, 2021 02:05
UniMelb COMP10001 2016S2 Practice Project: My Solution

Here I'm posting my solutions to the Practice Project for the COMP10001 Foundation of Computing course in the University of Melbourne in Semester 2, 2016.

NOTICE

The solution below is just my solution. IT IS NOT:

  • A sample answer from any lecturer, tutor, or any teaching staff.
  • A marking scheme used for any of the actual assessments
  • A perfect solution for anyone to take as a template for your project
  • A reason for you to give up on trying your practice project

I advice you to try on your own first before you read this solution.

@blueset
blueset / README.md
Last active May 26, 2021 20:00
Plltxe: Sync Tweets (and Toots) to a Telegram Channel Using Account Activity API (and WebSocket)
import subprocess
import requests
# MAC address of device running this script
self_mac = "00:11:22:33:44:55"
# MAC address of devices to check
to_monitor = {"66:77:88:99:aa:bb", "cc:dd:ee:ff:00:11"}
# MAC address of device which must be in the LAN for notifications to be sent
@startuml
skinparam monochrome true
skinparam backgroundColor #fefefe
skinparam sequenceReferenceAlign center
skinparam sequenceMessageAlign center
actor User
== Send message ==
{" ": " \t \u00a0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u205f\u3000",
"A": "\u0391A\u00c0\u0410\u00c1\u1e00\u1f08\u1f09\u1f0a\u1f0b\u1f0c\u1fb8\u1fb9\u1fba\u1fbb\u1f0d\u1f0e\u1f0f\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u00c2\u00c3\u00c4\u00c5\u0100\u0102\u0104\u01cd\u01de\u01e0\u01fa\u0202\u0226\u24b6\ud83c\udd50\uff21\ud835\udc00\ud835\udd6c\ud835\udc68\ud835\udcd0\ud835\udd38\ud835\ude70\ud835\udda0\ud835\uddd4\ud835\ude3c\ud835\ude08\ud83c\udd30\ud83c\udd70\u00c1\ud835\udd04\u00c4\u1d00\u023a\u2090\u1d2c",
"B": "B\u0392\u03b2\u00df\u1e02\u1e04\u1e06\u0412\u0181\u24b7\ud83c\udd51\uff22\ud835\udc01\ud835\udd6d\ud835\udc69\ud835\udcd1\ud835\udd39\ud835\ude71\ud835\udda1\ud835\uddd5\ud835\ude3d\ud835\ude09\ud83c\udd31\ud83c\udd71B\ud835\udd05\u1e04\u0299\u0243\u1d2e",
"C": "C\u0421\u216d\u2103\u00c7\u0106\u0108\u010a\u010c\u1e08\u0187\u24b8\ud83c\udd52\uff23\ud835\udc02\ud835\udd6e\ud835\udc6a\ud835\udcd2\u2102\ud835\ude72\ud835\udda2\ud835\uddd6\
@blueset
blueset / Material Amber.palette
Created January 23, 2020 06:14
Material Color palettes for Sip (2.2.3 or later)
{"sip": {"build": "223", "version": "2.2.3"}, "index": 2, "name": "Material Amber", "colors": [{"blue": 0.034370001405477524, "id": "7D57DD3E-EBF9-9D4D-DC8A-A3ED77454871", "createdAt": "2020-01-23 06:02:58", "red": 0.9921799898147583, "name": "Amber A700", "green": 0.6087899804115295, "alpha": 1}, {"createdAt": "2020-01-23 06:02:58", "red": 0.9943900108337402, "alpha": 1, "name": "Amber A400", "green": 0.7259799838066101, "id": "69AAA373-3087-7536-6D87-7224A53A0A97", "blue": 0.03618999943137169}, {"blue": 0.19728000462055206, "green": 0.8167200088500977, "createdAt": "2020-01-23 06:02:58", "name": "Amber A200", "alpha": 1, "red": 0.9962700009346008, "id": "F5946576-6396-6379-9AB2-22E7FE19ACE1"}, {"alpha": 1, "blue": 0.4251199960708618, "createdAt": "2020-01-23 06:02:58", "red": 0.9976599812507629, "id": "C4325271-1539-9DFA-AF9E-E7901BCEEC53", "green": 0.8826199769973755, "name": "Amber A100"}, {"alpha": 1, "createdAt": "2020-01-23 06:02:58", "id": "10126CB6-670B-BFA8-80E5-5E3323056DC2", "green": 0.34540000557
@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 / config.yaml
Created August 31, 2019 04:28
Rotational logger sample
# ...
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 August 18, 2019 03:55
Sphinx(-intl?) bug reproduction
source_suffix = '.rst'
master_doc = 'index'
@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