Shortest Wiki Contest
2005-01-24-5
[Programming][Wiki]
短いWikiプログラム by Perl。もろ私好み。
1位: http://caseywest.com/code/scripts/sigwik.txt
2位:http://nick.cleaton.net/fleawi.txt
via 川o・-・)<2nd life - Shortest Wiki Contest
<http://d.hatena.ne.jp/secondlife/20050119/1106067862>
(via <http://www.hyuki.com/tf/200501#i20050124074333>)
1位: http://caseywest.com/code/scripts/sigwik.txt
#!/usr/bin/perl use CGI':all';path_info=~/\w+/;$_=`grep -l $& *`.h1($&).escapeHTML$t=param(t) ||`dd<$&`;open F,">$&";print F$t;s/htt\S+|([A-Z]\w+){2,}/a{href,$&},$&/eg; print header,pre"$_<form>",submit,textarea t,$t,9,70
2位:http://nick.cleaton.net/fleawi.txt
#!/usr/bin/perl use CGI':all';path_info=~/\w+/;$_=`grep -l $& *`.h1($&).escapeHTML$t=param(2) ||`dd<$&`;open F,">$&";print F$t;s/htt\S+|([A-Z]\w+){2,}/a{href,$&},$&/eg;s/ /br/eg;print header,"$_<form>",submit,textarea 2,$t,9,70
via 川o・-・)<2nd life - Shortest Wiki Contest
<http://d.hatena.ne.jp/secondlife/20050119/1106067862>
(via <http://www.hyuki.com/tf/200501#i20050124074333>)