Skip to content

Instantly share code, notes, and snippets.

View onadmeister's full-sized avatar
🏠
Working from home

Muhammad Rienaldi onadmeister

🏠
Working from home
View GitHub Profile
<html>
<head>
<title>Contoh API</title>
</head>
<body>
<div id="result">
</div>
<script>
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello World!")
}
@onadmeister
onadmeister / math.go
Last active May 8, 2018 01:02
math package for tutorial
package math
func Average(b []float64) float64 {
total := float64(0)
for _, x := range b {
total += x
}
return total / float64(len(b))
}
@onadmeister
onadmeister / main.go
Last active May 8, 2018 01:05
package main untuk create package tutorial
package main
import (
"fmt"
"latihan-package/math"
)
func main() {
b := []float64{1,2,3,4}
sum := math.Sum(b)
@onadmeister
onadmeister / hosts
Created December 28, 2017 10:04 — forked from mul14/00_etc-hosts.md
/etc/hosts for Vimeo and Reddit
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
151.101.0.217 player.vimeo.com
151.101.192.249 vimeo-hp-videos.global.ssl.fastly.net
151.101.2.109 f.vimeocdn.com
151.101.192.217 vimeo.com
151.101.66.109 i.vimeocdn.com
151.101.64.217 developer.vimeo.com