Skip to content

Instantly share code, notes, and snippets.

View lancylot2004's full-sized avatar

Lancelot Liu lancylot2004

View GitHub Profile
@lancylot2004
lancylot2004 / fizzbuzzOneLiners.txt
Last active December 3, 2023 00:46
Fizzbuzz One-Liners
// == Rules ==
// 1. Goes from 1 to 100, inclusive.
// 2. Must print everything to console (or as close to as possible).
// 3. (Obviously) must be one line, type signatures and other inherent restrictions aside.
// 4. Makes sense, and extensible. Shouldn't take much effort to add "bonk"!
// 5. Forget neat code - going for shortest!
// Haskell
main :: IO (); main = mapM_ putStrLn [max(show x)$concat$["fizz"|x`mod`3==0]++["buzz"|x`mod`5==0]|x<-[1..100]]
@lancylot2004
lancylot2004 / calendarAbuse.py
Last active December 4, 2023 11:37
Charterhouse Fireflycloud Calendar Scraper
# -*- coding: utf-8 -*-
"""
Script to generate iCal files for term time
hashes for Charterhouse School.
Author: Lancelot Liu
License: MIT
Email: lancylot2004@proton.me
"""
@lancylot2004
lancylot2004 / gkutil.command
Created May 15, 2021 07:15
Gatekeeper Utility
#!/bin/bash
RED='\033[0;31m'
GRN='\033[0;32m'
BLU='\033[0;34m'
NC='\033[0m'
echo ""
echo ""
echo -e "GateKeeper Utility"