Skip to content

Instantly share code, notes, and snippets.

# 現在時取得
$now = Get-Date
# CSVファイル名に使う日時。変更しても構いません。時間の表記形式についてはこちら https://learn.microsoft.com/ja-jp/dotnet/standard/base-types/custom-date-and-time-format-strings?view=netframework-4.8
$dateForTitle = $now.ToString("yyyyMMddHHmm")
# データベース用日時。notionは標準時しか受け付けないようなのでToUniversalTime()を噛ませ受け入れられる形式に変換する https://www.reddit.com/r/Notion/comments/w5k7b7/import_via_csv_with_date_time/
$formatteddate = $now.ToUniversalTime().ToString("yyyy-MM-dd HH:mm:ss")
$promptTitle = "データベース選択"
$message = "対象のデータベースを選択してください。"
$tChoiceDescription = "System.Management.Automation.Host.ChoiceDescription"
// ==UserScript==
// @name Aozora for iOS Safari
// @description
// @match https://www.aozora.gr.jp/cards/*/files/*
// @version 1.1
// @updateURL https://gist.githubusercontent.com/hakuoku/d0bec1a1992917afcc3376ce488c82fc/raw/aozora_ios_safari.user.js
// ==/UserScript==
const head = document.head;
const body = document.body;
@hakuoku
hakuoku / aozoraruby.tex
Last active March 8, 2018 12:24
LuaLaTeXで|振り仮名《ルビ》を振る
%luaLaTeX文書
\documentclass[tate]{jlreq}
\usepackage{luatexja-fontspec}
\setmainjfont[BoldFont=IPAexGothic]{IPAexMincho}
\usepackage{pxrubrica}
\rubysetup{J}
\usepackage{newunicodechar}
\makeatletter
@hakuoku
hakuoku / test-zrjapunct1.tex
Last active October 25, 2022 02:54 — forked from zr-tex8r/test-zrjapunct1.tex
LaTeX: 和文を欧文扱いして和文扱いする件・改
% upLaTeX文書; 文字コードはUTF-8
\documentclass[uplatex,a5paper]{utarticle}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{otf}% <?>で自動空白挿入
\usepackage[prefercjkvar]{pxcjkcat}
\usepackage{zrjapunct1}
\cjkcategory{latn1}{noncjk}% <é>は欧文
\begin{document}