Strict Standards: Non-static method Soojung::addReferer() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/settings.php on line 79

Warning: Cannot modify header information - headers already sent by (output started at /home/lifthrasiir/sites/sapzil.info/soojung/settings.php:79) in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Counter.class.php on line 63

Strict Standards: Non-static method Entry::getEntry() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/entry.php on line 51

Strict Standards: Non-static method Soojung::entryIdToFilename() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Entry.class.php on line 182

Strict Standards: Non-static method Soojung::queryFilenameMatch() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Soojung.class.php on line 55
TokigunStudio3 | 블로그: 디토 님의 NilWiki!

내용으로 바로 넘어 가기


TokigunStudio3

228 / 3282   


더 이상 이 블로그는 운영되지 않습니다. 새 블로그로 가 주세요.

디토 님의 NilWiki!

2005/02/25 PM 12:04 | 개발/obfuscation | 3 comments | 0 trackbacks | AllBlog: vote, to pocket

디토 님께서 ruby로 nilwiki라는 아주 작은 위키를 만드셨길래 살짝 더 수정했다. 흐흐흐...
require"cgi";c=CGI.new"html4";f=c.params;x="";d,r,a=%w{HomePage ?p= p/};p=f.fetch("p",[d])[0];
n=a+p;t=f["e"][0];File.new(n,"w").puts(t)if f.key?"e";t=IO.read(n)if File.exist?(n)&&!t;
Dir.new("p").each{|b|x+=c.a(r+b){b}+"<br>"if !b[/^\./]&&IO.read(a+b).include?(p)};
c.out{x+c.h1{p}+c.pre{t.gsub(/([A-Z][a-z]+){2,}/){|m|c.a(r+$&){$&}}if t}+c.form("post"){c.hidden("p",p)+c.textarea("e"){t}+c.submit}}
줄을 모두 이어 붙이면 (she-bang 빼고) 397바이트다. :) (원래는 406바이트였음)

TrackBack URL: http://sapzil.info/soojung/trackback.php?blogid=510

Comment: 인클루드 (2005/02/25 PM 12:57)

화들짝; IRC 에서 주고받던 대화의 정체가 이것이였군요...!!
흐흐

Comment: Powring (2005/02/25 PM 02:16)

she-bang을 빨리 읽을래요.

Comment: 토끼군 (2005/02/25 PM 02:18)

인클루드: 크크크...
Powring: sha-bang이라고도 하는데 차라리 이걸로 읽으세요.

Copyright (c) 1995-2005, Kang Seonghoon (Tokigun).