Skip to content

Instantly share code, notes, and snippets.

View mertakman's full-sized avatar
🎯
Focusing

Mert Akman mertakman

🎯
Focusing
View GitHub Profile
@mertakman
mertakman / main.go
Created May 12, 2021 14:11
UnixNano Collision
/*
UnixNano method has time-sensitivity between 40-500 nanoseconds.
Likely to produce the same output for few simultaneous goroutines within
the same period. Do not rely on UnixNano result being unique.
*/
package main
import (
"fmt"
"sync"
@mertakman
mertakman / flatten.go
Created April 11, 2019 13:34
Golang slice flatter
package flatten
import (
"errors"
"fmt"
)
func Flatten(arr interface{}) ([]int, error) {
return doFlatten([]int{}, arr)
}
package main
import (
"log"
"github.com/zeromq/goczmq"
)
func main() {
// Bir router oluşturdum ve 5555 i listen ettirdim