/trigger addreplace libera_idlerpg_login_join signal libera,irc_in2_353 "${text} =~ ^. #idlerpg :(.+ )?@idlebot( |$)" "" "/msg -server ${server} idlebot login user password"
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 itertools import cycle | |
| from z3 import * | |
| class NameGen: | |
| def __init__(self, prefix): | |
| self.prefix = prefix | |
| self.count = 0 | |
| def gen(self): |
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
| to_rgb | |
| dct | |
| abs | |
| log | |
| cut 0,8 | |
| normalize 0,255 |
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
| // 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. | |
| // https://gist.github.com/ion1/0e028ad096aa6f375bc9a97334639fa3 |
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 stack | |
| {- stack | |
| --resolver lts-15.15 | |
| script | |
| --package ersatz | |
| -} | |
| {-# LANGUAGE DeriveGeneric #-} | |
| {-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
| {-# LANGUAGE RecordWildCards #-} |
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 stack | |
| {- stack | |
| --resolver lts-15.15 | |
| script | |
| --package ersatz | |
| --package containers | |
| -} | |
| {-# LANGUAGE RecordWildCards #-} | |
| {-# LANGUAGE TypeApplications #-} |
Plane normal dot products
P = [ 1 c ]
[ c 1 ]
Plane normals
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
| clear all; | |
| # The dot products between the symmetry plane normals. | |
| plane_dots = [ | |
| 1 -cos(pi/3) 0 | |
| -cos(pi/3) 1 -cos(pi/5) | |
| 0 -cos(pi/5) 1 | |
| ]; | |
| # The dot products of the seed vertices with the symmetry plane normals. |
Dealing with a system of equations with more unknowns than equations by making some of the unknowns parameters and using Gaussian elimination to solve for the remaining ones.
2a + 3b = 4c
5a + 6b + 42 = 7d
Arbitrarily, make b and d parameters and solve for a and c:
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
| #Requires AutoHotkey v2.0 | |
| #Warn | |
| #SingleInstance | |
| SetWorkingDir(A_ScriptDir) | |
| Component := "" | |
| Device := "Analogue 1 + 2" | |
| IntendedState := 1 | |
| SetTimer(ApplyMute, 1000) |