Skip to content

Instantly share code, notes, and snippets.

View sudotac's full-sized avatar

sudotac

  • Asia/Tokyo
  • 14:45 (UTC +09:00)
View GitHub Profile
@sudotac
sudotac / dark-aozora.user.css
Last active August 13, 2023 03:18
やる気のないダークモードスタイルシート for 青空文庫
dark-aozora.user.css
@sudotac
sudotac / cgit-dark-mode.user.css
Last active June 6, 2024 12:16
dark mode UserCSS for cgit
cgit-dark-mode.user.css
@sudotac
sudotac / Asciidoctor-extension-temml.rb
Last active May 4, 2023 13:49
Asciidoctor Extension for rendering LaTeX equations with Temml
# Asciidoctor-extension-temml.rb
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
require 'asciidoctor/extensions'
require 'temml'
class TemmlInlineMacro < Asciidoctor::Extensions::InlineMacroProcessor
use_dsl
named :temml
@sudotac
sudotac / Asciidoctor-extension-katex.rb
Last active August 8, 2023 13:08
Asciidoctor Extension to use KaTeX
Asciidoctor-extension-katex.rb
@sudotac
sudotac / Asciidoctor-extension-footnote-tooltip.rb
Last active April 19, 2023 13:06
footnoteにtooltipをつけるAsciidoctorのExtension
# Asciidoctor-extension-footnote-tooltip.rb
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
require 'nokogiri' # should be v1.12.0 or later
class FootnoteTooltipConverter < (Asciidoctor::Converter.for 'html5')
register_for 'html5'
# convert_inline_footnote is almost based on
@sudotac
sudotac / thbgm.pl
Last active May 22, 2019 14:35
thbgm.datを読んでwaveファイルを出力するPerlスクリプト。東方風神録(th10)、東方天空璋(th16)でのみ動作確認済み。東方妖々夢以降の他の作品でも動くかもしれません。
#!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Long;
my $num_loop = 2; # default
my $artist = '上海アリス幻樂団';
my ($bgmfile, $outdir, $titlefile);
GetOptions(
@sudotac
sudotac / naver-line.desktop
Created February 6, 2018 14:38
LINE (Chrome拡張機能 https://chrome.google.com/webstore/detail/line/ophjlpahpchlmihnnnihgmmeilfjmjjc ) のデスクトップエントリー
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=LINE
Exec=chromium --profile-directory=Default --app=chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html
Icon=naver-line
StartupWMClass=crx_ophjlpahpchlmihnnnihgmmeilfjmjjc
#