こちらの記事でバックアップ自体はgcloudコマンドで実行できることがわかりました。
本記事はこれを定期実行する為の手順を説明します。
続きを読むプログラマのためのGoogle Cloud Platform入門 サービスの全体像からクラウドネイティブアプリケーション構築まで
$ brew cask install google-cloud-sdk
※色々省略しています。
struct Hoge: EntityProtcol, Codable { let uid: String let hogeName: String let firstHoges1: [String: String?] let secondHoges1: [String: String?] let thirdHoges1: [String: String?] init(uid: String, hogeName: String, firstHoges1: [String: String?], secondHoges1: [String: String?], thirdHoges1: [String: String?]) { self.uid = uid self.hogeName = hogeName self.firstHoges1 = firstHoges1 self.secondHoges1 = secondHoges1 self.thirdHoges1 = thirdHoges1 } static func deserialize<T: EntityProtcol>(document: [String: Any]) -> T { let json = try! JSONSerialization.data(withJSONObject: document, options: []) let decoder = JSONDecoder() decoder.keyDecodingStrategy = .convertFromSnakeCase return try! decoder.decode(JSSchoolExamEntity.self, from: json) as! T } }続きを読む
npm install -g react-native-cli
/usr/local/Cellar/node/8.9.1/bin/react-native -> /usr/local/Cellar/node/8.9.1/lib/node_modules/react-native-cli/index.js
+ react-native-cli@2.0.1
updated 1 package in 0.755s
CLIのインストールまではできたが、
react-native init sampleApp
react-native: command not found
と何故かない...
おそらくこれ。
export PATH="/usr/local/Cellar/node/8.9.1/bin:$PATH"
Pathが何故かズレてたので↑をすると完了。
実践Expo React NativeとFirebaseで、SNSアプリを最速ストアリリース! (NextPublishing)
アプリ内でイメージを取得して、それをFirebase Cloud Storageに保存しておき適宜取得するようなアプリを作っていましたら、
Failed to allocate a xxxxxx byte allocation with xxxxxx free bytes and 10MB until OOM
のエラーが発生しました。
続きを読むFirebase Cloud Storageに画像をアップロードした時の備忘録
続きを読む$ sudo brew install go
$ go version
-> go version go1.11 darwin/amd64
$ go get github.com/PuerkitoBio/goquery
package main import "fmt" func main(){ fmt.Printf("Hello, world\n") }
$ go run hello.go
Hello, world
とターミナルに表示されるはず。
Goプログラミング実践入門 標準ライブラリでゼロからWebアプリを作る impress top gearシリーズ