Skip to content

Instantly share code, notes, and snippets.

View sudotac's full-sized avatar

sudotac

  • Asia/Tokyo
  • 20:45 (UTC +09:00)
View GitHub Profile
@sudotac
sudotac / stars-in-bluesky.user.css
Last active July 20, 2024 04:15
Stars in bluesky
/* ==UserStyle==
@name Stars in bluesky
@namespace https://gist.github.com/sudotac
@version 0.0.1
@description This style makes stars twinkle in the bluesky.
@author sudotac <[email protected]>
@homepageURL https://gist.github.com/sudotac/1dbb2aa69e6d65671dc009ab8e7a8c9f
@updateURL https://gist.githubusercontent.com/sudotac/1dbb2aa69e6d65671dc009ab8e7a8c9f/raw/stars-in-bluesky.user.css
@license CC0-1.0
==/UserStyle== */
@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 October 1, 2024 14:57
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 August 4, 2024 10: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 'asciidoctor/extensions'
require 'nokogiri' # should be v1.12.0 or later
class FootnoteTooltipConverter < (Asciidoctor::Converter.for 'html5')
register_for 'html5'
@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
#