Skip to content

Instantly share code, notes, and snippets.

View Ishotihadus's full-sized avatar

Ishotihadus Ishotihadus

View GitHub Profile
@Ishotihadus
Ishotihadus / Makefile
Last active September 27, 2019 11:34
macOS 用 64bit WaveSurfer の Makefile。r59 ベース。make osx-release すると release/ ディレクトリに dmg ファイルが作れる。ビルドしたやつ: https://www.dropbox.com/s/y0ibdwwhhl6blc7/wavesurfer-1.8.8p5_ishotihadus-osx64.dmg?dl=0
TCLSH = tclsh
PREFIX = /usr/local
TMP = /tmp/__wavesurfer_build
ROOT = $(shell pwd)
RUNTIME_win = $(ROOT)/build/kit/tclkit-8.5.8-win32.upx.exe
RUNTIME_linux = $(ROOT)/build/kit/tclkit-8.6.6-linux-i386-xcompile
RUNTIME_linux64 = $(ROOT)/build/kit/tclkit-8.6.6-linux-amd64
# for 32-bit OSX builds, uncomment these
@Ishotihadus
Ishotihadus / matlabs.zsh
Last active June 24, 2020 06:17
MATLAB の .m ファイルをスクリプトっぽく実行するシェルスクリプト。追加の引数は文字列として関数の引数に渡せる。Usage: `matlabs [-path /path/to/matlab] [-matlab-options] /path/to/script.m [arg1] [arg2] [...]`。
#!/usr/bin/env zsh
local -A opts
local -a matlab_opts args
zparseopts -D -M -A opts -- h help=h path: -path:=path \
c: noFigureWindows softwareopengl nosoftwareopengl debug singleCompThread \
nojvm jdb: sd: useStartupFolderPref logfile: nouserjavapath
usage() {
echo 'MATLAB の関数をスクリプトライクに実行するコマンドです。' 1>&2
echo "usage: $0 [-path MATLAB path] [-matlab-options] script.m [arg1] [arg2] [...]" 1>&2
@Ishotihadus
Ishotihadus / exfavbin.rb
Last active May 12, 2019 05:07
exfavbin の Ruby 版 FAVORITE のアレをアレするやつ
require 'bin_utils'
require 'fileutils'
require 'oily_png'
require 'parallel'
require 'zlib'
class FavBin
attr_reader :entries
def initialize(bin)
@Ishotihadus
Ishotihadus / atr.md
Last active April 2, 2025 12:42
ATR503文元ネタ集

ATR 音素バランス 503 文元ネタ集

判明している音素バランス文の元ネタを集めた。

Subset A

a01: あらゆる現実をすべて自分のほうへねじ曲げたのだ。

「マルサの女 撮影日記」(伊丹十三)(文藝春秋 1987 年 2 月)(c03、g01 と同一)

@Ishotihadus
Ishotihadus / my.cnf
Created January 26, 2019 03:52
Default my.cnf for MariaDB 10.3.12
# MariaDB database server configuration file.
#
# You can copy this file to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
@Ishotihadus
Ishotihadus / nicoime.rb
Created December 7, 2018 13:37
ニコニコ大百科を IME 辞書にするやつ。ニコニコ大百科辞書が死んだので作った。
=begin
ニコニコ大百科と pixiv 百科事典の and をとった感じの IME 辞書を作るスクリプト
およそ https://www.ncaq.net/2017/03/10/ に近い挙動をする。
読みはニコニコ大百科からとる。
ニコニコとピクシブの両方に単語登録されているものだけ選ぶ。
次のものは取り除いてある。
・ブラックリストに入っているもの
・カッコを含むのに読みに「かっこ」が含まれないもの
・読みが 1 文字以下のもの
@Ishotihadus
Ishotihadus / _readme.md
Last active February 5, 2018 06:14
ぼくのかんがえたさいきょうの iTerm でざいん

ぼくのかんがえたさいきょうの iTerm でざいん

iTerm のデザイン設定まとめ。

フォント: Cica

フォントサイズ: 14.5 pt

itermcolors は ShootingStar ベース(だった気がする)

@Ishotihadus
Ishotihadus / eshidownloader.rb
Created January 7, 2018 14:53
特定の絵師が Twitter にのせた画像を全部ダウンロードするやつ
require 'twitter'
require 'net/http'
TWITTER_CK = ''
TWITTER_CS = ''
TWITTER_AT = ''
TWITTER_AS = ''
USER = 'tktiau'
Dir.mkdir(USER) unless Dir.exists?(USER)
@Ishotihadus
Ishotihadus / eshidownloader.rb
Created January 7, 2018 14:53
特定の絵師が Twitter にのせた画像を全部ダウンロードするやつ
require 'twitter'
require 'net/http'
TWITTER_CK = ''
TWITTER_CS = ''
TWITTER_AT = ''
TWITTER_AS = ''
USER = 'tktiau'
Dir.mkdir(USER) unless Dir.exists?(USER)
@Ishotihadus
Ishotihadus / imas-colors.clr
Last active July 31, 2024 14:01
アイマスのカラー一覧と、Mac 用カラーパレットファイル(clr)。Adobe アセット版は https://adobe.ly/2zM4tB6 。関連ページ: https://imas-db.jp/misc/color.html