Skip to content

Instantly share code, notes, and snippets.

@pyscorcher
pyscorcher / double_spiral.pde
Created July 9, 2021 07:34 — forked from sp94/double_spiral.pde
Processing3: Double Spiral
// Double Spiral
// https://twitter.com/sjpalmer1994/status/1337815101148164101
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
@pyscorcher
pyscorcher / median_pool.py
Created October 26, 2020 09:56 — forked from rwightman/median_pool.py
PyTorch MedianPool (MedianFilter)
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.utils import _pair, _quadruple
class MedianPool2d(nn.Module):
""" Median pool (usable as median filter when stride=1) module.