===== メモ ===== いや、下記は自分用の備忘録ですのでお気になさらずに。 === 日本語 === * [[https://nihongo-base.com/grammarandvocab-grammardifference-1/|類似文法の違いが一瞬で分かる![文脈制限]のヒント【Part1】]] === Google Nest === * [[https://support.google.com/googlenest/answer/7364558?hl=en&ref_topic=7030084|Relax with your Google Nest or Home speaker or display]] === 文字列を逆順に === * =CONCATENATE(ARRAYFORMULA(MID(C2,SEQUENCE(1,LEN(C2),LEN(C2),-1),1))) === DokuWiki === * 必要なプラグイン * [[https://www.dokuwiki.org/plugin:upgrade|upgrade]] / [[https://www.dokuwiki.org/plugin:move|move]] / [[https://www.dokuwiki.org/plugin%3Acolor|color]] * 不要なプラグイン:Active Directory Auth, LDAP Auth, authpdo, Popularity Feedback * https://techwiki.u-ff.com/dokuwiki/extension === emacs === * 文字コード明示:-*- coding:utf-8 -*- === Python === * [[https://towardsdatascience.com/how-to-easily-convert-a-python-script-to-an-executable-file-exe-4966e253c7e9|How to Easily Convert a Python Script to an Executable File (.exe)]] === 素材 === * [[https://storyset.com/]] : 色を変えられる === 広告掲示 === * [[https://skima.jp/item/search?s=1&cg=55]]:スキマ(校正・添削) * [[https://tsunagu.cloud/products/search?category_id=3&sort=&title=%E6%A0%A1%E6%AD%A3]]:つなぐ === 中国語 === * [[https://ykt.eduyun.cn/ykt/sjykt/index.html|国家中小学网络云平台]] === Let's Encrypt / SSL === * [[https://www.server-world.info/query?os=Ubuntu_20.04&p=httpd&f=3]] === How to download Excel file (.xlsx) by Python CGI === import openpyxl import sys import os import shutil import tempfile wb = openpyxl.Workbook() ws = wb.active c = ws.cell(row=5, column=5) c.value = 3.14 with tempfile.NamedTemporaryFile() as tmp: wb.save(tmp.name) tmp.seek(0) stream = tmp.read() print("Content-Type: application/octet-stream") print('Content-Disposition: attachment; filename="results.xlsx"') print("Content-Length: " + str(len(stream))) print('Cache-Control: max-age=0') print() sys.stdout.flush() sys.stdout.buffer.write(stream)