Skip to content

Instantly share code, notes, and snippets.

View bilange's full-sized avatar

Eric Belanger bilange

View GitHub Profile
@bilange
bilange / hostchecker.go
Created October 28, 2012 19:56
Host checker
/* TCP Host checker
* Eric Belanger // github.com/bilange // Twitter: @bilange
*
* I needed a quick diagnostic tool to troubleshoot a specific issue with my
* Ubuntu installation at home: apparently after a long, sustained TCP
* connection (thing SSH or VPN), somehow the system throws its hands in the
* air and refuses to talk to the same HOST, until I reboot my PC.
*
* I basically needed to know when a remote host would stop responding to my
* requests. Creating a Go program could be seen as overkill, but I wanted to
@bilange
bilange / exactchange.go
Created October 24, 2012 16:52
Exact change calculation
/*
* Exact change calculator (recursion learning exercice)
* Eric Belanger // github.com/bilange // Twitter: @bilange
*
* This code has been build to demonstrate how to do recursion, for people who
* wants to know Go better via code examples. This code has been HIGHLY
* documented to help the learning process. Feel free to fork, base upon or
* otherwise copy this code! :-)
*
* This MAY be NOT the only way to do this task, so feel free to experiment!