Skip to content

Instantly share code, notes, and snippets.

@yeyeto2788
yeyeto2788 / install_libgpiod.sh
Created November 10, 2020 13:56
Install gpiod python3 binding for Sunxi hardware devices.
#!/bin/sh
# Instructions!
# cd ~
# Copy content of file on a batch script (install_libgpiod.sh)
# chmod +x install_libgpiod.sh
# ./install_libgpiod.sh
# Credits: Adafruit's initial work https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/blob/master/libgpiod.sh
@yeyeto2788
yeyeto2788 / minify.py
Created November 6, 2020 11:13
Minify python code 🐍
#!/usr/bin/python3
import argparse
try:
from pyminifier import minification
from pyminifier import token_utils
except ImportError:
message = """
Please install pyminifier by issuing:
@yeyeto2788
yeyeto2788 / emojis.md
Created November 6, 2020 11:00
Get all available emojis from GitHub
Readme representation Emoji Unicode
:+1: 👍 1f44d
:-1: 👎 1f44e
:100: 💯 1f4af
:1234: 🔢 1f522
:1st_place_medal: 🥇 1f947
:2nd_place_medal: 🥈 1f948
:3rd_place_medal: 🥉 1f949
@yeyeto2788
yeyeto2788 / micropython-pomodoro.py
Last active March 26, 2019 20:34
Quick Pomodoro Technique wirtten in MicroPython
import machine
import neopixel
import time
import urandom
pixel_count = 12
neostrip = neopixel.NeoPixel(machine.Pin(12), 12)
button13 = machine.Pin(13, machine.Pin.IN)
button14 = machine.Pin(14, machine.Pin.IN)
button02 = machine.Pin(2, machine.Pin.IN)
@yeyeto2788
yeyeto2788 / setup_micropython.sh
Last active October 25, 2018 14:44
Brief process to be able to build MicroPython firmware images.
echo **********************************
echo ********** Update OS *************
echo **********************************
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install build-essential srecord make unrar-free autoconf automake libtool-bin gcc g++ gperf flex bison texinfo gawk ncurses-dev libexpat-dev python python-serial sed git unzip help2man -y