This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 : "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |