Skip to content

Instantly share code, notes, and snippets.

View mshr-h's full-sized avatar

Masahiro Hiramori mshr-h

View GitHub Profile
import json
key = "fdksaljvdispoajhp89vdsa8sFDSpvdsa"
def flightsearch(origin, destination, depart_data):
url = "https://www.googleapis.com/qpxExpress/v1/trips/search?key=%s" % key
code = {
from math import tanh
from pysqlite2 import dbapi2 as sqlite
class searchnet:
def __init__(self, dbname):
self.con = sqlite.connect(dbname)
def __del__(self):
package main
import (
"fmt"
"image"
"image/png"
"log"
"os"
)
package main
import (
"fmt"
"image"
"image/color"
"image/png"
"log"
"os"
)
@mshr-h
mshr-h / lszip.go
Created January 8, 2015 08:57
Print the contents of a zip archive.
package main
import (
"archive/zip"
"fmt"
"os"
)
func main() {
var r *zip.ReadCloser