This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun html-quote (str) | |
(replace-regexp-in-string "[&<>]" | |
(lambda (m) | |
(or (cdr (assq (string-to-char m) | |
'((?& . "&") | |
(?< . "<") | |
(?> . ">")))) | |
m)) | |
str)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class IRCNotifierError extends Exception {} | |
class IRCNotifier { | |
private $_socket; | |
function __construct($url, $options) { | |
$url_info = parse_url($url); | |
if ($url_info === false) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro do-with-val-macro (val &rest body) | |
`(let ((,val 1)) | |
,@body) | |
) | |
(defmacro do-with-val-macro2 (spec) | |
`(let ((,(car spec) 1)) | |
,@(cdr spec)) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/Usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
basename = ARGV.shift | |
in_list = ARGV.map{|num| "#{basename}_#{num}.png" }.join(' ') | |
`convert -delay 17.5 -loop 0 -dispose previous #{in_list} #{basename}.gif` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/Usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
GYO = 20 | |
RETSU = 20 | |
num_letters = num_gyo = num_retsu = 0 | |
open(ARGV.last) do |io| | |
io.each_char do |c| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
convert -delay 0.5 -loop 0 -dispose previous tanuki*.png tanuki_anim.gif |
NewerOlder