241時間以上の大遅刻をしました。
この記事は NITKC ProLab Advent Calendar 2020 の6日目として執筆されました。
前日は宮野さんの ヤフオクで買ったパソコンを魔改造する話 でした。
翌日は虎太郎さんの 性格ツンデレと展開ツンデレの違い です。
export type Pipe<T, U> = { | |
then: <V>(func: (value: U) => V) => Pipe<T, V>; | |
apply: (value: T) => U; | |
}; | |
const _pipe = <T, U, V>(prev: Pipe<T, U>, func: (x: U) => V): Pipe<T, V> => { | |
const self: Pipe<T, V> = { | |
then: <W>(func: (x: V) => W) => _pipe(self, func), | |
apply: (value: T) => func(prev.apply(value)), | |
}; |
#!/usr/bin/python | |
import json | |
import platform | |
import subprocess | |
import urllib.request | |
WEBHOOK = '<discord_webhook_url_here>' | |
hostname = platform.node() |
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<meta charset='UTF-8'> | |
<title>copy-pasta</title> | |
<script> | |
document.addEventListener('DOMContentLoaded', function onDOMContentLoaded() { | |
const title = document.querySelector('title'); | |
const heading = document.querySelector('h1'); | |
const container = document.querySelector('main'); |
241時間以上の大遅刻をしました。
この記事は NITKC ProLab Advent Calendar 2020 の6日目として執筆されました。
前日は宮野さんの ヤフオクで買ったパソコンを魔改造する話 でした。
翌日は虎太郎さんの 性格ツンデレと展開ツンデレの違い です。
enum StateNames { | |
Init, | |
Enter, | |
PreJudge, | |
Judge, | |
Result, | |
End, | |
Edit, | |
Err, | |
}; |
import argparse | |
import glob | |
import os.path | |
import img2pdf | |
def parse_args(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-o', '--out', help='output filename', default='a.pdf') |
(lambda s:[s.append(eval('{2}{1}{0}'.format(s.pop(),i,s.pop()))if(i in'+-*/')else i)for i in __import__('sys').argv[1:]]and print(s[0]))([]) |