[ create a new paste ] login | about

pauld

Name:
Email:
Site/Blog:
Location:
Default language:
Favorite languages:
About:

Saved pastes by pauld:

PHP, pasted on Jul 19:
1
2
3
4
5
<?php
$a.='10 5
#o        
##       
###       
...
view (7 lines, 6 lines of output)
PHP, pasted on Jul 19:
1
2
3
4
5
<?php
// get input
$input .= '10 5
#         
##o       
...
view (58 lines, 6 lines of output)
PHP, pasted on Jul 19:
1
2
3
4
5
<?php
$a.='10 5
#o        
##        
###       
...
view (7 lines, 6 lines of output)
PHP, pasted on Jul 19:
1
2
3
4
5
<?php
// get input
$input .= '10 5
#o        
##        
...
view (59 lines, 6 lines of output)
PHP, pasted on Jul 18:
1
2
3
4
5
<?php
$a.='7           
............
...11..222..
...11..222..
...
view (8 lines, 1 line of output)
PHP, pasted on Jul 17:
1
2
3
4
5
<?php
$a='clock';$b=" o'";$c=$b.$a." rock,";$d=1+1;$e=$d+$d;$f=", ";$g=$e+$e;echo"1".$f.$d.$f.($d+1).$b.$a.$f.$e.$c."
".($e+1).$f.($e+$d).$f.($g-1).$b.$a.$f.($g).$c."
".($g+1).$f.($g+$d).$f."11".$b.$a.$f."1".$d.$c."
We're gonna rock around the clock tonight.";?>
view (5 lines, 4 lines of output)
PHP, pasted on Jul 17:
1
2
3
4
5
<?php
$clo = 'clock';
$o = " o'";
$clock=$o.$clo." rock,";
$two = 1+1;
...
view (15 lines, 4 lines of output)
PHP, pasted on Jul 16:
1
<?php $a='38,39';$b='';$d=explode(',',$a);for($i=0;$i<40;++$i){$c=' ';foreach($d as $k=>$v){if($v == $i){$c='x';}}$b.=$c;}echo $b."\n";for($x=1;$x<40;++$x){$o='';for($i=1;$i<41;++$i){if(($i>1)AND(substr($b,$i-2,1)=='x')){$l=1;}else{$l=0;}if((substr($b,$i-1,1))=='x'){$v=1;}else{$v=0;}if((substr($b,$i,1))=='x'){$r=1;}else{$r=0;}if((($l+$v+$r)==2)OR(($v+$r)==1)){$o.='x';}else{$o.=' ';}}echo $o."\n";$b=$o;}?>
view (1 line, 40 lines of output)
PHP, pasted on Jul 16:
1
<?php $a=4;$b=3;$c=-1;$d=$a*$b;$e=$a;$f=($b-1);function c($g,$k){global $c,$d;for($l=0;$l<$g;$c=$c+$k,++$l,--$d,print $c.' ');}while($d>0){$m=1;$g=$e;c($g,$m);--$e;if($f>0){$m=$a;$g=$f;c($g,$m);--$f;if($e>0){$m=-1;$g=$e;c($g,$m);--$e;if($f>0){$m=-$a;$g=$f;c($g,$m);--$f;}}}}?>
view (1 line, 1 line of output)
PHP, pasted on Jul 16:
1
2
3
4
5
<?php

// inputs
$w=3;
$h=3;
...
view (60 lines, 1 line of output)
PHP, pasted on Jul 16:
1
<?php $a=4;$b=3;$c=-1;$d=$e=0;$f=($b*$a);function calc($g,$h,$j,$k){for($l=$g;$l<$h;++$l){$k=$k+$j;echo' '.$k;}return($k);}while($f>0){if($d<$a){$c=calc($d,$a,1,$c);$f=$f-($a-$d);++$e;if($e<$b){$c=calc($e,$b,$a,$c);$f=$f-($b-$e);++$d;if($d<$a){$c=calc($d,$a,-1,$c);$f=$f-($a-$d);++$e;if($e<$b){$j=0-$a;$c=calc($e,$b,$j,$c);$f=$f-($b-$e);}}}}++$d;}?>
view (1 line, 1 line of output)
PHP, pasted on Jul 16:
1
2
3
4
5
<?php
$owidth = 4;
$oheight = 3;
$final = -1;
$wstep = $hstep = 0;
...
view (48 lines, 1 line of output)
PHP, pasted on Jul 16:
1
2
3
4
5
<?php
$owidth = $width = 3;
$oheight = $height = 4;
$final = 0;
$wstep = 0;
...
view (54 lines, 1 line of output)
PHP, pasted on Jul 14:
1
<?php $a='38,39';$b='';$d=explode(',',$a);for($i=0;$i<40;++$i){$c=' ';foreach($d as $k=>$v){if($v == $i){$c='x';}}$b.=$c;}echo $b."\n";for($x=1;$x<50;++$x){$o='';for($i=1;$i<41;++$i){if(($i>1)AND(substr($b,$i-2,1)=='x')){$l=1;}else{$l=0;}if((substr($b,$i-1,1))=='x'){$v=1;}else{$v=0;}if((substr($b,$i,1))=='x'){$r=1;}else{$r=0;}if((($l+$v+$r)==2)OR(($v+$r)==1)){$o.='x';}else{$o.=' ';}}echo $o."\n";$b=$o;}?>
view (1 line, 50 lines of output)
PHP, pasted on Jul 14:
1
2
3
4
5
<?php
$input = '38,39';
$line = '';
$output = '';
$output_arr = array();
...
view (60 lines, 50 lines of output)
PHP, pasted on Jul 14:
1
2
3
4
5
<?php $f='FAT,BANANA';$w=explode(',',$f);$a=$ao=$w[0];$b=$bo=$w[1];$c='';
function splice($a,$t){$s=$h=0;$y=array();$x=str_split($a);
foreach($x as $k=>$v){$s=$s+ord($v)-64;if($v>$h){$h=$k;}}
$y[0]=$s;if($t==1){unset($x[$h1]);$y[1]=$x;}return $y;}
while($c==''){$y1=splice($a,0);$y2=splice($b,0);$y3=splice($y1[0],1);
...
view (10 lines, 1 line of output)
PHP, pasted on Jul 14:
1
2
3
4
5
<?php
$f = 'CAN,CBN';
$words = explode(',', $f);
$a = $ao = $words[0];
$b = $bo = $words[1];
...
view (38 lines, 1 line of output)
PHP, pasted on Jul 14:
1
2
3
4
5
<?php
$f = 'CAN,CBN';
$words = explode(',', $f);
$a = $words[0];
$b = $words[1];
...
view (56 lines, 1 line of output)