このシェルスクリプトはglpngをmacOS向けにコンパイルするためのパッチを当てるスクリプトです.
次のコマンドを入力すれば,glpng/にライブラリが生成されます.
| % クラスファイルを指定 | |
| % jlreqはW3Cで勧告されている日本語組版処理の要件を満たすクラスファイル | |
| % jarticle, jreport, jbookなどは古い上に日本語組版処理の要件を満たしていないため使わない | |
| \documentclass[ | |
| % LuaLaTeXを使う | |
| luatex, | |
| % 用紙サイズをA4にする | |
| paper=a4paper, | |
| % 欧文のフォントサイズを11ptにする | |
| fontsize=11pt, |
| import "./layers.css"; | |
| import "./reset.css"; |
| trait IntoT { | |
| fn intot<Dst>(self) -> Dst | |
| where | |
| Self: Into<Dst>; | |
| } | |
| impl<T> IntoT for T { | |
| #[inline] | |
| fn intot<Dst>(self) -> Dst | |
| where |
| type Fn<T, U> = (_: T) => U; | |
| type TopFn = Fn<never, unknown>; | |
| type TopFns = ReadonlyArray<TopFn>; | |
| type AssertPipeFns<Arg, Fns extends TopFns> = Fns extends [] ? true | |
| : Fns extends [ | |
| infer HeadFn extends TopFn, | |
| ...infer RestFn extends TopFns, | |
| ] ? HeadFn extends Fn<Arg, infer NextArg> ? AssertPipeFns<NextArg, RestFn> | |
| : false |
| curl -H "Accept: application/vnd.github+json" https://api.github.com/licenses/mit | jq -r .body | sed -e "s/\[year\]/$(date '+%Y')/; s/\[fullname\]/$(git config user.name)/" > LICENSE |
| $dns_record = "<Write Here>" | |
| $ttl = 120 | |
| $cloudflare_zoneid = "<Write Here>" | |
| $cloudflare_api_token = "<Write Here>" | |
| $log_filename = "ddns.log" | |
| $log_file = "$PSScriptRoot\$log_filename" | |
| Write-Output "INFO [$(Get-Date)] 更新処理を開始します。" | Tee-Object $log_file -Append |
| local recipes = require("recipes") | |
| local function calc_materials(name, amount, surpluses) | |
| local target = recipes[name] | |
| if target == nil then | |
| return { [name] = amount } | |
| end | |
| local surplus = surpluses[name] or 0 |