SLACK_URL=http://XXX
end: alp slow
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
diff --git a/research/object_detection/dataset_tools/create_oid_tf_record.py b/research/object_detection/dataset_tools/create_oid_tf_record.py | |
index 26d9699c..458037a1 100644 | |
--- a/research/object_detection/dataset_tools/create_oid_tf_record.py | |
+++ b/research/object_detection/dataset_tools/create_oid_tf_record.py | |
@@ -103,7 +103,7 @@ def main(_): | |
image_id, image_annotations = image_data | |
# In OID image file names are formed by appending ".jpg" to the image ID. | |
image_path = os.path.join(FLAGS.input_images_directory, image_id + '.jpg') | |
- with tf.gfile.Open(image_path) as image_file: | |
+ with tf.gfile.Open(image_path, 'rb') as image_file: |
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 asyncio | |
import time | |
import typing | |
async def say(t: int, word): | |
await asyncio.sleep(t) | |
print(word) | |
return word |
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 logging | |
import time | |
from functools import wraps | |
from flask import Flask, Response | |
app = Flask(__name__) | |
def stop_watch(func): |
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
work: w1 w2 w3 | |
w1: | |
sleep 5 | |
w2: | |
sleep 6 | |
w3: | |
sleep 7 |
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
work: w1 w2 w3 | |
w1: | |
sleep 5 | |
w2: | |
sleep 6 | |
w3: | |
sleep 7 |
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
def averager(): | |
total = 0 | |
count = 0 | |
average = 0 | |
while True: | |
term = yield average | |
total += term | |
count += 1 | |
average = total / count |
mkdir workspace
mkdir src
sudo emacs /etc/systemd/system/notebook.service
...
- 水道停止/申し込み
- ガス停止/申し込み
- 電気停止/申し込み
- インターネット停止/申し込み
- 郵便物の転送申請
- クレジットカード類の住所変更
- 銀行の住所変更
- 住民票の移動
- 転出届(市区町村が変わる場合)
- 転入届
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
from flask import Flask | |
application = Flask(__name__) | |
@application.route("/") | |
def hello(): | |
return "Hello World!" |
NewerOlder