Skip to content

Instantly share code, notes, and snippets.

View hogedigo's full-sized avatar

Daigo Ikeda hogedigo

View GitHub Profile
@hogedigo
hogedigo / future_sample.go
Created February 21, 2014 00:54
future sample
package main
import "fmt"
type task struct {
url string
result chan string
}
func main() {
@hogedigo
hogedigo / index.js
Created February 20, 2014 00:19
Google Spreadsheets APIでGoogleアカウントユーザーのスプレッドシートからデータを取得する。
var fs = require("fs");
var readline = require("readline");
var gapi = require("googleapis");
var CLIENT_ID = "Your client id here";
var CLIENT_SECRET = "Your client secert here";
var REDIRECT_URL = "Your redirect url here";
var SCOPE = "https://spreadsheets.google.com/feeds";
var TOKENS_FILEPATH = "./tokens.json";