tag |
---|
personal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arb-dir: lib/l10n | |
template-arb-file: app_en.arb | |
# `synthetic-package: false` に設定することで、ローカライズコードが特定のディレクトリに生成され、 | |
# 生成されたコードを使ってローカライズされた文字列にアクセスできるようになります。 | |
synthetic-package: false | |
output-dir: lib/localization/intl | |
output-localization-file: app_localizations.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import shutil | |
import os | |
import sys | |
import yaml | |
def ensure_directories(zenn_articles_dir, zenn_images_dir): | |
"""必要なディレクトリが存在するか確認し、なければ作成する。""" | |
os.makedirs(zenn_articles_dir, exist_ok=True) | |
os.makedirs(zenn_images_dir, exist_ok=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Attach to Functions", | |
"port": 9229 | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as admin from "firebase-admin" | |
import * as functions from "firebase-functions" | |
import * as logger from "firebase-functions/logger" | |
import * as firestore from "@google-cloud/firestore" | |
// This file: https://gist.github.com/1206yaya/06cb8603ffd831f78ef572df7474e008 | |
// const SECRET_NAME = defineString('SECRET_NAME'); | |
// https://firebase.google.com/docs/functions/typescript | |
export const helloWorld = functions.https.onRequest((request, response) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
/// Container: デフォルトでは幅や高さを持たず、子要素の装飾ができる。 | |
/// Column: childrenを垂直に配置。 | |
/// Wrap: childrenにフィット。 | |
/// Center: widthFactorを指定しなければ全体に広がる | |
/// | |
void main() { | |
runApp(const MyApp()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/questions/71554829/textfield-in-modal | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File Location /etc/systemd/system/SpringbootService.service | |
[Unit] | |
Description=SpringbootService | |
[Service] | |
Type=simple | |
WorkingDirectory=/www/api | |
ExecStart=/www/api/exec.sh outside | |
ExecStop=/bin/kill -s QUIT $MAINPID | |
Restart=on-failure | |
User=root |
NewerOlder