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
# !!! This script is intended for personal use so it adapts to my preferences and usage. As such no support will be provided. !!! | |
# A simple script that automatically configures mpv with minimal ui and commonly used features. | |
# The script automatically downloads, installs and configures the required dependencies. | |
# Install command-palette | |
Invoke-Expression -Command $(Invoke-RestMethod -Uri "https://raw.githubusercontent.com/stax76/mpv-scripts/refs/heads/main/powershell/command_palette_installer.ps1") | |
# Create mpv directory | |
if (-not (Test-Path -Path "$env:APPDATA\mpv")) { |
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
[ | |
{"emoji": "👩👩👧👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👩👩👧👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👩👩👦👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👨👩👧👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩‍👧‍ |
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
function dlvid { | |
param ( | |
[string]$url, | |
[string]$o = 'S:/Videos' | |
) | |
yt-dlp -f 'bv*+ba/b' --merge-output-format mp4 -o "$o/%(title)s.%(ext)s" $url | |
} | |
function dlsong { | |
param ( |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Tracking Ball</title> | |
</head> | |
<body> | |
<style> | |
body { | |
width: 100vw; |
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
import time | |
def collatz(stop_loop: bool = True, slow: bool = True, show_delay: float = .3): | |
""" | |
The Collatz Conjecture (known also as the Ulam Conjecture, Kakutani's Problem, Thwaites Conjecture, Hasse's | |
Algorythm, Syracuse Problem or, simply, 3n+1) states that if we take any number and check if it's even or odd. If | |
the number is even it must be divided by 2 and if it's odd it will be multiplied by three and incremented by 1 ( | |
3x+1, as the formula says). |
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
import time | |
def fibonacci(slow=True, limit=100000, show_delay=.3): | |
""" | |
In mathematics, the Fibonacci numbers, form a sequence, called the Fibonacci sequence, such that each number is the | |
sum of the two preceding ones, starting from 0 and 1. Fibonacci numbers are named after the Italian mathematician | |
Leonardo of Pisa, later known as Fibonacci. In his 1202 book Liber Abaci, Fibonacci introduced the sequence to | |
Western European mathematics,[6] although the sequence had been described earlier in Indian mathematics, | |
as early as 200 BC in work by Pingala on enumerating possible patterns of Sanskrit poetry formed from syllables of |