Skip to content

Instantly share code, notes, and snippets.

@theVDude
theVDude / dtv-subtitles.css
Created October 19, 2023 18:46
dropout tv subtitle preferences
@-moz-document regexp(".*vhx.tv.*dropout.*") {
div.vp-captions {
font-family: Consolas, Monoco, "Lucida Console", monospace !important;
font-size: 1.7rem !important;
}
span.vp-captions-line {
background: rgba(0, 0, 0, .6) !important;
}
}
@theVDude
theVDude / minibigscreenblaseball.user.css
Last active March 15, 2021 15:46
big screen blaseball mini mode v0.0.5
/* ==UserStyle==
@name MiniMode for BIG SCREEN Blaseball
@namespace thevdude
@version 0.0.5
@author thevdude (extends BIG SCREEN Blaseball by cepheus https://github.com/holmesmr)
@license Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
==/UserStyle== */
@-moz-document domain("blaseball.com") {
.Main-Body {
@theVDude
theVDude / halltributemonospace.css
Created September 26, 2020 14:23
Adds leading 0 to first 9 hall of flamers and sets the numbers to monospace font
.HallOfFlame-Player-Position, .HallOfFlame-Player-Tributes {
font-family: monospace;
}
.HallOfFlame-Player:nth-child(1) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(2) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(3) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(4) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(5) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(6) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(7) .HallOfFlame-Player-Position::before,
<html>
<head>
<style>
li {
display: inline-block;
width: auto;
color: white;
background-color: red;
}
<html>
<head>
<script type="text/javascript">
let reverseIt = str => {
return str.split('').reverse().join('');
}
let clicked = () => {
alert(reverseIt(document.getElementById('str').value));
}
</script>
void rgblight_effect_breathing_xmas(uint8_t interval) {
static uint16_t current_hue = 0;
static uint8_t pos = 0;
static uint16_t last_timer = 0;
float val;
if (timer_elapsed(last_timer) < pgm_read_byte(&RGBLED_BREATHING_INTERVALS[interval])) {
return;
}
last_timer = timer_read();
@theVDude
theVDude / isuck.c
Last active December 6, 2017 06:36
void rgblight_effect_breathing(uint8_t interval) {
static uint8_t pos = 0;
static uint16_t last_timer = 0;
float val;
if (timer_elapsed(last_timer) < pgm_read_byte(&RGBLED_BREATHING_INTERVALS[interval])) {
return;
}
last_timer = timer_read();
# uncompyle6 version 2.9.8
# Python bytecode 2.6 (62161)
# Decompiled from: Python 3.6.0 (default, Jan 16 2017, 13:35:36)
# [GCC 6.3.1 20170109]
# Embedded file name: ./sublimerge/sublimerge_differ.py
# Compiled at: 2016-10-17 14:46:21
"""Copyright (c) Borys Forytarz. All rights reserved"""
import difflib
import re
import sublime
@theVDude
theVDude / tagpro-temp-splats.user.js
Created April 9, 2016 04:05
make all splats fade away in tagpro
// ==UserScript==
// @name TagPro All Temp Splats
// @description Make all splats temporary in tagpro
// @version 1
// @grant none
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://*.newcompte.fr:*
// @license 2016
// @author thevdude
@theVDude
theVDude / tagpro-texture-replacer.user.js
Created April 9, 2016 04:04
use a different texture pack in tagpro
// ==UserScript==
// @name TagPro Texture Replacer
// @description Replace textures in tagpro
// @version 1
// @grant none
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://*.newcompte.fr:*
// @license 2014
// @author whatever