Skip to content

Instantly share code, notes, and snippets.

View fclairamb's full-sized avatar
🤖

Florent Clairambault fclairamb

🤖
View GitHub Profile
@maliqq
maliqq / broker.go
Last active November 22, 2018 08:53
Golang message broker
package protocol
import (
"fmt"
"log"
)
// pubsub
type Broker struct {
Send map[string]*chan *Message
@fclairamb
fclairamb / Makefile
Last active December 15, 2015 17:48
This is a simple skeleton to build C/C++ projects without complex setup.This can be useful if you receive a project with a lot of code source and don't want to provide an IDE generated Makefile or use automake.It obviously doesn't support headers dependencies. Changing elements within a struct or a class require a clean & build.
ifeq "$(PREFIX)" ""
PREFIX=/usr
endif
ifeq "$(DESTDIR)" ""
DESTDIR=/
endif