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 / tf-image-stilizer.py
Created August 30, 2021 12:40
Test for the image style transfer by Ghiasi et al.
# Check it working on: https://www.kaggle.com/matiasmiche/image-stylization
import matplotlib.pyplot as plt
import tensorflow_hub as hub
import tensorflow as tf
import numpy as np
import cv2
content_filename = 'content_image.jpg'
style_filename = 'style_image.jpg'
@matiasmicheletto
matiasmicheletto / lcd_xmas.ino
Created December 17, 2020 18:23
LCD 2004 I2C xmas message
#include <Wire.h>
#include "LiquidCrystal_I2C.h"
/* If address is not 0x27, then try 0x3F */
LiquidCrystal_I2C lcd(0x27,20,4);
/* Custom characters */
byte c0[8] = {0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x0F};
byte c1[8] = {0x04,0x0E,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F};
byte c2[8] = {0x00,0x00,0x00,0x00,0x10,0x18,0x1C,0x1E};
@matiasmicheletto
matiasmicheletto / covid19_ranking.py
Last active October 10, 2020 22:32
List and plot the top countries with highest number of covid-19 deaths per million people.
"""
List and plot the top countries with highest number of covid-19 deaths per million people.
"""
import csv
import requests
import matplotlib.pyplot as plt
@matiasmicheletto
matiasmicheletto / vfswg.ino
Last active August 27, 2020 23:00
ATMega328 Arduino based dual channel variable frecuency square wave generator - Generador de onda cuadrada de frecuencia variable doble canal para Arduino
/*
* Doble generador de onda cuadrada de frecuencia variable
*/
// Pines
#define T1 2 // Salida 1
#define T2 3 // Salida 2
// Frecuencias por defecto (Hz)
#define DEF_1 3 // Salida 1