Skip to content

Instantly share code, notes, and snippets.

View samuelyao314's full-sized avatar

samuelyao314 samuelyao314

View GitHub Profile
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
@samuelyao314
samuelyao314 / snowflake.go
Created July 7, 2020 11:29 — forked from asyncins/snowflake.go
[snowflake-go]
package main
import (
"errors"
"fmt"
"sync"
"time"
)
const (