Skip to content

Instantly share code, notes, and snippets.

@saiten
saiten / localecompiler.py.patch
Created August 12, 2011 02:51
%1$d,%2$dみたいな置換文字列に対応させる
*** localecompiler.py.orig 2011-08-12 11:43:31.000000000 +0900
--- localecompiler.py 2011-08-12 11:44:00.000000000 +0900
***************
*** 72,77 ****
--- 72,79 ----
pass
value = self.getText(node.childNodes)
# TODO: translate any more symbols?
+ value = re.sub(r'%(\d+)\$d', r'%\1$.0f', value)
+ value = re.sub(r'%(\d+)\$s', r'%\1$@', value)
@saiten
saiten / rec_radiko.sh
Last active December 2, 2021 05:57
簡易radiko録音ツール。要swftools
#!/bin/sh
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf
cookiefile=./cookie.txt
playerfile=./player.swf
keyfile=./authkey.png
if [ $# -eq 1 ]; then
channel=$1
output=./$1.flv