Skip to content

Instantly share code, notes, and snippets.

View tfrcm's full-sized avatar
🌈
Working from home

Takuya Fujimoto tfrcm

🌈
Working from home
View GitHub Profile
@tfrcm
tfrcm / file0.txt
Last active August 21, 2020 07:49
他言語プログラマがgolangの基本を押さえる為のまとめ ref: https://qiita.com/tfrcm/items/e2a3d7ce7ab8868e37f7
# ビルド
$ go build
# ビルド + 実行
$ go run
@tfrcm
tfrcm / file0.txt
Last active December 6, 2017 03:54
SketchのシンボルをAtomicDesignで設計する。 ref: https://qiita.com/gcfuji/items/51b8c318683fa5d0de0d
デバイスの名称 / レベル / コンポーネントの種類 / コンポーネントの名称 (または属しているコンポーネントの名称) _ 状態
@tfrcm
tfrcm / file0.txt
Created October 14, 2017 07:59
AWS Lambdaのポイントメモ ref: http://qiita.com/gcfuji/items/5a2da35dca572e213f8f
* 同期呼び出し
* ストリームベース
* Kinesis Streams
* DynamoDB Streams
* それ以外
* Cognito
* Echo
* Lex
* API Gateway
* 非同期呼び出し
docker-compose start web-container
@tfrcm
tfrcm / file0.txt
Last active June 28, 2017 04:25
webpackerでRailsにReactを導入するまでの手順書 ref: http://qiita.com/gcfuji/items/8b56fd1855a891734204
$ rails new my_app
@tfrcm
tfrcm / file0.txt
Created June 28, 2017 03:10
Rails5.1のリクエスト・レスポンス処理まとめ ref: http://qiita.com/gcfuji/items/e3022f1508f1b030baca
render plain: params[:id]
@tfrcm
tfrcm / file0.js
Last active May 16, 2017 04:42
Promise再入門② ~async/await編~ ref: http://qiita.com/gcfuji/items/47d310ae795aa9131c14
const func = async () => {
return 23;
};
@tfrcm
tfrcm / file0.js
Last active January 24, 2019 15:35
Promise再入門① ~Promise基本編~ ref: https://qiita.com/tfrcm/items/1dfe4265c36bea903ab3
const promise = new Promise((resolve, reject) => {
window.setTimeout(() => {
resolve('OK');
}, 2000);
});
promise
.then((result) => {
console.log(result);
require 'active_record'
require 'pp'
require 'logger'
Time.zone_default = Time.find_zone! 'Tokyo'
ActiveRecord::Base.default_timezone = :local
ActiveRecord::Base.logger = Logger.new(STDOUT)
ActiveRecord::Base.establish_connection(
"adapter" => "sqlite3",
@tfrcm
tfrcm / data.yml
Last active December 27, 2017 06:53
YAML 基本記法まとめ ref: https://qiita.com/gcfuji/items/5f8e4c5795ce41b214d1
---
- a
- b
- c
---
- 1
- 2