This file contains 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
use xcb::x; | |
fn main() -> xcb::Result<()> { | |
let (conn, screen_num) = xcb::Connection::connect(None)?; | |
let setup: &x::Setup = conn.get_setup(); | |
let screen = setup.roots().nth(screen_num as usize).expect("welp"); | |
let width: u16 = 1000; | |
let height: u16 = 1000; |
This file contains 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/fish | |
# | |
# produces filename.out from filename.in | |
# | |
# usage: testgen executable file name | |
# | |
# use -all and it'll generate output for every .in test in current dir | |
# | |
# example | |
# ------- |
This file contains 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
"""Tracks the Waterloo CSC office status. | |
Updates a single message in the webhook channel as to not flood the feed. | |
Updating is done by deleting/re-sending the message to avoid `(edited)` | |
tags. | |
Instructions: | |
- Change the url at the end to point at the desired webhook. |
This file contains 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
from __future__ import annotations | |
from dataclasses import dataclass | |
from datetime import datetime, timedelta | |
from typing import Any, Final | |
import requests | |
from apscheduler.schedulers.blocking import BlockingScheduler | |
from bs4 import BeautifulSoup | |
from dhooks import Embed, Webhook |
This file contains 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
from typing import Final, List | |
ALPHA: Final[str] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
key: str = input("key") | |
encryptee: str = input("string to encrypt, case is ignored") | |
# nuke punctuation | |
l_key: List[str] = [] |