Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import re
import requests
import time
import subprocess
# cookie values
MEMBER_ID = ''
PASS_HASH = ''
@tesu
tesu / alwaysls.sh
Created June 16, 2019 16:31
exactly what it says on the tin
#!/usr/bin/env zsh
urxvtc -e zsh -c 'LS=""; while [[ 1 ]]; do DIR=$(pwdx '$PPID' |& grep -o "/.*"); if [[ ! $DIR ]]; then break; fi; if [[ $LS != $DIR\n$(ls $DIR) ]]; then LS=$DIR\n$(ls $DIR); clear; echo $DIR; ls $DIR --color=auto -a; fi; done' &
@tesu
tesu / .cvimrc
Last active October 18, 2019 05:44
set smoothscroll
set autohidecursor
let scrollstep = 140
let scrollduration = 250
let barposition = "bottom"
let blacklists = ["*://mail.google.com/*", "*://calendar.google.com/*", "*://docs.google.com/*", "*://www.nytimes.com/crosswords/*", "*://www.gradescope.com/*"]
map J nextTab
[{"prize_pool": 1600000, "timestamp": "2018-05-08 17:04:46.471088"}, {"prize_pool": 1625733, "timestamp": "2018-05-08 17:34:46.578733"}, {"prize_pool": 1948433, "timestamp": "2018-05-08 18:04:46.743365"}, {"prize_pool": 2158009, "timestamp": "2018-05-08 18:34:46.889730"}, {"prize_pool": 2294506, "timestamp": "2018-05-08 19:04:47.036146"}, {"prize_pool": 2407195, "timestamp": "2018-05-08 19:34:47.185542"}, {"prize_pool": 2500190, "timestamp": "2018-05-08 20:04:47.267021"}, {"prize_pool": 2625168, "timestamp": "2018-05-08 20:34:47.387975"}, {"prize_pool": 2733542, "timestamp": "2018-05-08 21:04:47.460364"}, {"prize_pool": 2835377, "timestamp": "2018-05-08 21:34:47.532825"}]
@tesu
tesu / rainbow.py
Last active March 21, 2018 19:30
katex for facebook messenger
#!/bin/python3
import sys
if len(sys.argv) < 2:
l = 'sample text'
else:
l = " ".join(sys.argv[1:])
colors = ['#ff0000',
'#ff7f00',
From a254a9a40c75b172ae1abb8e75f531208df392c9 Mon Sep 17 00:00:00 2001
From: Jason Lam <3edgy6u@gmail.com>
Date: Sun, 13 Sep 2015 12:22:21 -0400
Subject: [PATCH] added furigana conversion
---
.../java/com/geecko/QuickLyric/lyrics/JLyric.java | 25 +++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/QuickLyric/src/main/java/com/geecko/QuickLyric/lyrics/JLyric.java b/QuickLyric/src/main/java/com/geecko/QuickLyric/lyrics/JLyric.java
@tesu
tesu / un360.glsl
Last active December 14, 2023 22:38
mpv opengl shader for viewing 360 video
//!HOOK MAINPRESUB
//!BIND HOOKED
//!DESC un360
#define M_PI 3.1415926535897932384626433832795
const float fov = M_PI/2; // [0 to M_PI] horizontal field of view, range is exclusive
const float yaw = M_PI*1; // [any float] polar angle, one full revolution is 2*M_PI
const float pitch = M_PI*0; // [any float] vertical tilt, positive is up
const float roll = M_PI*0; // [any float] view rotation, positive is clockwise
@tesu
tesu / sadpandastats.py
Last active November 13, 2016 18:31
tallies up your sadpanda favorite tags
import codecs
import csv
import json
import operator
import re
import requests
import time
MEMBER_ID = ''
PASS_HASH = ''

Keybase proof

I hereby claim:

  • I am tesu on github.
  • I am tesu (https://keybase.io/tesu) on keybase.
  • I have a public key whose fingerprint is 25EF D056 D805 88CC 6216 8920 6E59 1A75 F576 19D4

To claim this, I am signing this object: