🦎
- piedhyper.space (dead x.x)
- in/grayson-miller-a8b784226
- https://www.shadertoy.com/user/graygoose
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
#!/usr/bin/env python3 | |
import argparse, json, sys, os, shutil, logging | |
from typing import Collection, Optional, Sequence | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import numpy as np | |
from pathlib import Path | |
from datetime import datetime, timedelta | |
from dataclass_wizard import JSONWizard, JSONFileWizard | |
from dataclasses import dataclass, field, asdict |
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
def is_monotonic(l): | |
return all((l[i] - l[i+1]) * (l[i+1] - l[i+2]) >= 0 for i in range(len(l)-2)) |
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"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>3D Game of Life</title> | |
<style> | |
body { margin: 0; } | |
canvas { display: block; } | |
</style> | |
</head> |
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 | |
from dataclasses import dataclass, asdict | |
import enum | |
import threading | |
import json | |
import logging | |
from queue import Queue | |
import time | |
from typing import Literal |
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
#!/usr/bin/env python | |
import argparse | |
import datetime | |
import re | |
import os | |
import yaml | |
import nltk | |
from pathlib import Path |
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 os | |
import argparse | |
from diffusion_box.pipegen import diffuser | |
def argparser(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--all", action="store_true", default=False, help="Generate all prompts in prompts directory.") | |
parser.add_argument("--file", type=str, default=None, help="Path of prompt queue file to generate images from.") |
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 discord | |
import asyncio | |
from discord import app_commands | |
from discord.ext import commands | |
class VoteOptions(discord.ui.Select): | |
def __init__(self): | |
self.option = None | |
options = [ |
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
#!/bin/bash | |
# From https://deaddabe.fr/blog/2021/09/29/git-pre-commit-hook-for-rust-projects/ | |
set -eu | |
TODO="$(git rev-parse --show-toplevel)/TODO" | |
if [ -s $TODO ] | |
then | |
if [ -z $(cat $TODO | grep "TODO_RECHECK") ] | |
then | |
echo "TODO_RECHECK" >> $TODO |
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
// Utilities | |
// macros | |
#define RES iResolution.xy | |
#define P fragCoord.xy | |
#define UV (fragCoord.xy/iResolution.xy) | |
#define MUV (iMouse.xy/iResolution.xy) | |
#define pF(c) texelFetch(c, ivec2(P), 0) | |
// screen |
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
//// COMMON //// | |
//#define DRAW | |
//#define MOUSE | |
//#define SPONTANEOUS | |
//#define POSTPROCESS | |
// Utilities | |
// macros |
NewerOlder