Skip to content

Instantly share code, notes, and snippets.

@agrif
agrif / pixelate-rectangle.shader
Last active October 1, 2020 23:59 — forked from ion1/pixelate-rectangle.shader
Censor a part of the screen (such as a chat window) by pixelation in obs-shaderfilter
// Censor a part of the screen (such as a chat window) by pixelation in
// obs-shaderfilter.
// https://obsproject.com/forum/resources/obs-shaderfilter.775/
// https://creativecommons.org/publicdomain/zero/1.0/
// To the extent possible under law, ion has waived all copyright and related
// or neighboring rights to obs-pixelate-rectangle. This work is published
// from: Suomi.
// originally from
outputdir= "/var/www/webmaps"
def playerIcons(poi):
if poi['id'] == 'Player':
poi['icon'] = "https://overviewer.org/avatar/%s" % poi['EntityId']
return "Last known location for %s" % poi['EntityId']
def HomesFilter(poi):
if poi['id'] == 'Homes':
try:
return (poi['name'], poi['description'])
@agrif
agrif / PeirceLEM.hs
Last active March 14, 2017 20:14 — forked from ion1/PeirceLEM.hs
-- Exercise: prove Peirce’s law <=> law of excluded middle in Haskell
{-# LANGUAGE Rank2Types #-}
import Data.Void
import Data.Bifunctor
import Data.Functor.Identity
type Not a = a -> Void