Skip to content

Instantly share code, notes, and snippets.

@davidvthecoder
davidvthecoder / round.go
Created April 9, 2014 19:58
Arggh Golang does not include a round function in the standard math package. So I wrote a quick one.
package main
import (
"log"
"math"
)
func Round(val float64, roundOn float64, places int ) (newVal float64) {
var round float64
pow := math.Pow(10, float64(places))
package main
import (
"fmt"
"log"
"flag"
"time"
@STAR-ZERO
STAR-ZERO / memo.md
Last active December 14, 2016 08:55
nginx + unicorn + capistrano設定

nginx + unicorn + capistrano設定メモ

Nginx

起動

$ nginx

停止