Skip to content

Instantly share code, notes, and snippets.

View gmacario's full-sized avatar

Gianpaolo Macario gmacario

View GitHub Profile
@gmacario
gmacario / show-branch.md
Created January 15, 2018 13:10 — forked from githubteacher/show-branch.md
Adding your Git branch to your command prompt

To show your active Git branch in your command prompt, you will need to do the following:

  • If you are on a Mac, you can add the code shown below to your .bash_profile file.
  • If you are on Linux, you will add the code shown below to your .bashrc file.
  • If you are on Windows, you probably aren't reading this because Windows provides this behavior by default.

The Script

parse_git_branch() {
@gmacario
gmacario / sx1278_master.cpp
Created August 9, 2017 18:40 — forked from donghee/sx1278_master.cpp
sx1278_from_doriji: 2016-03-05 it's works. from hama to mangwon-dong han river.
#define RF_RESET 11
#define RF_DIO0 12
#define RF_SCK 13
#define RF_MISO 14
#define RF_MOSI 15
#define RF_NSEL 16
#define LED1 PIN_LED1
#define LED2 22 //