Skip to content

Instantly share code, notes, and snippets.

View regonn's full-sized avatar
🍵
Tea.

regonn regonn

🍵
Tea.
View GitHub Profile
# terraform plan時にzipファイルを作成
data "archive_file" "function_archive" {
type = "zip"
source_dir = "../src" # main.pyやrequirement.txtが入ってるディレクトリ
output_path = "../zip/functions.zip" # zipファイルの出力先
}
# zipファイルをアップロードするバケット
resource "google_storage_bucket" "zip_bucket" {
name = "zip-bucket-${var.gcp_project_id}"
#### requirements.txt
# google-cloud-vision==2.2.0
####
from google.cloud import vision
import os
vision_client = vision.ImageAnnotatorClient()
project_id = os.environ["GCP_PROJECT"]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@regonn
regonn / onetapbuy_jp.csv
Created December 19, 2020 08:07
OneTapBUY証券での採用銘柄(2020/12/19時点)
ticker name
1928 Sekisui House, Ltd.
2229 Calbee, Inc.
2269 Meiji Holdings Co., Ltd.
2413 M3, Inc.
2432 DeNA Co., Ltd.
2502 Asahi Group Holdings, Ltd.
2503 Kirin Holdings Company, Limited
2670 ABC-Mart, Inc.
2801 Kikkoman Corporation
afa3a7697e962f7a60ec4a448de32111d3a0316a7bf112a82f30e0da2b898baf0fd7d157de8ade10c6ce2ea328df1f913e1cb6fc2613070cb9afe98a1f3f4841
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pydef mutable struct MLP <: Chain
function __init__(self, n_mid_units=100, n_out=10)
pybuiltin(:super)(MLP, self)[:__init__]()
@pywith self.init_scope() begin
self.l1 = L.Linear(py"None", n_mid_units)
self.l2 = L.Linear(py"None", n_mid_units)
self.l3 = L.Linear(py"None", n_out)
end
end
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.