Skip to content

Instantly share code, notes, and snippets.

View trashbyte's full-sized avatar

trashbyte trashbyte

View GitHub Profile
{
"schemaVersion": 1,
"label": "docs",
"message": "passing, 100% coverage",
"isError": false,
"namedLogo": "docs.rs",
"color": "blue"
}
@trashbyte
trashbyte / slightly-less-dark-mode.css
Created August 31, 2017 09:31
Youtube slightly less dark mode (stylish/css)
* {
--yt-primary-color: #ccc;
--yt-primary-text-color: #ccc;
--yt-endpoint-color: #59f;
--yt-endpoint-hover-color: #6bf;
--yt-brand-paper-button-color: #c00;
}
ytd-browse, ytd-watch {
background: #222 !important;
// ==UserScript==
// @name Fix Picarto Auto-Scroll
// @version 0.1
// @author trashbyte
// @match https://picarto.tv/*
// @grant none
// ==/UserScript==
$(function() {
$(document.body).append($(`<script>
@trashbyte
trashbyte / Downgrade_Tweetdeck.js
Created June 15, 2017 15:15
Downgrade Tweetdeck userscript
// ==UserScript==
// @name Downgrade Tweetdeck
// @include https://tweetdeck.twitter.com/
// @version 0.1
// @grant none
// ==/UserScript==
(function() {
'use strict';
$(`
@trashbyte
trashbyte / 1_notes.md
Last active December 20, 2020 22:04
Mass importing pixel font glyphs into FontForge

First, you'll need separate images for each glyph, with transparent backgrounds. Each file should have a name matching its character, e.g. a.png. Depending on the format your font is in, this could be pretty tedious. Don't worry, this is the worst part.

Once you have your font images, you'll run pixel2svg on them. You could run it on every image in a directory with something like this:

for f in imgfolder/*.png; do python pixel2svg.py $f; done

Then you should have an svg for each glyph. Open FontForge and create a new font. Choose File > Execute Script and paste in the following:

@trashbyte
trashbyte / busted.rs
Created March 14, 2017 03:29
rust???
enum IResult<I = u32, E = u32> {
Done(I),
Error(E)
}
fn main() {
IResult::Done(0);
}

Keybase proof

I hereby claim:

  • I am trashbyte on github.
  • I am trashbyte (https://keybase.io/trashbyte) on keybase.
  • I have a public key whose fingerprint is DD33 FE82 89F0 4177 7F28 C25E C3B0 D396 CD2C E12C

To claim this, I am signing this object: