Cui bono
This file contains hidden or 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
[mike@mike-pc ~][4:49:18][O][I][%][λ]> openssl s_client -connect imap.mail.yahoo.co.jp:993 -crlf -quiet | |
depth=2 C = JP, O = "SECOM Trust Systems CO.,LTD.", OU = Security Communication RootCA2 | |
verify return:1 | |
depth=1 C = JP, O = "Cybertrust Japan Co., Ltd.", CN = Cybertrust Japan SureServer CA G4 | |
verify return:1 | |
depth=0 C = JP, ST = Tokyo, L = Chiyoda-ku, O = Yahoo Japan Corporation, CN = imap.mail.yahoo.co.jp | |
verify return:1 | |
* OK [CAPABILITY IMAP4rev1 ID NAMESPACE UIDPLUS LITERAL+ CHILDREN XAPPLEPUSHSERVICE AUTH=PLAIN AUTH=LOGIN] IMAP4rev1 imapgate-2.1.133 imapgate5034.mail.kks.ynwl.yahoo.co.jp | |
* BAD [CLIENTBUG] Invalid command or arguments |
name | meaning |
---|---|
ndarray | N-dimensional array |
ndjson | Newline Delimited JSON |
This file contains hidden or 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 django.db import connection | |
def logger(execute, sql, params, many, context): | |
print(sql, params) | |
return execute(sql, params, many, context) | |
class GizmoTest(TestCase): | |
def test_with_sql_logging(self): | |
with connection.execute_wrapper(logger): |
用語 | リレーション | FW | 目的 |
---|---|---|---|
project | project: issue = N:N | カンバン | 人の進捗 |
milestone | milestone: issue = 1:N | スクラム | モノの進捗 |
ref
This file contains hidden or 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
>>> form datetime import datetime, timezone, timedelta | |
>>> from django.db import connection | |
>>> | |
>>> q = 'SELECT * FROM users WHERE created < %(now)s' | |
>>> | |
>>> params = {"now":datetime.now(timezone.utc)} | |
>>> cursor.execute(q, params) | |
>>> cursor.query | |
b"SELECT * FROM users WHERE created < '2020-10-30T11:35:51.895240+00:00'::timestamptz" |
This file contains hidden or 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 add_arg(*flags, args=None, **kwargs): | |
import argparse | |
p = argparse.ArgumentParser() | |
p.add_argument(*flags, **kwargs) | |
ns, _ = p.parse_known_args(args) | |
return next(getattr(ns, d) for d in dir(ns) if not d.startswith('_')) | |
if __name__ == "__main__": | |
""" |
This file contains hidden or 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
library(XML); | |
library(rpart); | |
library(pmml); | |
data(iris) | |
iris_model = rpart(Species ~ ., data = iris) | |
print(iris_model) | |
iris_pmml <- pmml(iris_model, model_name = "iris_model") | |
XML::saveXML(iris_pmml, "iris_pmml.xml") |
NDC (Nippon Decimal Classification) | DDC (Dewey Decimal Classification) | UDC (Universal Decimal Classification) |
---|---|---|
0 総記 | 0 総記 | 0 総記 |
1 哲学・宗教 | 1 哲学 | 1 哲学 |
2 歴史・地理 | 2 宗教 | 2 宗教.神学 |
3 社会科学 | 3 社会科学 | 3 社会科学 |
4 自然科学 | 4 語学 | 4 (空位) |
5 技術 | 5 純粋科学 | 5 数学.自然科学 |
6 産業 | 6 技術 | 6 応用科学.医学.等 |