Skip to content

Instantly share code, notes, and snippets.

View elpideus's full-sized avatar
Heading to the stars...

Stefan Cucoranu elpideus

Heading to the stars...
View GitHub Profile
@elpideus
elpideus / AskAIForEmojiTags.js
Last active September 3, 2025 20:51
Ask AI to apply Tags to an Emoji List
import fs from "fs";
import fetch from "node-fetch"; // Make sure to install it
const INPUT_FILE = "./icons.json"; // The file containing the emojis (I also added it to this gist for reference)
const OUTPUT_FILE = "./emojis_with_tags.json"; // The output file (the initial file with the tags applied)
const API_URL = "http://localhost:1234/v1/chat/completions"; // If you use LMStudio you can leave this as is
const MODEL = "google/gemma-3-12b"; // The model of your choice (make sure to load it first)
const SAVE_INTERVAL = 50; // The progress will be saved every SAVE_INTERVAL emojis
let data;
@elpideus
elpideus / mpv_auto_config.ps1
Last active May 10, 2025 12:05
A simple script that automatically configures mpv with minimal ui and commonly used features. The script automatically downloads, installs and configures the required dependencies.
# !!! 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")) {
@elpideus
elpideus / emojis.json
Last active March 2, 2025 21:03 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
[
{"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": "👨‍👩‍👧‍
@elpideus
elpideus / download_vid_song.ps1
Created January 21, 2025 08:25
My aliases for downloading songs and videos from YouTube using the terminal. yt-dlp and ffmpeg are needed dependencies.
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 (
@elpideus
elpideus / SimpleSingleMouseTrackingBall.html
Last active November 2, 2022 21:58
Simple Single Mouse Tracking Ball
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tracking Ball</title>
</head>
<body>
<style>
body {
width: 100vw;
@elpideus
elpideus / Collatz.py
Created October 10, 2021 19:11
The Collatz Conjecture, Siracuse Problem or simply 3n + 1 in Python3
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).
@elpideus
elpideus / Fibonacci.py
Last active October 16, 2021 20:57
Fibonacci sequence written in Python3. Not really clean but working
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