Skip to content

Instantly share code, notes, and snippets.

View matiasmicheletto's full-sized avatar
🏠
Working from home

Matias Micheletto matiasmicheletto

🏠
Working from home
View GitHub Profile
@matiasmicheletto
matiasmicheletto / tictactoe.html
Created January 5, 2023 20:45
Minimalist tic tac toe game in JS
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tic Tac Toe</title>
<meta name="description" content="Tic Tac Toe game">
<meta name="author" content="Matias Micheletto">
</head>
@matiasmicheletto
matiasmicheletto / bus_race.py
Last active July 17, 2024 14:04
Bus race for console :)
import time
import random
import os
import math
buses_names = ["CONDOR", "PLUSMAR", "RAPIDO", "FLECHA"]
def clear_console():
os.system('cls' if os.name == 'nt' else 'clear')
@matiasmicheletto
matiasmicheletto / loc_compare.py
Created April 21, 2025 20:40
Compare LOC for different software projects
import os
import matplotlib.pyplot as plt
# Define your apps and their source directories
dirs = {
"App 1": "/path/to/app1/",
"App 2": "/path/to/app2/",
"App 3": "/path/to/app3/"
}
@matiasmicheletto
matiasmicheletto / flipping-the-bird.ino
Last active April 25, 2025 20:03
Just a face and flipping the bird gesture for Arduino I2C-LCD
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 4);
int loopCtr = 0;
int direction = 0;
int x = random(0, 13);
int y = random(0, 1);
int dx = 0;
@matiasmicheletto
matiasmicheletto / download_papers.sh
Created May 11, 2026 20:01
Batch downloading scientific articles from sci-hub via DOI
#!/usr/bin/env bash
# =============================================================================
# download_papers.sh — Download scientific articles from Sci-Hub via DOI list
#
# Usage:
# chmod +x download_papers.sh
# ./download_papers.sh dois.txt
#
# The input file should contain one DOI per line, e.g.:
# 10.1038/nature12373