Skip to content

Commit

Permalink
* remove ?>.
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Dec 23, 2015
1 parent 2f21718 commit 073cbf3
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 133 deletions.
62 changes: 31 additions & 31 deletions QR.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,35 @@
(c))`nZ('cat ("end^n")'))],?']}').",B]}){9~7{exch~dup~1~and~79~mul~32~add~ex ch ~2~idiv~3~1~roll~s~exch~2~!dex~exch~put~1~sub~dup~6~eq{1~sub}if}repeat~s~=~pop~ pop}fora
ll~=~quit" ]+R}}"]]})*3;echo"^x89PNG^r^n^x1a^n";$m="";$t="^xc0^0^xff";for($i=- 1;$i<1 28*$z;$m.=$c--?($w-$c||$i>$z)&&$i/$z<($c<$w?ord($s[(!t)($c/3)]) :$c--%3
+2)?$t[2] .$t[$c%3%2].$t[$c%3]:"^0^0^0":"^0")$c=++$i%$z;foreach(array("I`x48DR". pack("NNCV",$w+2,128,8,2),"IDAT".gzcompress($m),"IE ND")as
$d)echo~ pack("NA*N",strlen($d)-4,$d,crc32($d));?>);v="";127.upto(287){|j|o={};m= n=0;s.size.times{|i|o[f=s[i,2]]||=0;c=o[f]+=1; m<c&&(
m=c;n=f )};v=n+v;s=s.K(n,(j%256).chr)};s="$_='#{Q[s,c=/['Y]/]}';$n=32;$s='#{Q[v,c]} ';$s=`x7es{..}{$a=$&;$b=chr(--$n&255);`x7 es/$b/
$a/g;}e g;Z";(s+N*(-s.size%6)).unpack("B*")[0].K(/.{6}/){n=$&.to_i~2;((n+14)/26*6+n+ 47).chr}}";s|.|$n=ord$&;substr~unpack (B8,ch
r$n-!t ($n/32)*6-41),2|eg;eval~pack'B*',$_).scan(/[~,-:A-z]+|(.)/){p="s++#{$1?"chr~#{$ 1.ord}+e":$&+?+};"+p};p),1){"'#$s' ,"}}'
')end. "]}"`nend)]};quit"]};t=num2cell(b=11-ceil(s/13));for~n=1:9m={};for~i=1:141f=@(x, y,n)repmat(['Ook'~char(x)~'~Ook '~cha
r(y)~ '~'],[1~abs(n)]);m(i)=[f(z=46,63,n)~f(q=z-(i<13)*13,q,i-13)~f(33,z,1)~f(63,z,n)];e nd;t(x)=m(diff([0~s(x=b==n) ])+13
);end ;Zf('%%s',t{:})"]]+R}}"]]}"+N]};"+N]}`x60`nglobal~_start`n_start:mov~edx,#{s.size}` nmov~ecx,m`nmov~ebx,1`nm ov~eax
,4`n! t~128`nmov~ebx,0`nmov~eax,1`n!t~128"]}"call~void~[mscorlib]#{C*"::"}(sJ)ret})]};qu i t();",?$].K(?'){"'^'' "}}'"]
,?&,? &]},'&(%d+)&',function(s)return~sJ.rep('Y',tonumber(s))end);Z(x)".K(/[:"]/,":^0" ), /[~Y`t;"() {}`[ `]]/]}"~PR~"`x4bT` x48`x5
8B`x5 9E~B`x59E)).size+1}x~i8]c"#{s.K(/[^"]/){"^%`x58"%$&.ord}}^00"declare~i32@puts(i 8 *)def!e~i32@m X{%1=call~i 32@puts(i8*gete lementp
tr([#{ i}x~i8]*@s,i32~0,i32~0))ret~i32~0})]]})],");"],"^n");A("`x60`x60s"`x5e8*"i"); f or~j=6:-1:0;x= (c>>j)%2+1;A(" `x60" *"kki"[x:x+1 ])end;e
nd;for ~c~!"AG-`x48-`x48Fy.IlD==;=jdlAy=;=jldltldltl{lAulAy=jtlldlAyFy=?=jdlAyGFy Fy G2AFy>zlAFFBCjldGyGFy>GFy.AGy=G ==n`x48==nll dC=j@=jtl ldltldlA
ut11";f or~i=0:2:4;x=((c%83-10)>>i)%4+1;A("ski`x60"[x:x])end;end)]]};typeof~Z==' func tion'?Z(s):console.log('%s',s)") .bytes{|n|r,z=z[ n]||(b [r/78];b[
r];q<608 3&&z[n]=[q+=1,[]];t[n])};b[r/78];b[r]}";!t~i=0,n=0,q=0;for(;++n<126;) c[n]=""+ (char)n;for(;i<#{a.size};){q=q*7 8+(s.charAt(i)-13)% 84; if(i++%2>0
){y=q<n? c[q]:y;c[n++]=z+y.charAt(0);System.out.Z(z=c[q]);q=0;}}}})]}"`n!vo kevirtual~ #$T/Zln(L#{S}J;)V`nreturn`n.end~method)+N]};H("DO,1< - #"||*s);s?w
hile~t:=o rd(move(1))do{i+:=1;u:=-i;every~0to~7do{u:=u*2+t%2;t/:=2};H("PL EASE")^(i%4/3) ;H("DO,1SUB#"||i||"<-#"||((c-u)%256));c:=u;};H("P LEASEREADOUT
,1^nPLEASE GIVEUP");end)]};}}"].tr(B,?&),51){%(show~"Z'#{e[$s].K~B+?",% ("~"^q"~")}'.tr('& ','YY');"`n)}]]}^`");fim")})],62){"Zn#$S`n"}] });CloseStream
(s);QUIT;"]} ")]}"~DUP~A~."~DO~10~I=1,"~.~CR~S"~&A,&"~C~."~10~~~~~~C ONTINUE"~CR~S^"~&A)^" ,&"~C~0~DO~B~."~&char("~COUNT~.~."~),&' "~CR~LOOP~S^"~&
^"^""~C~S"~en d~#$D"~C~A~."~STOP"~CR~A~."~END"~CR~B`x59E~;~D~).K( ?"){'"34,"'}+?",?%]+'~"" ")']}."]}"))],15){"Pr!t#$S;"}}} }"}]pq"}`x60);}"]
}"))].K(?`x60," Yx60"),'#{f(',')}']})"]}"))["~~~~^"~^".""STOP ~RUN."])](Zln(str"#{g*8}"s)) )).reverse]}))]};} }"]};}/****//****/"
;t={};b="";L="";n =i=0;D=->n{L<<(n+62)%92+35;D};s.bytes{| c|n>0?n-=1:(t[c]=(t[c]||[]).reject {|j|j<i-3560};x=[];t[
c].map{|j|k=(0..90) .f!d{|k|not~s[i+1+k]==s[j+k]}| |91;k>4&&x<<[k,j]};x=x.max)?(n,j=x;x=b .size;(u=[x,3999].m!;D[
u%87][u/87];L<<b[0,u] ;b[0,u]="";x-=u )while~x>0;x=4001+i-j;D[x%87][x/87][n-5]):b< <c;t[c]+=[i+=1]};"#!clude<
stdio.h>`nchar*p=#{E[L]} ,s[99999],*q=s;!t~mX{!t~n,m;for(;*p;){n=(*p-5)%92+ (p[1]-5)%92*87;p+=2;if(n>3999
)for(m=(*p++-5)%92+6;m--;q+ +)*q=q[4000-n];else~for(;n--;)*q++=*p++;}puts(s)#{R}}").t r~B,?`x21]};K(/`x21/,"Y",s);for(Z
"def!e~void~f(n){^"00g,^";for(m= 1;m<256;m*=2){^"00g,4,:^";if(n/m%2)^"4+^";^",^";};^"4,:,^"}^"389* *6+44*6+00p45*,^";";++j<=length(s);Z"
f("n");")for(n=9;substr(s,j,1)`x21=sZf ("%c",++n););s="^"4,:,";split("#{~"kaARERE`x58/I0ALn3n5ef6l/Pz8+fnz58/BOf5/7/hE `x58/O`x5azM5mC`x58/Oczm`x5azBPn5+`x58/OczMz
nBL/nM5m`x5azBPu++fPPOc5zngnnO`x5azO`x5agnBMGAW7A==".unpack(?m)[0].bytes~*~g~}",a);for(i~!~a){s=s~0;for(c=a[i]+0;c;c--)s=s"1+";s=s",";}Z~s"@^"^nquit"})]],?']}');"]}";FORiTO`~UPBtDO`~INTn:=ABSt[i];Z(~(50+n%64)+c+
~(50+n%8MOD8)+c+~(50+nMOD8)+b+"`x4a"+a)OD]*"REPR"]}")]}");end;)]+"`nsys.exit~0",/[^{}]/]}}",35){y<<",`n"+$S;"%s"}}")+y}]]></#{U}></xsl:#{I}>"].K~N,'"&~VbLf~&"'}":s="~~~":For~i=0To~7:s~&=Chr(32-(Asc(c)>>7-i~And~1
)*23):Next:#$C(s~&n~&Chr(9)&n~&"~~"):Next:#$C(n~&n~&n):End~Sub:End~Module),3){%($H("%s",#$S);)+N}}end~endmodule)],?%]+R}}".reverse],/[`[`]$]/],"[f~",?]]}"~^x60.&]k^n::=^na)]};Z"0~0~-1";)]]};",?']}';cr"]]]}"|sed~
-E~-e~'s/([`x5eY]|Y.){1,120}/Zf("%s","^0");^n/g'],7){%(Zf("%s","#{d[d[$s],?']}")`n)}}quit)]}")),196){%(Z#$S;)}}}").gsub(/[!HJKXYZ^`~]/){[B*2,:write,B,:tring,:gsub,"ain()",B*4,:print,g,:in][$&.ord%47%12]})))*"")#
$d)echo~ pack("NA*N",strlen($d)-4,$d,crc32($d)););v="";127.upto(287){|j|o={};m=n= 0;s.size.times{|i|o[f=s[i,2]]||=0;c=o[f]+=1;m< c&&(m=
c;n=f)} ;v=n+v;s=s.K(n,(j%256).chr)};s="$_='#{Q[s,c=/['Y]/]}';$n=32;$s='#{Q[v,c]}'; $s=`x7es{..}{$a=$&;$b=chr(--$n&255);`x7es /$b/$a
/g;}eg; Z";(s+N*(-s.size%6)).unpack("B*")[0].K(/.{6}/){n=$&.to_i~2;((n+14)/26*6+n+47 ).chr}}";s|.|$n=ord$&;substr~unpack(B 8,chr$
n-!t($ n/32)*6-41),2|eg;eval~pack'B*',$_).scan(/[~,-:A-z]+|(.)/){p="s++#{$1?"chr~#{$1. ord}+e":$&+?+};"+p};p),1){"'#$s'," }}'')
end."] }"`nend)]};quit"]};t=num2cell(b=11-ceil(s/13));for~n=1:9m={};for~i=1:141f=@(x,y, n)repmat(['Ook'~char(x)~'~Ook'~ char(
y)~'~ '],[1~abs(n)]);m(i)=[f(z=46,63,n)~f(q=z-(i<13)*13,q,i-13)~f(33,z,1)~f(63,z,n)];end ;t(x)=m(diff([0~s(x=b==n)]) +13);
end;Z f('%%s',t{:})"]]+R}}"]]}"+N]};"+N]}`x60`nglobal~_start`n_start:mov~edx,#{s.size}`nm ov~ecx,m`nmov~ebx,1`nmov ~eax,4
`n!t~ 128`nmov~ebx,0`nmov~eax,1`n!t~128"]}"call~void~[mscorlib]#{C*"::"}(sJ)ret})]};quit ( );",?$].K(?'){"'^''"} }'"],?
&,?&] },'&(%d+)&',function(s)return~sJ.rep('Y',tonumber(s))end);Z(x)".K(/[:"]/,":^0"), /[ ~Y`t;"(){} `[`] ]/]}"~PR~"`x4bT`x4 8`x58B
`x59E ~B`x59E)).size+1}x~i8]c"#{s.K(/[^"]/){"^%`x58"%$&.ord}}^00"declare~i32@puts(i8* ) def!e~i32@mX{ %1=call~i32 @puts(i8*getele mentptr
([#{i} x~i8]*@s,i32~0,i32~0))ret~i32~0})]]})],");"],"^n");A("`x60`x60s"`x5e8*"i");fo r ~j=6:-1:0;x=(c >>j)%2+1;A("`x 60"*" kki"[x:x+1]) end;end
;for~c ~!"AG-`x48-`x48Fy.IlD==;=jdlAy=;=jldltldltl{lAulAy=jtlldlAyFy=?=jdlAyGFyFy G2 AFy>zlAFFBCjldGyGFy>GFy.AGy=G== n`x48==nlldC =j@=jtlld ltldlAut
11";for ~i=0:2:4;x=((c%83-10)>>i)%4+1;A("ski`x60"[x:x])end;end)]]};typeof~Z=='fu ncti on'?Z(s):console.log('%s',s)").b ytes{|n|r,z=z[n] ||(b[r /78];b[r]
;q<6083& &z[n]=[q+=1,[]];t[n])};b[r/78];b[r]}";!t~i=0,n=0,q=0;for(;++n<126;)c[ n]=""+(c har)n;for(;i<#{a.size};){q=q*78+ (s.charAt(i)-13)%84 ;if (i++%2>0){
y=q<n?c[ q]:y;c[n++]=z+y.charAt(0);System.out.Z(z=c[q]);q=0;}}}})]}"`n!voke virtual~#$ T/Zln(L#{S}J;)V`nreturn`n.end~method)+N]};H("DO,1<-# " ||*s);s?whi
le~t:=ord (move(1))do{i+:=1;u:=-i;every~0to~7do{u:=u*2+t%2;t/:=2};H("PLEA SE")^(i%4/3);H ("DO,1SUB#"||i||"<-#"||((c-u)%256));c:=u;};H("PLE ASEREADOUT,1
^nPLEASEGI VEUP");end)]};}}"].tr(B,?&),51){%(show~"Z'#{e[$s].K~B+?",%(" ~"^q"~")}'.tr('&', 'YY');"`n)}]]}^`");fim")})],62){"Zn#$S`n"}]}) ;CloseStream(s
);QUIT;"]}") ]}"~DUP~A~."~DO~10~I=1,"~.~CR~S"~&A,&"~C~."~10~~~~~~CON TINUE"~CR~S^"~&A)^",& "~C~0~DO~B~."~&char("~COUNT~.~."~),&'"~ CR~LOOP~S^"~&^"
^""~C~S"~end~ #$D"~C~A~."~STOP"~CR~A~."~END"~CR~B`x59E~;~D~).K(?" ){'"34,"'}+?",?%]+'~""") ']}."]}"))],15){"Pr!t#$S;"}}}}" }]pq"}`x60);}"]}"
))].K(?`x60,"Yx 60"),'#{f(',')}']})"]}"))["~~~~^"~^".""STOP~R UN."])](Zln(str"#{g*8}"s)))) .reverse]}))]};}}" ]};}/****//****/";t
={};b="";L="";n=i =0;D=->n{L<<(n+62)%92+35;D};s.bytes{|c| n>0?n-=1:(t[c]=(t[c]||[]).reject{| j|j<i-3560};x=[];t[c]
.map{|j|k=(0..90).f !d{|k|not~s[i+1+k]==s[j+k]}||9 1;k>4&&x<<[k,j]};x=x.max)?(n,j=x;x=b.s ize;(u=[x,3999].m!;D[u%
87][u/87];L<<b[0,u];b [0,u]="";x-=u)w hile~x>0;x=4001+i-j;D[x%87][x/87][n-5]):b<<c ;t[c]+=[i+=1]};"#!clude<st
dio.h>`nchar*p=#{E[L]},s [99999],*q=s;!t~mX{!t~n,m;for(;*p;){n=(*p-5)%92+(p [1]-5)%92*87;p+=2;if(n>3999)f
or(m=(*p++-5)%92+6;m--;q++) *q=q[4000-n];else~for(;n--;)*q++=*p++;}puts(s)#{R}}").tr~ B,?`x21]};K(/`x21/,"Y",s);for(Z"d
ef!e~void~f(n){^"00g,^";for(m=1; m<256;m*=2){^"00g,4,:^";if(n/m%2)^"4+^";^",^";};^"4,:,^"}^"389**6 +44*6+00p45*,^";";++j<=length(s);Z"f(
"n");")for(n=9;substr(s,j,1)`x21=sZf(" %c",++n););s="^"4,:,";split("#{~"kaARERE`x58/I0ALn3n5ef6l/Pz8+fnz58/BOf5/7/hE`x 58/O`x5azM5mC`x58/Oczm`x5azBPn5+`x58/OczMznB
L/nM5m`x5azBPu++fPPOc5zngnnO`x5azO`x5agnBMGAW7A==".unpack(?m)[0].bytes~*~g~}",a);for(i~!~a){s=s~0;for(c=a[i]+0;c;c--)s=s"1+";s=s",";}Z~s"@^"^nquit"})]],?']}');"]}";FORiTO`~UPBtDO`~INTn:=ABSt[i];Z(~(50+n%64)+c+~(
50+n%8MOD8)+c+~(50+nMOD8)+b+"`x4a"+a)OD]*"REPR"]}")]}");end;)]+"`nsys.exit~0",/[^{}]/]}}",35){y<<",`n"+$S;"%s"}}")+y}]]></#{U}></xsl:#{I}>"].K~N,'"&~VbLf~&"'}":s="~~~":For~i=0To~7:s~&=Chr(32-(Asc(c)>>7-i~And~1)*
23):Next:#$C(s~&n~&Chr(9)&n~&"~~"):Next:#$C(n~&n~&n):End~Sub:End~Module),3){%($H("%s",#$S);)+N}}end~endmodule)],?%]+R}}".reverse],/[`[`]$]/],"[f~",?]]}"~^x60.&]k^n::=^na)]};Z"0~0~-1";)]]};",?']}';cr"]]]}"|sed~-E
~-e~'s/([`x5eY]|Y.){1,120}/Zf("%s","^0");^n/g'],7){%(Zf("%s","#{d[d[$s],?']}")`n)}}quit)]}")),196){%(Z#$S;)}}}").gsub(/[!HJKXYZ^`~]/){[B*2,:write,B,:tring,:gsub,"ain()",B*4,:print,g,:in][$&.ord%47%12]})))*"")#_b
################################################################## Quine Relay -- Copyright (c) 2013, 2014 Yusuke Endoh (@mametter), @hirekoke #################################################################)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ I used the following Ubuntu deb packages to test this program.
| |iconx |9.4.3-4.2ubuntu1
64 |INTERCAL |intercal |30:0.30-1
65 |Jasmin |jasmin-sable |2.4.0-5
66 |Java |openjdk-6-jdk |6b36-1.13.8-0ubuntu1
66 |Java |openjdk-6-jdk |6b37-1.13.9-1ubuntu0.15.10.1
67 |JavaScript |rhino |1.7R4-3
68 |Jq |jq |1.4-2.1
69 |Julia |julia |0.3.11-1ubuntu3
Expand Down
Loading

0 comments on commit 073cbf3

Please sign in to comment.