Skip to content

Instantly share code, notes, and snippets.

View flatfisher's full-sized avatar
🎣
Fishing

Kyohei Tsuda flatfisher

🎣
Fishing
  • MIXI, Inc.
  • Japan
View GitHub Profile
@flatfisher
flatfisher / file1.txt
Last active May 20, 2019 02:06
TypeScript で Google Cloud Functions やりたい人向けのテンプレートをつくった ref: https://qiita.com/flatfisher/items/c3656c13d01503e9c501
$ npm run lint
@flatfisher
flatfisher / file1.txt
Last active December 9, 2018 14:06
Slackでよく使われる単語をまとめてみた ref: https://qiita.com/flatfisher/items/4000f54e15e471f83def
$ brew insatll mecab mecab-ipadic
$ which mecab-config
/usr/local/bin/mecab-config //こんな感じになればOK
// 環境変数を作成
$ export CGO_LDFLAGS="`mecab-config --libs`"
$ export CGO_CFLAGS="-I`mecab-config --inc-dir`"
@flatfisher
flatfisher / .env.yaml
Last active October 14, 2018 12:02
Cloud Functions で環境変数を使う ref: https://qiita.com/flatfisher/items/e10a8e3f5dad2b2b4e71
PROJECT: hogehoge
KEY: fugafuga
@flatfisher
flatfisher / file0.txt
Last active May 24, 2021 11:26
ローカルマシン からCloud Shellに接続(ssh, scp, mount)する ref: https://qiita.com/flatfisher/items/1d6ffe94787b77e3f2ee
$ gcloud alpha cloud-shell ssh
API [cloudshell.googleapis.com] not enabled on project
Would you like to enable and retry (this will take a
few minutes)? (y/N)? y //Cloud Shell API をONにする
your_account_name@cloudshell:~ (project_id)$ //ssh接続できた
@flatfisher
flatfisher / file0.txt
Last active September 27, 2018 12:39
yaml でテストが書ける Tavernというテストツールがすごい ref: https://qiita.com/flatfisher/items/d8377711a30af1e9856b
$ pip install tavern[pytest]
@flatfisher
flatfisher / dogrun.md
Created September 25, 2018 10:27
Dogrun Serverless / Firebase 参加メモ

Dogrun

Dogrunと呼ばれるFireside chatイベントがCloud Next の裏イベントでありました。 https://gcpug-tokyo.connpass.com/event/95560/

来日しているProduct Manager、Developer Advocate、実際にProductを作っているSoftware Engineerの方々とFireside Chatを行いました。

普段気になっていることや裏話が聞けて楽しかったです。

各トピック

私は Serverless / Firebase 部屋に行きました。他の部屋で発表された内容は後日GCPUGで発表される予定?です。

@flatfisher
flatfisher / index.ts
Created June 18, 2018 12:08
Firebase functions 環境変数を取得
import * as functions from 'firebase-functions';
export const helloWorld = functions.https.onRequest((request, response) => {
const key = `${functions.config().api.key}`
const urls = `${functions.config().api.urls}`
response.send("Hello from Firebase!");
});
@flatfisher
flatfisher / file0.txt
Created May 13, 2018 06:01
Google Sign-In for the Assistantを試してみた #io18jp ref: https://qiita.com/flatfisher/items/4278bab47eaa7e8d5971
$ firebase init
? What language would you like to use to write Cloud Functions? JavaScript
? Do you want to use ESLint to catch probable bugs and enforce style? No
✔ Wrote functions/package.json
✔ Wrote functions/index.js
? Do you want to install dependencies with npm now? Yes
actions.capability.SCREEN_OUTPUT
@flatfisher
flatfisher / TextResponse
Created December 13, 2017 00:52
ピカチュウと会話する系のアシスタントを作ってみる #dialogflow ref: https://qiita.com/flatfisher/items/f15e6341b7af1d299d98
<speak>
<audio src="https://YOUR_AUDIO_URL"></audio> .
</speak>