This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package pgxquery | |
| import ( | |
| "context" | |
| "github.com/jackc/pgx/v5" | |
| ) | |
| // Querier is implemented by *pgx.Conn and *pgxpool.Pool, and is a superset of pgx.Tx. | |
| type Querier interface { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name eClass Batch Downloader | |
| // @version 1.0.0-fix | |
| // @author tnychn | |
| // @description Download files from eClass in batch. | |
| // @match https://eclass.ktmc.edu.hk/eclass40/src/resource/eclass_files/eclass_files.php | |
| // @run-at document-idle | |
| // @grant GM_download | |
| // @grant GM_registerMenuCommand | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name eClass Keep Alive | |
| // @version 1.0.0 | |
| // @author tnychn | |
| // @description Keep eClass session alive to prevent timeout. | |
| // @match https://eclass.ktmc.edu.hk/* | |
| // @run-at document-start | |
| // @noframes | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name eClass File Opener | |
| // @version 2.0.1-fix | |
| // @author tnychn | |
| // @description Open multiple files in new tabs instead of replacing a new window. | |
| // @match https://eclass.ktmc.edu.hk/eclass40/src/resource/eclass_files/eclass_files.php | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| (function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hr { | |
| height: 15px; | |
| border: none; | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| hr:after { | |
| top: 0; | |
| left: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import psutil | |
| import subprocess | |
| from pathlib import Path | |
| from wordcloud import WordCloud | |
| BG_COLOR = "#101010" | |
| WIDTH, HEIGHT = 2880, 1800 # screen resoulution |