Skip to content

Instantly share code, notes, and snippets.

View dreamsmasher's full-sized avatar

Naomi Liu dreamsmasher

View GitHub Profile
@dreamsmasher
dreamsmasher / FlagObfuscate.hs
Last active December 19, 2022 05:36
Turns a string of text, such as a link, into a flag.
{-
Usage: ./FlagObfuscate [string to obfuscate]
Gloss doesn't support image export unfortunately, and the library gloss-export doesn't compile at the moment.
You'll have to take a screenshot or rewrite this with better tooling.
Use this tool to promote any links you want, fuck Elon Musk.
-}
module Main where
@dreamsmasher
dreamsmasher / overload.rs
Created October 2, 2022 00:16
Function Overloading in Rust
#![feature(fn_traits, unboxed_closures)]
macro_rules! orelse {
(($($lhs:tt)+), $rhs:tt) => {$($lhs)+};
((), ($($rhs:tt)*)) => {$($rhs)*}
}
macro_rules! overload {
(
$v:vis fn $fn_name:ident {
@dreamsmasher
dreamsmasher / spells.lhs
Last active July 12, 2022 21:35
Conjuring the spirits of the computer with our spells (HRR50 Senior Presentation)
---
title: Conjuring the sprits of the computer with our spells
author: Naomi Liu
patat:
wrap: true
margins:
left: 10
right: 10
incrementalLists: true
@dreamsmasher
dreamsmasher / index.html
Created February 18, 2020 20:53
Tic Tac Toe
<div id="errors" style="
background: #c00;
color: #fff;
display: none;
margin: -20px -20px 20px;
padding: 20px;
white-space: pre-wrap;
"></div>
<div id="root"></div>
<script>