Skip to content

Instantly share code, notes, and snippets.

OpenSource PythonVersions License Git.io

Simple Python GUI for Redshift.

Dim your screen with a click.
Only runs when you want it to.
Doesn't run in background,
So it won't eat up your valuable memory.
Change brightness to your current mood.

@doyousketch2
doyousketch2 / UnrequitedLöve.user.js
Last active May 6, 2017 11:19
Highlight disabled functions in the Löve tables @ love2d.org/wiki
// ==UserScript==
// @name Unrequited Löve
// @version 0.2
// @description Highlight disabled functions in the Löve tables
// @author Doyousketch2
// @match https://love2d.org/wiki/*
// @grant GM_info
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_xmlhttpRequest
@doyousketch2
doyousketch2 / fff.py
Last active August 3, 2017 20:20
4096 prime numbers in lua list format
#!/usr/bin/python
##~~~~~~~~~~~~~~~
## @Doyousketch2
## Gnu GPLv3
import time
import xaut
## use xev to find keycodes
letter = "123456789ABCDEF"
@doyousketch2
doyousketch2 / opensearch.xml
Last active February 14, 2022 20:06
Add Firefox search for Online Etymology Dictionary
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<!-- Generated by http://www.7is7.com/software/firefox/opensearch.html -->
<ShortName>Online Etymology Dictionary</ShortName>
<Description>Online Etymology Dictionary Search</Description>
<Url type="text/html" method="get" template="https://www.etymonline.com/search?q={searchTerms}&amp;sourceid=opensearch"/>
<Image width="16" height="16" type="image/x-icon">https://www.etymonline.com/favicon.ico</Image>
<InputEncoding>UTF-8</InputEncoding>
<moz:SearchForm>https://www.etymonline.com/</moz:SearchForm>
<moz:UpdateUrl>https://www.etymonline.com/opensearch.xml</moz:UpdateUrl>
@doyousketch2
doyousketch2 / Add this to your bindings.xml
Last active January 13, 2018 13:08
TiledGGD lua script for Sega Saturn files -- put in your /TiledGGD/Plugins/ dir -- https://git.io/vNnvj
<Binding type="GRAPHICS">
<Name>Sega Saturn</Name>
<FilterSet method="AND">
<Filter type="MAGIC">SEGA</Filter>
</FilterSet>
<Target type="LUA">Graphics_Saturn.lua</Target>
</Binding>
@doyousketch2
doyousketch2 / nssb_mapgen.lua
Last active March 9, 2022 00:50
mapgen function for nssb
schemepath = minetest .get_modpath('nssb') ..'/schems/'
function nssb_register_buildings(
build_name, -- name of schematic
rand, -- 1/rand is probability of spawning
required, -- required block to to spawn on
height, -- under this height, schematic can spawn
near, -- scan if this node is near
width2fill ) -- width of schematic, to fill dirt / ice under
@doyousketch2
doyousketch2 / body.lua
Created December 2, 2018 02:04
body.lua
-- title: ModelRenderer
-- author: FlamingPandas
-- desc: Shows 3D models
-- script: lua
point={x=0,y=0,z=300}
fov=100 -- Field of View
@doyousketch2
doyousketch2 / beautifulSoup.py
Last active December 30, 2018 15:30
beautifulSoup.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
##=========================================================
## beautifulSoup.py Dec 2018
## Eli Innis @Doyousketch2 Doyousketch2 @ yahoo.com
## GNU AGPLv3 gnu.org/licenses/agpl-3.0.en.html
""" required ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""
## sudo pip3 install requests beautifulsoup4 html5lib lxml
@doyousketch2
doyousketch2 / taskbar_tint.py
Created March 8, 2019 12:04
color your LXDE taskbar on the weekend
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
##=========================================================
## taskbar_tint.py Mar 2019
##
## Eli Innis @Doyousketch2 Doyousketch2 @ yahoo.com
##
## GNU GPLv3 gnu.org/licenses/gpl-3.0.html
@doyousketch2
doyousketch2 / luacontroller_interrupt.lua
Created June 2, 2019 16:02
Use interrupt to create a delay in Minetest Luacontrollers
local delay = 1
if event.type == 'program' then
interrupt( delay, 'Once' )
interrupt( delay, 'Loop' )
end
if event.type == 'interrupt' then
if event.iid == 'Once' then