Skip to content

Instantly share code, notes, and snippets.

@esimov
esimov / prime_goroutine.go
Last active September 26, 2018 02:55
Filter prime numbers in Go lang concurently using goroutines
package main
import "fmt"
// Generate the input values passing through the go channel pipe
func generate(ch chan int) {
go func() {
for i := 2; ; i++ {
ch <- i
}
package main
import (
"encoding/json"
"fmt"
)
var jsonStr = []byte(`
{
"things": [
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 7, 2025 23:53
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname