Skip to content

Instantly share code, notes, and snippets.

View amullins83's full-sized avatar

Austin Mullins amullins83

  • Milsoft Utility Solutions
  • Abilene, TX
View GitHub Profile
@amullins83
amullins83 / debounce.go
Last active August 29, 2015 14:04
Generic Debounce in Go
package main
import (
"fmt"
"time"
)
func debounce(interval time.Duration, f func(argList []interface{})) func([]interface{}) {
timer := &time.Timer{}
return func(argList []interface{}) {
@amullins83
amullins83 / Polymorphism in C.md
Last active June 8, 2021 18:51
Polymorphism in C

#Polymorphism in C

##Summary

C is the lengua franca of embedded development. It is incredibly flexible, with built-in language features for imperative, functional, and object-oriented programming. However, getting inheritance to work effectively in standard C requires a little boiler-plate code, of which I've provided an example here.