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
| from abc import ABCMeta, abstractmethod | |
| from dataclasses import dataclass | |
| from typing import TYPE_CHECKING, Any, Awaitable, Generic, Generator, Iterable, \ | |
| List, Tuple, TypeVar, cast | |
| ### | |
| T = TypeVar('T') | |
| R = TypeVar('R') |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Flooring</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| html, body { | |
| height: 100%; | |
| margin: 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
| <!DOCTYPE html> | |
| <html lang="en-us"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
| <title>Mandala</title> | |
| <style type="text/css"> | |
| html, body { | |
| overflow: hidden; | |
| width: 100%; |
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
| {-# Language ConstraintKinds #-} | |
| {-# Language DataKinds #-} | |
| {-# Language FlexibleInstances #-} | |
| {-# Language KindSignatures #-} | |
| {-# Language MultiParamTypeClasses #-} | |
| {-# Language PolyKinds #-} | |
| {-# Language RankNTypes #-} | |
| {-# Language ScopedTypeVariables #-} | |
| {-# Language TypeOperators #-} | |
| module Schema where |
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
| {-# Language DataKinds #-} | |
| {-# Language GADTs #-} | |
| {-# Language KindSignatures #-} | |
| {-# Language NoImplicitPrelude #-} | |
| {-# Language StandaloneDeriving #-} | |
| {-# Language TypeFamilies #-} | |
| {-# OPTIONS_GHC -fwarn-incomplete-patterns #-} | |
| module Vect where |
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
| module StackExpr where | |
| data Instr | |
| = Const Integer | |
| | Add | |
| | Sub | |
| | Mul | |
| | Neg | |
| | Abs | |
| | Sig |
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
| import java.math.BigInteger; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.function.*; | |
| // Scott encoding of a Haskell's Maybe | |
| interface Maybe<T> { | |
| <R> R match(Supplier<R> nothing, Function<T, R> just); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Videogram</title> | |
| <style>html,body{margin:0;height:100%;}</style> | |
| </head> | |
| <body> | |
| <video src="https://dl11.webmfiles.org/big-buck-bunny_trailer.webm" style="display:none" autoplay loop></video> | |
| <script defer> |
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
| import Data.Maybe (catMaybes) | |
| import qualified Data.Set as Set | |
| (|>) = flip ($) | |
| between :: Ord a => a -> (a, a) -> Bool | |
| between x (a, b) = a <= x && x <= b | |
| class Clamp a where | |
| clampedBy :: a -> (a, a) -> a |