"스택오버플로우 404 페이지 소스코드"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(사용자 2명의 중간 판 4개는 보이지 않습니다)
6번째 줄: 6번째 줄:
*4행은 Python, Ruby, Perl 등에서 작동하는 코드
*4행은 Python, Ruby, Perl 등에서 작동하는 코드


http://cdn.sstatic.net/stackoverflow/img/polyglot-404.png
https://cdn.sstatic.net/Sites/stackoverflow/img/polyglot-404.png


==실행해보기==
==실행해보기==
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# cat 404.txt
[root@zetawiki ~]# cat 404.txt
# define v putchar
# define v putchar
16번째 줄: 16번째 줄:
print(202*2);exit();
print(202*2);exit();
#define/*>.@/exit()
#define/*>.@/exit()
</source>
</syntaxhighlight>


;Perl
{{소스헤더|Perl}}
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# perl 404.txt
[root@zetawiki ~]# perl 404.txt
404
404
</source>
</syntaxhighlight>


;PHP
{{소스헤더|PHP}}
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# php -r "`cat 404.txt`"
[root@zetawiki ~]# php -r "`cat 404.txt`"
404
404
</source>
</syntaxhighlight>


;Python
{{소스헤더|Python}}
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# python 404.txt
[root@zetawiki ~]# python 404.txt
404
404
</source>
</syntaxhighlight>


;Ruby
{{소스헤더|Ruby}}
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# ruby 404.txt
[root@zetawiki ~]# ruby 404.txt
404
404
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 02:39 기준 최신판

1 개요[ | ]

스택오버플로우 404 페이지 코드

 

2 실행해보기[ | ]

[root@zetawiki ~]# cat 404.txt
# define v putchar
#   define print(x) main(){v(4+v(v(52)-4));return 0;}/*
#>+++++++4+[>++++++<-]>++++.----.++++.*/
print(202*2);exit();
#define/*>.@/exit()
Perl
[root@zetawiki ~]# perl 404.txt
404
PHP
[root@zetawiki ~]# php -r "`cat 404.txt`"
404
Python
[root@zetawiki ~]# python 404.txt
404
Ruby
[root@zetawiki ~]# ruby 404.txt
404

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}