Skip to content

Instantly share code, notes, and snippets.

@rosmur
rosmur / upgrade_dependencies_uv_pyproject.py
Created August 4, 2025 02:27
A stand-alone utility script to upgrade dependencies in pyproject.toml to their latest available versions
#! /usr/bin/env -S uv run --script
#
# Source:
# https://gist.github.com/yhoiseth/c80c1e44a7036307e424fce616eed25e?permalink_comment_id=5387642#gistcomment-5387642
#
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "typer>=0.15.3",
# "tomlkit>=0.13.2",
@rosmur
rosmur / requirementstxt_to_uv_pyprojecttoml.py
Created March 3, 2025 05:20
requirements.txt to uv pyproject.toml dependencies convertor
#!/usr/bin/env python3
"""
Script to convert requirements.txt to dependencies list for pyproject.toml for uv project
Usage:
Execute the script with:
python3 requirementstxt_to_uv_pyprojecttoml.py path/to/requirements.txt
@rosmur
rosmur / poetry_to_uv_v1.sh
Last active November 30, 2024 14:09
Transform Poetry pyproject.toml to uv format
#!/bin/bash
# Function to display usage
usage() {
echo "Usage: $0 [input_file]"
echo "If input_file is not provided, the script will look for pyproject.toml in the current directory."
exit 1
}
# Set input file
@rosmur
rosmur / index.html
Created March 11, 2023 10:27
Magical Hover Effect (w/ Tutorial)
<div id="cards">
<div class="card">
<div class="card-content">
<div class="card-image">
<i class="fa-duotone fa-apartment"></i>
</div>
<div class="card-info-wrapper">
<div class="card-info">
<i class="fa-duotone fa-apartment"></i>
<div class="card-info-title">