Skip to content

Instantly share code, notes, and snippets.

@ShaneDrury
ShaneDrury / runSeveralConstraints.hs
Created May 4, 2024 20:18
runSeveral with constraint error
module Polysemy.Several where
import Data.Kind
import Polysemy
import Polysemy.Reader
import Prelude
infixr 5 :::
data HList a where
@ShaneDrury
ShaneDrury / index.html
Last active December 15, 2023 17:33
Very simple GLSL with three.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GLSL demo</title>
<style>
body {
margin: 0;
padding: 0;
font-size: 0;
import giphypop
import requests
import requests.exceptions as exceptions
OLD_MARUS = [
"http://25.media.tumblr.com/00b01d310a564e619db5c62aa470d351/tumblr_mnks1dqE8X1qibxp4o4_500.jpg",
"http://24.media.tumblr.com/df63d7e6c2197d1c6abdfc1826808816/tumblr_mnkrz26btY1qibxp4o1_500.gif",
"http://25.media.tumblr.com/3502eb7665c844fd7c52bb1a387ed0c4/tumblr_mnj85ldSmp1qibxp4o6_500.jpg",
"http://31.media.tumblr.com/a7d2ae45e153905d30d5f1261d9993de/tumblr_mnj7pf02Dh1qibxp4o4_500.jpg",
"http://25.media.tumblr.com/f653df15f4c0b3bd1418324fe8be9ad5/tumblr_mnh5s7Qmi41qibxp4o2_500.jpg",
@ShaneDrury
ShaneDrury / main.py
Created May 29, 2014 15:46
Decorators for Simulation Idea
my_sim = Simulation(simulation_args)
@my_sim.register_measurement(measurement_args)
def my_measurement(args):
do_stuff(args)
if __name__ == '__main__':
my_sim.run()