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

3번째 줄: 3번째 줄:
*예시: http://stackoverflow.com/I-WANT-404-NOT-FOUND
*예시: http://stackoverflow.com/I-WANT-404-NOT-FOUND
*파일명: polyglot-404.png
*파일명: polyglot-404.png
*3행은 [[브레인퍽]] 코드
*4행은 C, Python, Ruby, Perl 등에서 작동하는 코드


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

2015년 8월 20일 (목) 15:03 판

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 같이 보기