Skip to content

Instantly share code, notes, and snippets.

View velzend's full-sized avatar
🥚
Let me eggsecute your code...

Dennis van Velzen velzend

🥚
Let me eggsecute your code...
View GitHub Profile
@aras-p
aras-p / preprocessor_fun.h
Last active July 16, 2024 02:50
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@ibraheem4
ibraheem4 / postgres-brew.md
Last active July 18, 2024 00:18 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@lamarmarshall
lamarmarshall / callback.go
Created October 25, 2017 04:56
go callback, function as argument
package main
import "fmt"
func addName(name string, callback func(string)) {
callback(name)
}
func main() {
addName("lamar", func(nm string) {