Skip to content

Instantly share code, notes, and snippets.

View suzuken's full-sized avatar

Kenta SUZUKI suzuken

View GitHub Profile
package main
import (
"bufio"
"flag"
"fmt"
"log"
"net"
"os"
"strings"
<?php
function sum() {
$sum = 0;
foreach (func_get_args() as $arg) {
$sum += $arg;
}
return $sum;
}
printf("%d\n", sum(1, 2));
@suzuken
suzuken / e.php
Last active September 21, 2016 06:01
<?php
function main() {
kuke();
}
function kuke() {
hoge();
}
<?php
function reduce($carry, $item) {
$carry -= $item;
return $carry;
}
function multi($carry, $item) {
$carry *= $item;
return $carry;
//line parser.go.y:2
// headers
package main
import __yyfmt__ "fmt"
//line parser.go.y:3
type Expression interface{}
package main
import (
"fmt"
"math/rand"
)
func main() {
list := rand.Perm(23)
for k, i := range list {
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
package main
import "flag"
import "fmt"
func main() {
var (
s = flag.String("s", "s-tanno", "who is..")
)
flag.Parse()

comment

package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"golang.org/x/net/context"