Skip to content

Instantly share code, notes, and snippets.

@flxai
flxai / pandoc-filter-convert-images-webp.py
Created January 26, 2025 23:30
Pandoc filter to convert all images to webp format
#!/usr/bin/env python
"""
Pandoc filter to convert all images to WebP format.
"""
import os
from pandocfilters import toJSONFilter, Image
from PIL import Image as PILImage
@flxai
flxai / illionaires.ipynb
Created July 22, 2024 22:22
Illionaires
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flxai
flxai / emojihash.ipynb
Created February 23, 2023 00:16
EmojiHash™
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flxai
flxai / scanner-search.ipynb
Created February 20, 2023 04:16
Search for a USB Scanner for Linux
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flxai
flxai / colormaps-turbo-variants.ipynb
Last active February 16, 2023 23:14
Variants of turbo colormap
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flxai
flxai / salavon-centerfolds-recreate.ipynb
Created February 3, 2023 19:30
Recreate Salavon's piece 'Every Playboy Centerfold, The 1970s (normalized)' from 2002
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flxai
flxai / nixpkgs
Created August 13, 2022 04:23
nixpkgs searches search.nixos.org for packages and prints their infos
#!/usr/bin/env bash
# nixpkgs queries and parses search.nixos.org in a dirty way
channel=22.05
sort_mode=relevance
max_wait=10000
function usage() {
echo "Usage:"
echo "$(basename ""$0"") SEARCH_TERM"
exit 1
@flxai
flxai / reddit-list-subs.py
Created August 10, 2022 15:43
Reddit list Subreddits
#!/usr/bin/env python3
# Download a list of subscribed subreddits
# Since this program uses stderr incoke it like this to store subs to file:
#
# reddit-list-subs > subs.lst
import getpass
import praw
import sys
@flxai
flxai / README.md
Last active June 27, 2022 17:30
Neural MtG

Let's play neural MtG!

  1. Get the mtg-neural-deck.py script to download some cards.
  2. Build a deck with your freshly hallucinated cards.
  3. ???
  4. Profit!

EDA

Check out the Jupyter notebook eda.ipynb to throw some statistics on your already downloaded cards.

@flxai
flxai / gather-lineage-os-devices.ipynb
Created February 15, 2022 00:36
Gathers data on LOS devices and show number of maintainers and cost efficiency
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.