サクサク読めて、アプリ限定の機能も多数!
ある DataBase のテーブルに対し id のリスト (1、3、5、7、9、11) を持つすべてのレコードを削除する方法を調べました。 DELETE FROM table WHERE id IN (1, 3, 5, 7, 9, 11)
mermaid で XYChart を描いてみたのでそのとき、調べたことをここにメモします。 XYChart マニュアル mermaid.js.org デフォルト Write ```mermaid xychart-beta title "Sales Revenue" x-axis [jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec] y-axis "Revenue (in $)" 4000 --> 11000 bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000] line [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000
折爪岳に行ってヒメホタルをみました。 途中「オドデ様の滝」という場所を通りました。 今回は錫杖の泉近くの駐車場に車を停めてホタルを探しました。 明るいうちにあたりを散策しました。 iphoneで撮影してみたけど、うまく撮れませんでした。 www.youtube.com 参考 oritsumedake.com
makefile で notdir を使ってみたのでその時のメモをここに残します。 notdir はディレクトリ以外を抽出します。 コード $ cat Makefile VAR := ../a/b/c/test.txt .PHONY: all all: @echo "$(notdir $(VAR))" 実行結果 「../a/b/c/test.txt」が「test.txt」と表示されます。 $ make test.txt
Flask で render_template を使ってみたので、ここにメモを残します。 サンプルコード python html メモ サンプルコード python from flask import Flask, render_template app = Flask(__name__) @app.route('/index') def index(): foo = "sample 01" bar = "sample 02" return render_template('index.html', foo=foo, bar=bar) if __name__ == '__main__': app.run() html 「 {{ xxx }} 」で渡した変数を囲うと変数の中身が表示できます。 <html> <head> </head> <body> this is the index pag
pythonを使ってs3のファイルを扱う方法がわからなかったのでここに調査内容をまとめました。 メモ サンプルコード アップロード ファイル確認 ファイルダウンロード ファイル削除 メモ aws_access_key_id / aws_secret_access_key はマスク sample.txt は事前にtouchコマンドで作成 サンプルコード アップロード import boto3 s3 = boto3.resource( 's3', aws_access_key_id='xxxxxxxxxxxxxxxxxxxxx', aws_secret_access_key='xxxxxxxxxxxxxxxxxxxxx', ) bucket_name = 'sample_bucket_name' file_name = 'sample.txt' bucket = s3.Bucket(bucke
シーケンス図のみかたがわからなかったので調べてみました。 Opt option 条件が真である場合に被演算子が実行される。 Alt alternative 条件が真である被演算子が実行される。 Loop loop 特定の期間で命令をループする。 Break break 条件が真または偽の場合はループが壊れ次の命令が実行される。 Ref reference 外部参照
ランキング
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く