Skip to content

Instantly share code, notes, and snippets.

View VovanR's full-sized avatar
😺
I may be slow to respond.

Vladimir Rodkin VovanR

😺
I may be slow to respond.
View GitHub Profile
@VovanR
VovanR / close-pull-request.sh
Created June 24, 2019 13:01
close-pull-request.sh
#!/usr/bin/env bash
gitclosepullrequest () {
local status branch
status="$(git status 2>/dev/null)"
[[ $? != 0 ]] && return;
branch="$(git branch | perl -ne '/^\* (.*)/ && print $1')"
git fetch origin master:master && git checkout master && git branch -d ${branch}
}
@VovanR
VovanR / i2c_scanner.ino
Created August 30, 2019 08:29
Arduino i2c_scanner
// --------------------------------------
// i2c_scanner
//
// Version 1
// This program (or code that looks like it)
// can be found in many places.
// For example on the Arduino.cc forum.
// The original author is not know.
// Version 2, Juni 2012, Using Arduino 1.0.1
// Adapted to be as simple as possible by Arduino.cc user Krodal
### Keybase proof
I hereby claim:
* I am vovanr on github.
* I am vovanr (https://keybase.io/vovanr) on keybase.
* I have a public key whose fingerprint is 5057 AD1D 6DD2 3D53 BB0A DFB4 4ECB B581 4F9E 8A59
To claim this, I am signing this object: