Skip to content

Instantly share code, notes, and snippets.

View mindbound's full-sized avatar
💭
I may be slow to respond.

Arets Paeglis mindbound

💭
I may be slow to respond.
View GitHub Profile
@mindbound
mindbound / LCF.readme.lv.md
Last active May 29, 2024 10:08
LCF README LV
@mindbound
mindbound / YT2IV.user.js
Last active October 18, 2023 15:05
YT2IV
// ==UserScript==
// @name YT2IV
// @author mindbound
// @version 0.1
// @description Redirect YouTube to Invidious Datura Network instance
// @license MIT; https://opensource.org/license/mit/
// @namespace https://gist.github.com/mindbound
// @downloadURL https://gist.github.com/mindbound/e1b18e800092f9bef6f36023bb618b62/raw/089bd2662dcf95bad35263af8807d19a080423e2/YT2IV.user.js
// @updateURL https://gist.github.com/mindbound/e1b18e800092f9bef6f36023bb618b62/raw/089bd2662dcf95bad35263af8807d19a080423e2/YT2IV.user.js
// @icon https://invidious.io/invidious-colored-vector.svg
// ==UserScript==
// @name LCF
// @namespace https://gist.github.com/mindbound
// @version 1.0.0
// @description Applies user-defined filters to the latest posts page
// @author Arets Paeglis <arets.paeglis@protonmail.com> (https://github.com/mindbound/)
// @copyright 2021+, Arets Paeglis (https://github.com/mindbound/)
// @license MIT; https://spdx.org/licenses/MIT.html
// @match http://klab.lv/stats/latest.bml
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB7ElEQVQ4jWNgGF7AwEBA4M/zwPj/rwKX/3sesPb9Te/GqlSZ8hQ/oeJEb8HMSFe+SAdjXhsGBgY2DM0lUcI5O6ep/bx3yOb/g2MO/x+edP7/6LTL/wenXP4fWW36/8Q6s/8n15r8Pzhf+/+sMskdGAb05Mjlv9pm8P/tdq3/r7eq/3+1Re3/y00qGPj5OpX/m1plNqDrZ55Zpbvx3xnP/5/2Gv//tMfo/6e9Rv/f7dT9/2qz6v+Xm1T+P12j8v/hYtX/Dxaq/d9dp7yDgYGBCa47P0Kh8NdJz//fD1tjtRUd35un9r8xXCIRpp9l73STF//Pev1/s02LKAMeLVP9v6JA4RYDAwMjAysrg+GHA87//5xyJUrzy00q/x8uUf1/ql31PwMDgzEDJyeD9c/jbv9/HLUn2oC7c9T+X+vX+C/KzxzCwMDAwHdkjvH3j3uMidL8fL3K/+sTNf7vq1f+z8DAYAQJxBCBvmcblIky4M4s
@mindbound
mindbound / openpgp.txt
Created July 8, 2018 14:26
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d0bd488eb490336ac1b41f4bba213fbc026c843a]

Keybase proof

I hereby claim:

  • I am mindbound on github.
  • I am mindbound (https://keybase.io/mindbound) on keybase.
  • I have a public key whose fingerprint is 2711 6E98 BD9C 5079 1344 8149 38C4 CF3A 9623 3A48

To claim this, I am signing this object:

@mindbound
mindbound / openpgp.txt
Created August 12, 2016 11:46
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:b370e7422b01f8779f5b5fcfcf118e8b8d61a4ed]
@mindbound
mindbound / mandeltemp.cpp
Created July 3, 2015 12:46
Compile-time Mandelbrot set
// export SIZE_X=40
// export SIZE_Y=21
// export DEPTH=15
// g++ -Wall -O2 -ftemplate-depth-$((($SIZE_X + 1) * $SIZE_Y + $DEPTH)) -fpermissive mandeltemp.cpp -o mandeltemp
#include <iostream>
static const int size_x = 40;
static const int size_y = 21;
static const int depth = 15;
@mindbound
mindbound / staley.c
Created April 28, 2015 12:45
Based on A. White & K. Staley routine for seizure detection
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "scoplib_ansi.h"
#undef PI
#define nil 0
#include "md1redef.h"
#include "section.h"
#include "nrniv_mf.h"
#include "md2redef.h"
@mindbound
mindbound / falselog.py
Created September 8, 2012 06:59
Euler's False Logarithmic Series
from sympy.mpmath import *
fls = lambda a, x: nsum(lambda n: (1 / (a ** n)) * nprod(lambda k: 1 - x * (a ** -k), [0, n - 1]), [1, inf])