Skip to content

Instantly share code, notes, and snippets.

View andypiper's full-sized avatar
🛠️
tinkering

Andy Piper andypiper

🛠️
tinkering
View GitHub Profile
@vwillcox
vwillcox / weather2.py
Last active January 25, 2025 11:05
A Threaded weather and clock display for the #Pimoroni #GlacticUnicorn
import urequests as requests
import json
import network
import secrets
from picographics import PicoGraphics, DISPLAY_GALACTIC_UNICORN as DISPLAY
from galactic import GalacticUnicorn
import jpegdec, math, ntptime, time
import _thread
blink=0
@meldra
meldra / fedistreamplus.html
Created January 13, 2023 21:35
Fedistream plus instance and token fields
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fedistream</title>
<style>
html,
body {
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
@ElanHasson
ElanHasson / Fediverse Moderation Tools Proposal.md
Last active October 31, 2023 14:54
Fediverse Moderation Tools Proposal

2023-10-25: The name FediMod and all assets have been transfered to @thisismissem and this document's title and references to FediMod have been replaced with The System .

NOTE: below is the first draft, I'm working to incorporate feedback into it from various folks. Below is a summary of the feedback

To be clear:

Everything would be opt-in by default and admins and mods can choose which other admins or mods see what they're sharing. Think Circles in Google+, as some things they may want to share with one group and other things with another group. They may even choose to share 100% publicly with anyone verified mod or admin.

There would be no centralized authority here-- everything would be run over ActivityPub.

@WolfwithSword
WolfwithSword / bambu_bed_mesh_flow.json
Last active September 20, 2024 14:37 — forked from mkosmo/bambu_mqtt.json
Node-RED Flow - BambuLab X1 MQTT Relay for Home Assistant MQTT Auto-Discovery
[
{
"id": "40b2e704eefd62e1",
"type": "group",
"z": "fbda6ab16491b918",
"name": "Bed Mesh Parser",
"style": {
"stroke": "#92d04f",
"fill": "#9363b7",
"fill-opacity": "0.16",
@edsu
edsu / post
Last active January 3, 2023 16:33
#!/bin/bash
# Set these environment variables and you can create a (text-only) post using
# your favorite command line text editor.
#
# - EDITOR: e.g. vim, emacs, etc
# - MASTODON_POST_HOST: the hostname for our Mastodon account, e.g. chaos.social
# - MASTODON_POST_TOKEN: an app access key with write:statuses permission
#
# See: https://gist.github.com/edsu/aa6f70bb20127b1e18e05dff5e470022
@pancelor
pancelor / p64env.lua
Last active April 19, 2025 14:07
picotron API explorer
-- picotron api explorer (p64env)
-- by pancelor
-- https://pancelor.com
--[[
## how to install
1. open picotron (buy from https://www.lexaloffle.com/picotron.php)
2. press escape to open the terminal
3. run `folder`. a file explorer should open on your host OS.
you should see `appdata` and `desktop`
@lagomorph
lagomorph / kim-1-hh.asm
Created December 23, 2022 18:47
Happy Holidays from the KIM-1
TIMERCNT = $df
TIMERMCNT = $1
SAD = $1740
PADD = SAD+1
SBD = SAD+2
CLK1T = $1704
CLK8T = CLK1T+1
CLK64T = CLK1T+2
CLK1024T = CLK1T+3
@sandyjmacdonald
sandyjmacdonald / github-graph-api.py
Last active December 20, 2022 23:11
Display a GitHub user commit graph on the Pimoroni Galactic Unicorn LED matrix
# Pop this on another machine, and run with:
# python3 github-graph-api.py --host 0.0.0.0
#
# Take note of this machine's IP address, as you'll
# need to add it in the GU code.
import requests
from bs4 import BeautifulSoup, SoupStrainer
from flask import Flask, jsonify, make_response
@TheOPtimal
TheOPtimal / neumorpic.css
Created December 9, 2022 19:50
Neumorphic style for Retro
#window {
border: none;
border-radius: 25px;
background: #e0e0e0;
box-shadow: inset -12px -12px 24px #ffffff,
inset 12px 12px 24px #acacac;
min-width: 810px;
min-height: 200px;
}
@bramus
bramus / bookmarklet.md
Last active September 20, 2024 07:01
Mastodon User Page Bookmarklet