Skip to content

Instantly share code, notes, and snippets.

View birabittoh's full-sized avatar
๐Ÿ 
Working from home

Marco Andronaco birabittoh

๐Ÿ 
Working from home
View GitHub Profile
@birabittoh
birabittoh / 20250216153154.json
Created February 16, 2025 14:39
OpenWeatherMap weather conditions parser
{
"200": {
"name": "Thunderstorm",
"description": "thunderstorm with light rain",
"icon": "11"
},
"201": {
"name": "Thunderstorm",
"description": "thunderstorm with rain",
"icon": "11"
@birabittoh
birabittoh / README.md
Last active November 13, 2024 10:05
Generatore di video per Guess the Song (EarthBound Cafรฉ).

Guesser

Genera video per la rubrica Guess the Song, di EarthBound Cafรฉ. Lo script funziona su Linux e WSL.

Istruzioni per l'uso

Preparazione

  1. Installare le dipendenze:
@birabittoh
birabittoh / Docker.md
Last active June 6, 2023 22:24
Istruzioni per l'installazione e l'utilizzo di Docker su PC Windows senza Docker Desktop.

Installazione

  • Aprire Powershell come amministratore e lanciare il seguente comando:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  • Installare l'app di Ubuntu dal Microsoft Store;
  • Aprire Ubuntu dal menu Start e impostare nome utente e password;
  • Inserire, una riga per volta, i seguenti comandi:
sudo apt update -y && sudo apt dist-upgrade -y
@birabittoh
birabittoh / CodeDistance.ipynb
Created January 27, 2023 09:00
Easily calculate the distance of any code in Python.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@birabittoh
birabittoh / code-distance.py
Last active January 27, 2023 09:02
Easily calculate the distance of any code in Python.
from itertools import product
from collections import Counter
def hamming(x: int, y: int):
return (x ^ y).bit_count()
def get_distance(code: list[int], verbose=False):
c = list(dict.fromkeys(code)) # remove repetitions
distances = [hamming(x, y) for x, y in product(c, repeat=2)] # compute distances
counts = sorted(Counter(distances).items()) # count and sort distances
@birabittoh
birabittoh / emoji-14.0.json
Created September 21, 2022 14:14
only emojis and names
[{"char":"๐Ÿ˜€","name":"grinning face"},{"char":"๐Ÿ˜ƒ","name":"grinning face with big eyes"},{"char":"๐Ÿ˜„","name":"grinning face with smiling eyes"},{"char":"๐Ÿ˜","name":"beaming face with smiling eyes"},{"char":"๐Ÿ˜†","name":"grinning squinting face"},{"char":"๐Ÿ˜…","name":"grinning face with sweat"},{"char":"๐Ÿคฃ","name":"rolling on the floor laughing"},{"char":"๐Ÿ˜‚","name":"face with tears of joy"},{"char":"๐Ÿ™‚","name":"slightly smiling face"},{"char":"๐Ÿ™ƒ","name":"upside-down face"},{"char":"๐Ÿซ ","name":"melting face"},{"char":"๐Ÿ˜‰","name":"winking face"},{"char":"๐Ÿ˜Š","name":"smiling face with smiling eyes"},{"char":"๐Ÿ˜‡","name":"smiling face with halo"},{"char":"๐Ÿฅฐ","name":"smiling face with hearts"},{"char":"๐Ÿ˜","name":"smiling face with heart-eyes"},{"char":"๐Ÿคฉ","name":"star-struck"},{"char":"๐Ÿ˜˜","name":"face blowing a kiss"},{"char":"๐Ÿ˜—","name":"kissing face"},{"char":"โ˜บ๏ธ","name":"smiling face"},{"char":"โ˜บ","name":"smiling face"},{"char":"๐Ÿ˜š","name":"kissing face with closed eyes"},{"char":"๐Ÿ˜™","name":"kissing face with smiling eyes"},{"ch
@birabittoh
birabittoh / Conductor.cs
Last active March 23, 2021 18:05 — forked from Starpelly/Conductor.cs
Simple metronome for Rhythm Games
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Conductor : MonoBehaviour
{
public float bpm = 120;
public float secPerBeat;
public float songPosition;
@birabittoh
birabittoh / SteamFarmer.c
Last active April 26, 2021 13:01
A simple C program to farm hours on any Steam game.
#include <stdio.h>
void main(int argc, char **argv){
if(argc > 1){
printf("You are now farming hours.\n\nOriginal command:\n");
int i;
for(i=1; i < argc; i++) {
printf("%s ", argv[i]);
}
@birabittoh
birabittoh / Udongein.html
Last active February 2, 2021 19:02 — forked from jaysn/Udongein.html
Reisen Udongein html table
<html>
<head>
<style>
.pixel-table {
border: 0;
border-spacing: 0;
}
.pixel-height {
height: 7px;