Skip to content

Instantly share code, notes, and snippets.

View epsilon-phase's full-sized avatar

Violet White epsilon-phase

  • Seattle Washington
View GitHub Profile
@epsilon-phase
epsilon-phase / sprinkler-test.py
Created March 22, 2021 23:26
Evaluate positions for sprinklers in rim factory
from typing import *
import numpy as np
import itertools
import functools
import math
import statistics
import matplotlib
import matplotlib.pyplot as plt
import random
from enum import IntEnum, auto
@epsilon-phase
epsilon-phase / emoji.css
Created April 13, 2020 11:51
Make the mastodon emojis dance
@keyframes emojo_annoy {
0% {
transform: scale(1.0);
}
75% {
height: 60px;
width: 30px;
transform: scale(1.5, 3.0);
}
100% {
@epsilon-phase
epsilon-phase / ruin mastodon.css
Last active January 19, 2020 00:57
Make mastodon extremely difficult to use
.status__content {
animation: offset alternate 10000ms linear infinite;
offset-path: path("m 0,0 C 2.948103,-0.41541616 2.0144627,3.7690323 0.69044898,4.8999411 -2.8975464,7.964634 -8.0565196,5.0069797 -9.7998821,1.380898 -12.918349,-5.1053116 -8.353027,-12.413288 -2.0713469,-14.699823 7.1472712,-18.055405 16.855878,-11.701038 19.599764,-2.7617959 23.256932,9.1528082 15.052768,21.331209 3.4522449,24.499705 -11.14583,28.486935 -25.822698,18.407007 -29.399646,4.1426939 -33.731811,-13.1333 -21.762806,-30.323399 -4.8331428,-34.299587 15.117879,-38.985387 34.829862,-25.119602 39.199528,-5.5235918 44.244481,17.100778 28.477063,39.340171 6.2140408,44.099469 -19.08262,49.507287 -43.853174,31.834984 -48.999411,6.9044898 -54.77271,-21.063757 -35.193234,-48.36814 -7.5949388,-53.899352 23.0444,-60.040045 52.884578,-38.551729 58.799293,-8.2853877");
overflow: visible;
offset-anchor:center;
}
img {
animation: color-rotate 3000ms linear infinite;
}
.account__avatar,
// ==UserScript==
// @name AvatarCycler
// @author SkyFreak
// @version 1
// @grant none
// @url witches.live?
// ==/UserScript==
window.onload=function(){
var image=[
"https://cf.mastohost.com/v1/AUTH_91eb37814936490c95da7b85993cc2ff/awoochurch/site_uploads/files/000/000/001/original/117d82d52f7f9bf6.png",//Jorf
@epsilon-phase
epsilon-phase / BST.cpp
Created November 19, 2018 04:51
c++ question thingy
BST& BST::operator=(BST&& otherBST) {
if (this != &otherBST) {
if (root) {
stack <Node**> nodeStack;
nodeStack.push(&root);
Node **currentNode = nullptr;
while (!nodeStack.empty()) {
currentNode = nodeStack.top();
nodeStack.pop();
--- Paste this into the pattern match for the alias editor
--> ^/in ([0-9]+) (minutes|m|seconds|hours|h|s) do (.+)$
--- Then paste the rest into the code editor
local noseconds = tonumber(matches[2])
local timeunit = matches[3]
if timeunit == "minutes" or timeunit == "m" then
noseconds = noseconds * 60
elseif timeunit == "hours" or timeunit == "h" then
noseconds = noseconds * 3600
@epsilon-phase
epsilon-phase / Buffer.lua
Last active October 9, 2017 20:57
Mudlet Editor
-- Put your Lua functions here. --
-- --
-- Note that you can also use external Scripts --
-------------------------------------------------
Buffer={}
function Buffer:new(name)
local buf={name=name,lines={},current=1,marks={}}
self.__index=self
setmetatable(buf,self)
#include <iostream>
#include <iomanip>
#include <cmath>
#include <random>
#include <tuple>
#include <functional>
const double PI=3.14159265359;
bool within_circle(double radius,double x,double y){
return std::hypot(x,y)<radius;
}