Skip to content

Instantly share code, notes, and snippets.

View UrbsKali's full-sized avatar
🤌
Give it a meaning

Urbain Lantrès UrbsKali

🤌
Give it a meaning
View GitHub Profile
#!/usr/bin/env bash
set -euo pipefail
# Function to display usage information
usage() {
echo "Usage: $0 [OPTIONS]"
echo "Update NixOS configuration from the cluster config repository"
echo ""
echo "Options:"
@UrbsKali
UrbsKali / ytb_sync_ytdl.rs
Last active March 24, 2024 22:36
Rust ytb cli downloader
use core::str;
use std::time::Duration;
use indicatif::ProgressBar;
use rustube::{blocking, tokio};
#[tokio::main]
async fn main() {
// ask for the video url
let url = ask_text("URL de la vidéo : ");
@UrbsKali
UrbsKali / chroma.py
Last active April 6, 2022 18:30
chroma
from kandinsky import *
from math import cos, sin, pi
def draw_chroma():
rad = 0
while rad < 2*3.14:
set_pixel(150+int(cos(rad)*50), 100 + int(sin(rad)*50), set_color(rad))
rad += 0.01
def hsv2color(h,s=1,v=1):
h,c=(h/pi)%2,v*s