Skip to content

Instantly share code, notes, and snippets.

View Yasuhisa's full-sized avatar
🏠
Work from home

Yasuhisa Arakawa Yasuhisa

🏠
Work from home
View GitHub Profile
@Yasuhisa
Yasuhisa / gist:9487c426c6c4fc53a5439af2a78fe037
Last active May 22, 2021 05:19
Google Apps Script で Trello のリストからカードをインポートする系のスクリプト
const scriptProp = PropertiesService.getScriptProperties().getProperties();
const KEY = scriptProp.TRELLO_API_KEY;
const TOKEN = scriptProp.TRELLO_TOKEN;
const LISTID = scriptProp.TRELLO_LIST_ID;
/**
* Trello カード
*/
type Card = {
id: string;
@Yasuhisa
Yasuhisa / main.go
Created February 11, 2019 13:36
AssumeRole Sample using AWS SDK for Go.
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/credentials/stscreds"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2"
@Yasuhisa
Yasuhisa / clash-royale-record-clan-war-log.py
Created January 5, 2019 08:20
Python Code: Record clan war log to Google SpreadSheet from Clash Royale API.
import requests
import json
from googleapiclient.discovery import build
from httplib2 import Http
from oauth2client import file, client, tools
TOKEN = '{Your Clash Royale API Key}' # クラロワ API キー
URL = 'https://api.clashroyale.com/v1'
SCOPES = 'https://www.googleapis.com/auth/spreadsheets' # read/write