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
// == 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]] |
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
# -*- coding: utf-8 -*- | |
""" | |
Script to generate iCal files for term time | |
hashes for Charterhouse School. | |
Author: Lancelot Liu | |
License: MIT | |
Email: lancylot2004@proton.me | |
""" |
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
#!/bin/bash | |
RED='\033[0;31m' | |
GRN='\033[0;32m' | |
BLU='\033[0;34m' | |
NC='\033[0m' | |
echo "" | |
echo "" | |
echo -e "GateKeeper Utility" |