Skip to content

Instantly share code, notes, and snippets.

@m-doescode
m-doescode / fixsymlinks.sh
Created April 7, 2022 15:58
Convert unix symlinks in git repository to windows symlinks
@m-doescode
m-doescode / charmap.lua
Created November 17, 2022 10:03
ComputerCraft | charmap.lua | Simple charmap for listing all characters and their codes [Advanced Computer only]
-- Made by m-doescode
local w = 16
function dispchar(i,bg,fg)
local x = i % w + 1
local y = math.floor(i / w) + 1
local char = string.char(i)
if bg then
@m-doescode
m-doescode / more.lua
Created November 21, 2022 15:07
ComputerCraft | more.lua | Paginate the output of a long program and access the next page by pressing any key
-- by m-doescode
local path = ...
local program = shell.resolveProgram(path)
if program == nil then
error("No such program: " .. path,0)
end
@m-doescode
m-doescode / fandom-script-ublock.md
Created April 9, 2023 16:08
Fandom.com clutter reduction script for uBlock Origin
fandom.com##.page__right-rail
fandom.com##.global-navigation
fandom.com##.mcf-wrapper
fandom.com##.global-footer
fandom.com##.resizable-container:style(max-width: inherit !important; width: 95% !important;)
fandom.com##.WikiaBarWrapper
fandom.com##.YkHbK.sc-bQtKYq
fandom.com##.is-visible.fandom-sticky-header:style(left: 0 !important;)
fandom.com##.main-container:style(margin-left: 0 !important; width: 100% !important;)
import pygame, sys
from pygame.locals import *
from time import sleep
from math import floor
import colorsys
sx = floor(500 / 2 - 50) - 100
sy = floor(500 / 2 - 50) - 200
dx = 1
dy = 1