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
# | |
# Automatically generated file; DO NOT EDIT. | |
# OpenWrt Configuration | |
# | |
CONFIG_MODULES=y | |
CONFIG_HAVE_DOT_CONFIG=y | |
# CONFIG_TARGET_sunxi is not set | |
# CONFIG_TARGET_apm821xx is not set | |
# CONFIG_TARGET_ath25 is not set | |
# CONFIG_TARGET_ar71xx is not set |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# OpenWrt Configuration | |
# | |
CONFIG_MODULES=y | |
CONFIG_HAVE_DOT_CONFIG=y | |
# CONFIG_TARGET_sunxi is not set | |
# CONFIG_TARGET_apm821xx is not set | |
# CONFIG_TARGET_ath25 is not set | |
# CONFIG_TARGET_ar71xx is not set |
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
# -*- coding: utf-8 -*- | |
# This is a POC code to generate IOTA transaction and bundle | |
# | |
# Note: You will need to implement getTransactionsToApprove | |
# | |
import iota | |
import pearldiver |
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
# 83e1fce17abb51139e533cd0891e087ff4bbac64 | |
# Automatically generated file; DO NOT EDIT. | |
# OpenWrt Configuration | |
# | |
CONFIG_MODULES=y | |
CONFIG_HAVE_DOT_CONFIG=y | |
# CONFIG_TARGET_sunxi is not set | |
# CONFIG_TARGET_apm821xx is not set | |
# CONFIG_TARGET_ath25 is not set | |
# CONFIG_TARGET_ar71xx is not set |
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
# Original | |
from googletrans import Translator | |
translator = Translator() | |
text = ('I love you') | |
languages = ['fr', 'es', 'it', 'de', 'pl', 'ru', 'cs', 'hu', 'eu', 'is', 'lv', 'ja', 'ko'] | |
for x in range(0, len(languages)): | |
translated = translator.translate(text, src='en', dest=languages[x]) | |
print(translated.text) |
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 googletrans import Translator | |
tr = Translator() | |
persons = ['I', 'You', 'He', 'We', 'They'] | |
langs = ['fr', 'es', 'it', 'jp'] | |
for person in persons: | |
print(f'=== Person: {person} ===') | |
for lang in langs: | |
result = tr.translate(f'{person} love', src='en', dest=lang) |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<alias> | |
<family>serif</family> | |
<prefer> | |
<family>Noto Serif CJK TC</family> | |
<family>Noto Serif CJK JP</family> | |
<family>Noto Serif CJK SC</family> | |
</prefer> |
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 sys | |
def read_sudoku(n): | |
sudoku = [] | |
for _ in range(n): | |
sudoku.append(list(map(int, sys.stdin.readline().strip().split(' ')))) | |
return sudoku |
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
1. Hakkert, A. S., Braimaister, L., & Van Schagen, I. (2002). The uses of exposure and risk in road safety studies (Vol. 2002, No. 12). SWOV Institute for Road Safety. | |
網址:https://www.swov.nl/sites/default/files/publicaties/rapport/r-2002-12.pdf | |
功能:pp.25, 不可能讓不同種類的用路人風險相同,不符合實際情況以及經濟成本。 | |
「實際上,不同用路人型態會有不同的風險,想要將安全風險降到「相等」是幾乎不可行、也無法以合理的經濟成本達成的事情5。機車就是會有比起汽車更高的風險、行人在車禍中比起汽車也會有更高的死亡風險、市區道路有比高速公路更高的車禍率等等。而Hakkert在2002年的研究便已指出,「我們該做的事,是在可行(不論是經濟成本或是方法)的範圍內,採取讓該個群體風險降低的措施」。至於這措施是什麼?至少禁絕絕非好主意。、 | |
2. Department for transport (2016).Reported Road CasualtiesGreat Britain: 2016 Annual Report. | |
網址:https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/668504/reported-road-casualties-great-britain-2016-complete-report.pdf |
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
1. Hakkert, A. S., Braimaister, L., & Van Schagen, I. (2002). The uses of exposure and risk in road safety studies (Vol. 2002, No. 12). SWOV Institute for Road Safety. | |
網址:https://www.swov.nl/sites/default/files/publicaties/rapport/r-2002-12.pdf | |
功能:pp.25, 不可能讓不同種類的用路人風險相同,不符合實際情況以及經濟成本。 | |
「實際上,不同用路人型態會有不同的風險,想要將安全風險降到「相等」是幾乎不可行、也無法以合理的經濟成本達成的事情5。機車就是會有比起汽車更高的風險、行人在車禍中比起汽車也會有更高的死亡風險、市區道路有比高速公路更高的車禍率等等。而Hakkert在2002年的研究便已指出,「我們該做的事,是在可行(不論是經濟成本或是方法)的範圍內,採取讓該個群體風險降低的措施」。至於這措施是什麼?至少禁絕絕非好主意。、 | |
2. Department for transport (2016).Reported Road CasualtiesGreat Britain: 2016 Annual Report. | |
網址:https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/668504/reported-road-casualties-great-britain-2016-complete-report.pdf |