Skip to content

Instantly share code, notes, and snippets.

akira093

Block or report user

Report or block akira093

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@akira093
akira093 / homedir.go
Created Apr 25, 2018
In golang, there are two way of joining filepath.
View homedir.go
package main
import (
"fmt"
"os/user"
"path"
"path/filepath"
)
var dbPath = "/.config/go-wol/bolt.db"
View json_submit.html
<html>
<head>
<title>
test
</title>
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<meta http-equiv="Access-Control-Allow-Headers" content="*">
<meta http-equiv="Access-Control-Allow-Methods" content="GET">
</head>
<body>
View main.go
package main
import (
"code.google.com/p/plotinum/plot"
"code.google.com/p/plotinum/plotter"
"code.google.com/p/plotinum/plotutil"
"code.google.com/p/plotinum/vg"
"fmt"
"math"
)
View pool_chunk.py
# coding:utf8
import multiprocessing
import time
"""
multiprocessing.Poolのchunkってどんな感じよー?
"""
def square(n):
View fileServe.go
package main
import (
"log"
"net/http"
"os"
"path"
)
func main() {
View greeting.go
package main
import (
"database/sql"
"fmt"
"net/http"
"github.com/go-martini/martini"
_ "github.com/mattn/go-sqlite3"
View temp.go
package main
import (
"fmt"
"github.com/ChimeraCoder/anaconda"
"math"
"net/url"
)
func reverseTWs(tws []anaconda.Tweet) []anaconda.Tweet {
View favbomb.go
package main
import (
"errors"
"flag"
"fmt"
"github.com/ChimeraCoder/anaconda"
"net/url"
"runtime"
"sync"
View happy.rb
class TMT
def happy?
true
end
end
tmt = TMT.new
p tmt.happy?
View go_png.go
package main
import (
"image"
"image/color"
"image/png"
"math"
"os"
)
You can’t perform that action at this time.