七行プログラミング (452レス)
七行プログラミング http://medaka.5ch.net/test/read.cgi/php/1036141603/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
409: nobodyさん [sage] 2006/03/26(日) 01:13:16 ID:??? 7行OS http://medaka.5ch.net/test/read.cgi/php/1036141603/409
410: nobodyさん [] 2006/03/32(土) 00:29:48 ID:WFUzL8FS あれ、7行WEBサーバってなかったっけ? http://medaka.5ch.net/test/read.cgi/php/1036141603/410
411: nobodyさん [sage] 2006/06/12(月) 12:59:18 ID:??? 過疎スレになっちゃったな。 http://medaka.5ch.net/test/read.cgi/php/1036141603/411
412: nobodyさん [] 2006/06/12(月) 21:26:04 ID:NzZJH7e1 先日、会社でちょっとした7行ゲームを作ったんだけど、 社内でやっちまったんで、持ち出せないんだよな。 7行といっても7分で出来るわけじゃないんだよな。 http://medaka.5ch.net/test/read.cgi/php/1036141603/412
413: nobodyさん [] 2006/07/23(日) 02:39:55 ID:8Se2GPZR 七行Blog http://medaka.5ch.net/test/read.cgi/php/1036141603/413
414: nobodyさん [sage] 2006/07/27(木) 16:06:23 ID:??? >>412 そんならカキコすんな なんていってほしいわけ? http://medaka.5ch.net/test/read.cgi/php/1036141603/414
415: nobodyさん [sage] 2006/07/31(月) 00:02:46 ID:??? うpキボンヌ http://medaka.5ch.net/test/read.cgi/php/1036141603/415
416: ◆GodofTripY [sage] 2006/08/01(火) 01:25:49 ID:??? ($name, $tripkey) = split(/\#(.+)/, $form{'name'}); if($tripkey){ $salt = substr($tripkey.'H.', 1, 2); $salt =~ tr/\x3A-\x40\x5B-\x60\x00-\x2D\x7B-\xFF/A-Ga-f./; $salt =~ s/[^\.-z]/\./g; $trip = '◆'. substr(crypt($tripkey, $salt), -10);} print "$name$trip"; 2chトリップ判定。 http://medaka.5ch.net/test/read.cgi/php/1036141603/416
417: nobodyさん [sage] 2006/08/01(火) 02:06:48 ID:??? >>416 気持ちはわかるがそれはwebprogではない http://medaka.5ch.net/test/read.cgi/php/1036141603/417
418: nobodyさん [sage] 2006/08/01(火) 03:23:08 ID:??? >>416 どこかで見た事があるんだが^^ http://medaka.5ch.net/test/read.cgi/php/1036141603/418
419: nobodyさん [sage] 2006/08/01(火) 04:17:36 ID:??? >>416 2chってcrypt()なんだね http://medaka.5ch.net/test/read.cgi/php/1036141603/419
420: nobodyさん [] 2006/10/13(金) 18:11:25 ID:UA0b1MaA 6行RSSリーダー 設置して.cgi?以降にfeedのURLを入力 モジュールてんこ盛りなのでもっと短く書けるはず use LWP::Simple;use CGI":all";use XML::RSS;$h = new CGI;$r = new XML::RSS; $r->parse(get("$ENV{'QUERY_STRING'}"));%c = %{$r->{'channel'}}; print $h->header.'<a href="'.$c{'link'}.'">'.$c{'title'}. "</a><br>$c{'description'}<br>";print "<ul>";for $item (@{$r->{'items'}}){ print '<a href="'.$item->{'link'}.'">'.$item->{'title'}. "</a><br>$item->{'description'}<br>";}print "</ul>".$h->end_html; http://medaka.5ch.net/test/read.cgi/php/1036141603/420
421: sage [sage] 2006/10/13(金) 18:14:55 ID:??? test http://medaka.5ch.net/test/read.cgi/php/1036141603/421
422: nobodyさん [] 2006/10/13(金) 18:17:21 ID:yRLkeiwT >>421 まさか7行で2chに書き込めるスクリプトを?! http://medaka.5ch.net/test/read.cgi/php/1036141603/422
423: nobodyさん [sage] 2006/10/13(金) 22:26:56 ID:??? 7行も要らんけどな http://medaka.5ch.net/test/read.cgi/php/1036141603/423
424: nobodyさん [sage] 2006/10/13(金) 23:51:02 ID:??? 書き込みのモジュールなんてあった??<<Perl脳 http://medaka.5ch.net/test/read.cgi/php/1036141603/424
425: nobodyさん [sage] 2006/10/14(土) 00:15:13 ID:??? 書き込みっつーかPOSTするだけだろ http://medaka.5ch.net/test/read.cgi/php/1036141603/425
426: nobodyさん [sage] 2006/10/14(土) 00:45:55 ID:??? >>425 単にPOSTするだけって単にPOSTしただけじゃread.cgiに弾かれる http://medaka.5ch.net/test/read.cgi/php/1036141603/426
427: nobodyさん [sage] 2006/10/14(土) 01:32:50 ID:??? 私はPHPならなんとか作れそうだが、それ以前に2chの仕様を勉強しなくちゃだな。 http://medaka.5ch.net/test/read.cgi/php/1036141603/427
428: nobodyさん [sage] 2006/10/14(土) 01:42:28 ID:??? POST先はbbs.cgiだけどな http://medaka.5ch.net/test/read.cgi/php/1036141603/428
429: nobodyさん [sage] 2006/10/14(土) 02:59:59 ID:??? >>428 それすら知らなかった漏れは百回くらい正規表現の勉強でもしましょうか? http://medaka.5ch.net/test/read.cgi/php/1036141603/429
430: nobodyさん [sage] 2006/10/14(土) 06:34:52 ID:??? >>420 縮めた。 #!/usr/bin/perl use LWP::Simple;use XML::RSS;$r=new XML::RSS;parse$r get$ENV{QUERY_STRING};use CGI":all";%c=%{$r->{channel}};put header,a({href,$c{link}},$c{title}),br,$c{$d= description},br,ul(li[map a({href,$_->{link}},$_->{title}).br.$_->{$d}.br,@{$r ->{items}}]),end_html http://medaka.5ch.net/test/read.cgi/php/1036141603/430
431: nobodyさん [sage] 2006/10/14(土) 14:05:08 ID:??? >>430 sugeeeeeeeeeeeeeeeeeeeeee 問題無く動いた http://medaka.5ch.net/test/read.cgi/php/1036141603/431
432: nobodyさん [sage] 2006/10/14(土) 15:01:38 ID:??? >>430 からもうちょい縮めた上で HTML がまともになるよう追加。 #!/usr/bin/perl use CGI":all";use LWP::Simple;use XML::RSS;$r=new XML::RSS;sub A{a{href,$_[0]-> {link}},$_[0]->{title}}charset$C="UTF-8";parse$r get pop;%c=%{$$r{channel}};put header,start_html(-encoding,$C,lang,ja),h1(A\%c),p($c{$d=description}),ul(li[ map A($_).br.$$_{$d},@{$$r{items}}]),end_html 二行半も空いてるけど付け加える機能を思いつかず。 http://medaka.5ch.net/test/read.cgi/php/1036141603/432
433: nobodyさん [sage] 2006/10/14(土) 15:13:56 ID:??? >>432 未読管理機能なんかオススメ 二行半でやる方法は思い浮かばないorz むしろ、どういう過程を経て効率的なソースが引けるようになったのかの方に興味あり苦笑 どこか参考にしたサイトとかあります? http://medaka.5ch.net/test/read.cgi/php/1036141603/433
434: nobodyさん [sage] 2006/10/15(日) 11:53:37 ID:??? >>433 > 未読管理機能 ほい。新着タイトルを太字表示。 #!/usr/bin/perl use CGI":all";use LWP::Simple;use XML::RSS;$r=new XML::RSS;dbmopen%n,"7rssrdr", 420;charset$C="UTF-8";sub A{($t,$l)=@$_{"title","link"};a{href,$l},$n{$l}++?$t: b$t}parse$r get pop;%c=%{$$r{channel}};put header,start_html(-encoding,$C,lang, ja),h1(A$_=\%c),p($c{$d=description}),ul(li[map A.br.$$_{$d},@{$$r{items}}]), end_html > どこか参考にしたサイトとかあります? 駱駝本とか perldoc とか。冗談でも何でもなく。 この遊びのノウハウなら http://cm.xrea.cc/techinfo.cgi に。 http://medaka.5ch.net/test/read.cgi/php/1036141603/434
435: nobodyさん [sage] 2006/10/16(月) 01:39:15 ID:??? >>434 >駱駝本とか perldoc とか。 さもありなんというか結局質の高い基本が一番役にたつんだろうな http://medaka.5ch.net/test/read.cgi/php/1036141603/435
436: aaz [aaz@aaz.com] 2006/11/05(日) 22:18:14 ID:??? http://fitaly.com/board/wordperfect/posts/362.html http://medaka.5ch.net/test/read.cgi/php/1036141603/436
437: nobodyさん [sage] 2007/05/08(火) 22:55:38 ID:??? ほす http://medaka.5ch.net/test/read.cgi/php/1036141603/437
438: nobodyさん [sage] 2007/12/01(土) 02:02:19 ID:??? 月次移動可能なカレンダー。c.phpで保存。 <?php $a=q("Y-m-t","$_GET[y]-1");$d=explode("-",$a);$y="<a href=?y=";$v=$d[0]; $w=$d[1];$z="</tr><tr>";$m="$v-$w";$p=q("Y-m",$w-1,1,$v);$n=q("Y-m",$w+1,1,$v) ;echo"<html>$y$p><</a>$m$y$n>></a> $y c.php>now</a><table border=1><tr>$z";$f= q("w","$m-1");for($i=-6-$f;$i<$d[2]-q("w",$a)+7;$i++){echo($i<1-$f)?"<th>".q( "D",$w,$i,$v)."</th>":(($i<1||$i>$d[2])?"<td></td>":"<td>$i</td>");if(($i+$f)% 7==0)echo$z;}echo"</tr></table></html>";function q($x,$w,$i=0,$v=0){return($i) ?date($x,mktime(0,0,0,$w,$i,$v)):date($x,strtotime($w));}?> http://medaka.5ch.net/test/read.cgi/php/1036141603/438
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 14 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.021s