Skip to content

Instantly share code, notes, and snippets.

View gitMatiH's full-sized avatar

Matías Alexander Hillmann gitMatiH

  • Buenos Aires, Argentina
View GitHub Profile
//Title: Button Debouncing using a State Machine
//Author: Chris Guichet
//Date: Jan 15, 2018
//
//Description:
// -A State Machine is a useful tool to organize complex code
// -Think of it like the next step beyone "If Else" statements
// -This example code uses a State Machine to handle tac switch debouncing
// -It also has a "Hold" function to enable interaction with long button presses
// -The tac switch is used to control a buzzer and an LED, it can multitask
//Title: Button Debouncing using a State Machine, Complex Version
//Author: Chris Guichet
//Date: Jan 15, 2018
//
//Description:
// -A State Machine is a useful tool to organize complex code
// -Think of it like the next step beyone "If Else" statements
// -This example code uses a State Machine to handle tac switch debouncing
// -It also has a "Hold" function to enable interaction with long button presses
//
@gitMatiH
gitMatiH / gitcreate.sh
Last active September 3, 2022 13:36 — forked from robwierzbowski/gitcreate.sh
A simple litte script. Create and push to a new github repo from the command line.
#!/bin/bash
# https://gist.github.com/robwierzbowski/5430952/
# Crear y pushear a un nuevo repositorio de github desde la línea de comandos.
# Toma defaults razonables de la carpeta contenedora y de `.gitconfig`.
# Refinamientos bienvenidos.
# Junta vars constantes
CURRENTDIR=${PWD##*/}
GITHUBUSER=$(git config github.user)