Skip to content

Instantly share code, notes, and snippets.

@MadameMinty
MadameMinty / llava.py
Last active February 6, 2024 10:10
Tag images with LLaVA and colorsort
#!/usr/bin/env python
# coding: utf
# 2024-02-02
# Tag images with LLaVA and colorsort
# # SETUP Windows
# install Python https://www.python.org/downloads/
# ensure you have WSL and a distro like Ubuntu installed from the Microsoft Store
# run `wsl` in a terminal
# run `curl https://ollama.ai/install.sh | sh` in wsl
@MadameMinty
MadameMinty / Cargo.toml
Last active April 22, 2023 21:17
Rust: FLTK: Generic window, borderless, rounded
[package]
name = "generic_window"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "generic_window"
path = "src/generic_window.rs"
[dependencies]
fltk = "1.4.0"
@MadameMinty
MadameMinty / compact-messenger.user.js
Last active May 20, 2020 20:22 — forked from realies/compact-messenger.user.js
Making the Messenger sidebar narrow. Adapted the original script to handle dynamic CSS names, and better work with vertical screens. This will compact the sidebar when you keep Messenger window on a vertical HD screen (1080px) or snap its window to a side of a HD (960px) or ultrawide (1280px width available) screen, but will expand it on e.g. HD…
// ==UserScript==
// @name Compact Messenger Sidebar
// @version 2
// @match https://www.messenger.com/*
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
// ==/UserScript==
const targetCSS = document.getElementsByTagName("head")[0].querySelectorAll("link[href*='.css']")[2];
GM_xmlhttpRequest({