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 os | |
import shutil | |
import urllib.parse | |
REPORT_DIR = "scatter/pipeline/outputs" | |
os.makedirs("build", exist_ok=True) | |
links = [] | |
for target in os.listdir(REPORT_DIR): |
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 18a3164dd9f51e97d9e01d9ea7f79cef7bc9a426 Mon Sep 17 00:00:00 2001 | |
From: NISHIO Hirokazu <nishio.hirokazu@gmail.com> | |
Date: Sat, 15 Jun 2024 10:55:22 +0900 | |
Subject: [PATCH] Make UI Japanese | |
--- | |
.../hooks/useTranslatorAndReplacements.ts | 68 ++++++++++++++++--- | |
1 file changed, 59 insertions(+), 9 deletions(-) | |
diff --git a/scatter/next-app/hooks/useTranslatorAndReplacements.ts b/scatter/next-app/hooks/useTranslatorAndReplacements.ts |
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
## 研究ノート | |
### 英国の週休3日制実験 | |
英国で週休3日制の大規模実験が行われ、その結果、参加企業のほとんどが週休2日に戻らない方針を示しました。売上増や離職減、バーンアウト低下などが決め手となったようです。これは、労働時間の短縮が生産性や社員のウェルビーイングに良い影響を与える可能性を示しています。しかし、この結果をどのように解釈し、他の国や地域、業種に適用するかは慎重に考える必要があります。 | |
### 見やすい条文の作成 | |
条文の表示方法について、iPadでズームしたときにズーム後の画面幅で文字列を折り返すことや、Facebookなどに投稿したときに適切に条文がプレビューに表示されることが求められています。これは、法律文書のアクセシビリティを高めるための重要な要素であり、ユーザー体験を向上させるためには、これらの要素を考慮に入れる必要があります。 | |
### 資本家と労働者の対立構図 | |
資本家と労働者の対立構図は、生産性向上の手段が資本による生産設備の購入だった時代に成立しました。しかし、現在では知識の重要性が高まり、この対立構図は時代遅れとなっています。これは、思考の枠を更新することの難しさを示しています。新たな視点やアイデアを生み出すためには、既存の枠組みを超えることが必要です。 |
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
# prob. to buy province | |
1111111eee2SVS | |
6% | |
1111111eee2SVSVS | |
15% | |
1111111eee2SVSVSVS | |
26% | |
1111111eee2SVSVSVSVS | |
38% |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
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
エリア,発電事業者,発電所コード,発電所名,発電形式,ユニット名,認可出力,停止区分,種別,低下量,停止日時,復旧見通し,復旧予定日,停止原因,最終更新日時, | |
"東京","ENEOS株式会社","4009331905","根岸 ガス化複合発電所","火力(石油)","単独","431450","計画外停止","停止・その他","","2022/03/16 23:45","なし","","地震の影響による","2022/03/17 00:49", | |
"東北","仙台パワーステーション株式会社","2K210","仙台パワーステーション","火力(石炭)","単独","112000","計画外停止","停止・その他","","2022/03/16 23:37","なし","","宮城県沖6強地震発生に伴いMFT動作","2022/03/17 00:36", | |
"東北","東北電力株式会社","2U308","東北電力原町火力発電所1号機","火力(石炭)","1号機","1000000","計画外停止","停止・その他","","2022/03/16 23:37","なし","","設備不具合","2022/03/17 00:18", | |
"東北","東北電力株式会社","2K219","東北電力新仙台火力発電所3号系列","火力(ガス)","3-2号機","523000","計画外停止","停止・その他","","2022/03/16 23:37","なし","","設備不具合","2022/03/17 00:17", | |
"東北","東北電力株式会社","2K219","東北電力新仙台火力発電所3号系列","火力(ガス)","3-1号機","523000","計画外停止","停止・その他","","2022/03/16 23:37","なし","","設備不具合","2022/03/17 00:16", | |
"東京","鹿島共同火力株式会社","60413","鹿島共同発電所","火力(ガス)","5号機","300000","計画外停止","停止・燃料制約","","2022/03/17 00:30","なし","","燃料調整のため","2022/03/17 00:09", | |
"東京","日立造船株式会社","5012330317","日立造船株式会社茨城工場第一発電所","火力(ガス)","3号機","112300","計画 |
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 random import random | |
from datetime import datetime | |
from mcpi import minecraft | |
from time import sleep | |
HOST = "PUT YOUR HOST HERE" | |
PORT = 4711 | |
WOOL = 35 | |
GLASS = 20 | |
AIR = 0 |
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 time import perf_counter | |
from math import log | |
from collections import Counter | |
words = open("wordle_dictionary1.txt", "r").read().split() | |
words += open("wordle_dictionary2.txt", "r").read().split() | |
def test(trial, answer): | |
ret = [] | |
for i, c in enumerate(trial): |
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
test("io-ts, use implemented type", () => { | |
const obj_string = JSON.parse(`"hello"`); // is any | |
const obj_number = JSON.parse(`123`); // is any | |
expect(isRight(t.string.decode(obj_string))).toBeTruthy(); | |
expect(isRight(t.string.decode(obj_number))).toBeFalsy(); | |
const ret = t.string.decode(obj_string); | |
let string_value: string; | |
if (isRight(ret)) { |
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
const TestApp = () => { | |
console.log("render TestApp"); | |
return ( | |
<div> | |
<Comp1 /> | |
<Comp2 /> | |
</div> | |
); | |
}; | |
const Comp1 = () => { |
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
# included from libs/crt.py | |
""" | |
Chinese Remainder Theorem | |
""" | |
# included from libs/extended_euclidean.py | |
""" | |
Extended Euclidean algorithm | |
""" |
NewerOlder