Skip to content

Instantly share code, notes, and snippets.

@denilsonsa
denilsonsa / List of alternative launchers for Android TV.md
Last active June 21, 2026 18:24
List of alternative launchers for Android TV

This was originally shared on reddit, but for some reason I cannot update it anymore. I've now mirrored it as this GitHub Gist.

List of alternative launchers for Android TV

For whatever reason, it's really difficult to discover alternative launchers for Android TV. Sure, you can find a couple of them, but there are so many terrible results that you will end up wasting quite some time.

Thus, I've compiled this list of alternative Android TV launchers. It's not comprehensive (I'm certain I missed some, please suggest them in comments); I'm not endorsing any particular one; and I have not tried all of them. Some are free, some are paid. Some contain ads. Some contain IAP (in-app purchases). Some require too many intrusive permissions.


@denilsonsa
denilsonsa / tictactoe.py
Created January 31, 2026 20:14
Experiment drawing tic-tag-toe on micro:bit 5x5 LED matrix
# Try this at https://python.microbit.org/v/3
# Problem: how to make two distinct "sprites" for each player of tic-tac-toe, if all we have is just a single pixel?
# Solution: I don't know!
# I've tried making each pixel animate (blink) in different brightness ans patterns.
# I'm still not happy with the result, but I didn't want to throw away this code.
# Maybe I should make them blink alternately (i.e. out-of-phase).
# Maybe I should use the intermediate pixels to "join" cells that are of the same type, similar to how Puyo Puyo graphics work.
from microbit import *
@denilsonsa
denilsonsa / README.md
Created January 16, 2026 19:24
download_twitpic.py

This is a small Python 2 script written in 2011 to download a bunch of images from the (defunct) website twitpic.com.

Back then, Twitter was really a microblogging platform that only allowed short text messages and nothing else. TwitPic was a third-party website to host user-submitted images with short URLs, and those URLs could be embedded into normal tweets.

Around that time, I was playing a lot of Super Meat Boy, and for some reason I wanted to download and view all the images posted in that Twitter/TwitPic account. So I wrote this script. I ran it like this:

./download_twitpic.py  http://twitpic.com/photos/SuperMeatBoy?page={1..9}
@denilsonsa
denilsonsa / main.py
Created August 10, 2025 07:01
Experimenting with asyncio
#!/usr/bin/env python3
# This is some experimental code I wrote while trying to learn more about asyncio in Python 3.
# I wrote it many years ago, I remember nothing about it.
# I'm uploading it to a Gist so in the future I will be able to refer back to it.
import asyncio
from aiohttp import web
@denilsonsa
denilsonsa / README.md
Last active July 30, 2025 07:35
A slice of (retro) PC gaming

A bunch of classic and memorable (old) PC games. Some are very well known, other are more niche hidden games. They are all worth revisiting.

Here's the list, in no particular order. Mostly because this is a dump of a brainstorm of a list of PC games. I spend hours thinking about them, so I'd rather take note.

@denilsonsa
denilsonsa / ssprogressbar.mjs
Last active September 24, 2025 13:52
Stupid Simple Progress Bar (printing nice progress bars at the terminal)
#!/usr/bin/env node
// Stupid simple progress bar.
class StupidSimpleProgressBar {
constructor(blocks, {prefix='', suffix='', totalWidth=78}) {
this.blocks = blocks;
this.prefixes = prefix.split('\n');
this.suffixes = suffix.split('\n');
this.totalWidth = totalWidth;
@denilsonsa
denilsonsa / lit-transition.js
Last active April 2, 2025 05:15
Mixing Lit v1 and Lit v2/v3 html and css templates
// lit-transition.js
// Provides some functions/objects that work on both Lit v1 and Lit v2/v3.
// This code is based on this proof-of-concept: https://codepen.io/denilsonsa/pen/dPyWZbY
// How to use this code? Use this:
// import { multicss as css, multihtml as html, multinothing as nothing } from './lit-transition.js';
// Instead of Lit's own css, html and nothing functions/objects.
////////////////////////////////////////////////////////////
@denilsonsa
denilsonsa / mobile_games.md
Last active April 14, 2026 15:49
Recommendations of mobile apps and mobile games
@denilsonsa
denilsonsa / AveryLabels.ipynb
Last active August 16, 2024 16:40
Avery labels template parser
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@denilsonsa
denilsonsa / README.md
Last active July 2, 2024 15:43
Python Mandelbrot fractal

Python Mandelbrot fractal

Trivial implementation of the Mandelbrot fractal written in pure Python. It outputs to the terminal using 24-bit ANSI escape codes, which is widely supported by many terminals.

No optimization was done to the code. It's supposed to be simple and straightforward.

There is a one-to-one mapping between each calculated point from the fractal and one output character. This results in a low-resolution image made of characters (instead of pixels),