print file

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Please display contents of the file.

/* ファイルの中身を見られると都合が悪いのであれば、問題を消してくれても構いません > shinh さん */

Options

now post-mortem time, all source codes will be revealed

Sample input:_

/usr/include/errno.h

Sample output:

/* Copyright (C) 1991,92,93,94,95,96,97,2002 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, write to the Free
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
   02111-1307 USA.  */

/*
 *	ISO C99 Standard: 7.5 Errors	<errno.h>
 */

#ifndef	_ERRNO_H

/* The includer defined __need_Emath if he wants only the definitions
   of EDOM and ERANGE, and not everything else.  */
#ifndef	__need_Emath
# define _ERRNO_H	1
# include <features.h>
#endif

__BEGIN_DECLS

/* Get the error number constants from the system-specific file.
   This file will test __need_Emath and _ERRNO_H.  */
#include <bits/errno.h>
#undef	__need_Emath

#ifdef	_ERRNO_H

/* Declare the `errno' variable, unless it's defined as a macro by
   bits/errno.h.  This is the case in GNU, where it is a per-thread
   variable.  This redeclaration using the macro still works, but it
   will be a function declaration without a prototype and may trigger
   a -Wstrict-prototypes warning.  */
#ifndef	errno
extern int errno;
#endif

#ifdef __USE_GNU

/* The full and simple forms of the name with which the program was
   invoked.  These variables are set up automatically at startup based on
   the value of ARGV[0] (this works only if you use GNU ld).  */
extern char *program_invocation_name, *program_invocation_short_name;
#endif /* __USE_GNU */
#endif /* _ERRNO_H */

__END_DECLS

#endif /* _ERRNO_H */

/* The Hurd <bits/errno.h> defines `error_t' as an enumerated type so
   that printing `error_t' values in the debugger shows the names.  We
   might need this definition sometimes even if this file was included
   before.  */
#if defined __USE_GNU || defined __need_error_t
# ifndef __error_t_defined
typedef int error_t;
#  define __error_t_defined	1
# endif
# undef __need_error_t
#endif

Sample input:_

/golf/local/befunge.rb

Sample output:

#!/usr/bin/env ruby

def step
  @x = (@vx + @x) % @mx
  @y = (@vy + @y) % @my
end

def push(x)
  @s << x
end
def pop
  @s.pop || 0
end

def scanint
  c = STDIN.getc
  r = 0
  while c >= ?0 && c <= ?9
    r = r * 10 + c - ?0
    c = STDIN.getc
  end
  STDIN.ungetc(c)
  r
end

ops = {
  ?< => proc { @vx=-1; @vy=0 },
  ?> => proc { @vx=1; @vy=0 },
  ?^ => proc { @vx=0; @vy=-1 },
  ?v => proc { @vx=0; @vy=1 },
  ?_ => proc { @vy = 0; pop == 0 ? @vx=1 : @vx=-1 },
  ?| => proc { @vx = 0; pop == 0 ? @vy=1 : @vy=-1 },
  ?? => proc {
    r=rand(4)
    ops[r<1??v:r<2??^:r<3??<:?>].call
  },
  ?\ => proc {},
  ?# => proc { step },
  ?@ => proc { exit },

  ?" => proc {
    step
    while (c=@c[@y][@x]) != ?"
      push(c)
      step
    end
  },

  ?& => proc { push(scanint) },
  ?~ => proc { push(STDIN.getc) },
  ?. => proc { print(pop) },
  ?, => proc { putc(pop) },

  ?+ => proc { push(pop+pop) },
  ?- => proc { y=pop; push(pop-y) },
  ?* => proc { push(pop*pop) },
  ?/ => proc { y=pop; push(pop/y) },
  ?% => proc { y=pop; push(pop%y) },
  ?` => proc { push(pop-pop<0?1:0) },
  ?! => proc { push(pop==0?1:0) },

  ?: => proc { t=pop; push(t); push(t) },
  ?\\=> proc { y=pop; x=pop; push(y); push(x) },
  ?$ => proc { pop },

  ?g => proc { y=pop; x=pop; push(@c[y][x]) },
  ?p => proc { y=pop; x=pop; @c[y][x] = pop },
}



@c = ARGF.read.split(/\n/)

@mx = @c.map{|l|l.size}.max
@my = @c.size

@c = @c.map{|l|l.ljust(@mx)}

@x=@y=@vy=0
@vx=1
@s = []

while true
  opc = @c[@y][@x]
  op = ops[opc]
  if op
    op.call
  elsif opc.chr =~ /\d/
    push(opc-?0)
  else
    if opc
      raise "unknown command #{opc.chr}(#{opc})"
    else
      raise "out of bounds"
    end
  end

  step
#  puts "x=#@x y=#@y vx=#@vx vy=#@vy"
end

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1eban(cheat)130.20842007/08/03 11:08:030B / 8B / 5B
2kurimura130.20922007/08/03 20:23:140B / 8B / 5B
3shinh140.17922007/08/03 11:20:210B / 10B / 3B
4yvl150.15752007/08/05 00:01:140B / 11B / 3B
5niha210.16192007/08/03 22:43:320B / 16B / 4B
6eban220.16142007/08/03 11:28:220B / 18B / 2B
7tabasa170.07732007/10/01 09:43:540B / 11B / 5B
8inaniwa470.03492012/04/12 17:04:451B / 28B / 14B

Perl _

RankUserSizeTimeDateStatistics
1shinh120.09912007/08/03 11:37:020B / 6B / 5B
2eban(cheat)120.10422007/08/03 12:27:050B / 6B / 6B
3ott120.11852007/08/04 07:39:440B / 6B / 6B
4ott(cheat)120.09202007/08/04 07:40:220B / 6B / 6B
5eban180.06942007/08/03 11:20:410B / 11B / 6B
6ott(nocheat)180.09982007/08/04 07:58:480B / 9B / 8B
7nuko120.05862008/02/18 10:51:260B / ?B / ?B
8brx(test)120.06352013/09/10 05:58:370B / 6B / 5B
9it230.02272013/04/25 18:44:040B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1kt3k300.67822007/08/03 13:32:310B / 21B / 8B
2Defenestrator300.21712007/08/03 14:32:020B / 21B / 8B
3Mark Byers300.21932007/08/04 14:50:530B / 21B / 8B
4hirose300.25142007/08/04 16:18:030B / 21B / 8B
5zetamatta300.22202007/08/04 21:40:520B / 21B / 8B
6ch3ka300.05242010/12/11 23:22:080B / 21B / 8B
7inaniwa300.11172013/02/19 22:24:270B / 21B / 8B
8a490.14362013/09/16 14:19:360B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1daira300.40852007/08/07 19:36:120B / 19B / 10B
2o-cn150.12832009/12/04 02:04:260B / ?B / ?B
3vos170.04102009/11/21 23:15:350B / 6B / 10B
4ideo220.33652007/09/14 14:46:120B / ?B / ?B
5tamanegi220.24742008/01/02 21:11:300B / ?B / ?B
6tazyamah290.43912007/08/22 03:05:030B / 18B / 10B

Scheme _

RankUserSizeTimeDateStatistics
1kt3k210.19882007/08/04 08:59:240B / 13B / 7B
2pla220.16802007/08/10 23:49:420B / 14B / 7B
3pla(no exec)490.86252007/08/17 05:20:560B / 36B / 13B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima160.48962007/08/03 23:22:190B / 9B / 7B

Arc _

RankUserSizeTimeDateStatistics
1pooq177.19132009/10/06 22:05:300B / 10B / 6B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr251.93182010/01/31 23:43:570B / 18B / 7B
2uochan253.46432011/01/08 05:19:000B / ?B / ?B

Io _

RankUserSizeTimeDateStatistics
1murky-satyr242.29962008/02/10 04:08:580B / 16B / 7B

JavaScript _

RankUserSizeTimeDateStatistics
1nn240.04752011/10/15 16:03:260B / 17B / 6B
2madshall240.08212013/07/24 05:59:460B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1kt3k190.12222007/08/03 13:08:210B / 13B / 5B
2eban190.13472007/08/03 21:47:200B / 13B / 6B

Tcl _

RankUserSizeTimeDateStatistics
1kt3k240.09852007/11/25 05:10:230B / 16B / 4B

Xtal _

RankUserSizeTimeDateStatistics
1kt3k470.23862007/08/26 20:35:570B / 30B / 17B

Kite _

RankUserSizeTimeDateStatistics
1teebee(exec)320.06422011/10/25 07:04:460B / 20B / 12B
2teebee690.02382012/07/07 02:37:250B / 51B / 17B

Icon _

RankUserSizeTimeDateStatistics
1pooq380.13212012/04/04 18:45:060B / 26B / 8B

REXX _

RankUserSizeTimeDateStatistics
1pooq90.07582012/04/12 19:09:160B / 4B / 4B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr260.43832008/04/11 03:21:270B / 19B / 6B
2m-satyr(exec)270.39902007/12/24 11:51:350B / 19B / 7B

Prolog _

RankUserSizeTimeDateStatistics
1kt3k200.21092007/08/03 21:00:590B / 10B / 9B

Forth _

RankUserSizeTimeDateStatistics
151b(sh)100.69202007/08/06 12:15:350B / 6B / 3B
251b680.08432007/08/06 19:46:020B / 42B / 9B
3kt3k100.16952007/11/12 16:29:410B / 6B / 2B
451b340.10882010/04/03 23:28:270B / 27B / 3B

BASIC _

RankUserSizeTimeDateStatistics
1yt270.09122007/08/06 11:22:470B / ?B / ?B
2yt170.18172007/08/23 18:31:570B / ?B / ?B

Perl6 _

RankUserSizeTimeDateStatistics
1kt3k150.65172007/08/03 13:00:010B / 10B / 4B
2kt3k_171.10192007/08/12 17:40:510B / 12B / 4B
3murky-satyr134.44822010/08/08 09:44:100B / 11B / 0B

Erlang _

RankUserSizeTimeDateStatistics
151b781.69452007/08/28 15:04:290B / 42B / 33B
251b(no exec)920.58282007/12/10 19:42:370B / 49B / 40B

J _

RankUserSizeTimeDateStatistics
1pooq200.25812007/08/09 20:52:410B / 11B / 9B
2kt3k130.25132008/02/23 21:04:470B / 6B / 6B
3pooq180.36992007/08/19 21:30:430B / 9B / 9B
4pooq(exec)210.40342007/08/28 21:15:330B / 9B / 11B

A+ _

RankUserSizeTimeDateStatistics
1kt3k80.47002007/09/05 00:46:380B / 4B / 3B

K _

RankUserSizeTimeDateStatistics
1pooq80.18932012/03/20 17:25:020B / 4B / 3B

C _

RankUserSizeTimeDateStatistics
1kurimura260.11082007/08/03 20:24:260B / 14B / 12B
251b260.13052007/08/04 23:03:300B / 14B / 12B
351b(no exec)550.04532007/08/05 00:48:310B / 32B / 23B
451b(no exec)490.06122009/08/30 02:29:550B / 29B / 20B
5inaniwa490.00062009/12/03 08:22:560B / 29B / 20B
6tabasa1070.05052007/10/01 10:19:151B / 66B / 36B

C++ _

RankUserSizeTimeDateStatistics
1kt3k390.27332007/08/04 08:58:500B / 23B / 14B
2inaniwa440.04812010/02/17 08:28:410B / 27B / 15B

D _

RankUserSizeTimeDateStatistics
1kurimura490.17392007/08/12 10:00:360B / 34B / 13B
251b490.13892007/08/12 16:38:150B / 34B / 13B
351b(no exec)720.06052007/08/14 02:45:350B / 52B / 18B
4kurimura(no exec)740.05142007/08/12 10:06:300B / 48B / 24B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai(exec)300.20602007/08/05 00:22:090B / 20B / 9B
2m.ukai520.17742007/08/05 00:16:221B / 37B / 14B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa320.07992007/08/03 08:23:520B / 25B / 7B
2Defenestrator320.07952007/08/03 14:36:120B / 25B / 7B
3moriA320.20492007/08/04 19:01:450B / 25B / 7B

ObjC _

RankUserSizeTimeDateStatistics
1kt3k260.11172007/08/03 12:53:130B / 14B / 11B

Pascal _

RankUserSizeTimeDateStatistics
1pooq670.14262009/01/25 11:34:230B / 49B / 15B
2uru820.07812009/01/29 22:48:060B / 62B / 17B

Fortran _

RankUserSizeTimeDateStatistics
1kt3k260.22012007/08/03 13:02:520B / 17B / 6B

Nemerle _

RankUserSizeTimeDateStatistics
1murky-satyr660.73592008/11/03 07:35:190B / 54B / 11B

COBOL _

RankUserSizeTimeDateStatistics
1kt3k710.20982007/08/03 13:01:350B / 56B / 12B

Curry _

RankUserSizeTimeDateStatistics
1pooq320.10442009/11/14 00:46:540B / 25B / 7B

Maxima _

RankUserSizeTimeDateStatistics
1pooq180.66362009/02/11 02:24:250B / 10B / 8B

Octave _

RankUserSizeTimeDateStatistics
1inaniwa340.86192011/03/21 14:18:540B / 22B / 12B

REBOL _

RankUserSizeTimeDateStatistics
1leonid300.13002009/02/11 17:45:350B / 24B / 3B
2oofoe370.05942009/02/11 17:31:070B / 30B / 4B

AWK _

RankUserSizeTimeDateStatistics
1kt3k150.12442007/08/03 20:53:260B / 9B / 5B
2eban150.09192007/08/03 21:33:020B / 8B / 7B
3waldner150.06102008/11/09 22:41:400B / 9B / 6B
4yamaya210.06092008/12/26 03:24:050B / 12B / 9B
5tabasa330.05412007/11/21 11:40:130B / 21B / 10B

sed _

RankUserSizeTimeDateStatistics
1eban(cheat)90.10042007/08/03 18:05:550B / 4B / 5B
2emoken90.12432007/08/14 17:35:390B / 7B / 2B
3hirose530.05082007/08/03 16:18:200B / 39B / 12B
4tabasa100.06982007/11/21 12:32:560B / 5B / 4B
5waldner100.06462008/11/09 22:37:280B / 5B / 4B

Bash _

RankUserSizeTimeDateStatistics
1eban70.55232007/08/03 10:44:300B / 4B / 3B
2kt3k70.12902007/08/03 12:49:040B / 4B / 2B
3shinh70.14642007/08/03 22:45:270B / 4B / 2B
4waldner70.07592008/11/09 22:45:540B / 4B / 3B
5kurimura70.09522009/03/22 14:34:480B / 4B / 2B
6zzo3870.06142010/03/20 09:45:040B / ?B / ?B
7KEN390.06962007/10/03 16:14:020B / 8B / 0B
8vos90.02492009/11/21 23:12:240B / 6B / 2B
9r00t100.06342010/12/29 09:54:390B / 6B / 3B
10tabasa130.44982007/10/01 09:59:120B / 9B / 2B

Zsh _

RankUserSizeTimeDateStatistics
1eban50.33092010/02/13 02:55:310B / 2B / 3B

xgawk _

RankUserSizeTimeDateStatistics
1kt3k150.10472007/08/03 20:47:080B / 9B / 5B
2eban150.10012007/08/03 22:40:350B / 9B / 6B

m4 _

RankUserSizeTimeDateStatistics
151b(exec)190.10622008/01/01 05:06:270B / 10B / 9B
251b560.12552008/08/22 18:35:302B / 39B / 14B
3tabasa1440.03762007/11/21 18:47:332B / 93B / 46B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)350.62162007/08/04 17:38:2115B / 13B / 7B
2yshl670.61902007/08/04 17:38:050B / 50B / 9B
3yshl(pipe)(bin)300.44292008/02/22 08:12:2712B / 11B / 7B
4yshl(pipe)510.43052008/02/22 08:11:580B / 36B / 10B

R _

RankUserSizeTimeDateStatistics
1m-satyr(exec)172.69892008/05/29 20:32:280B / 10B / 6B
2murky-satyr352.51962008/05/13 10:22:080B / 22B / 12B

Brainfuck _

RankUserSizeTimeDateStatistics
1kimiyuki53050.13342016/03/25 02:28:130B / 2003B / 2583B

GolfScript _

RankUserSizeTimeDateStatistics
1tails160.07212013/07/25 08:59:470B / 3B / 12B
2leonid180.39622007/12/15 12:23:520B / 7B / 10B
3irori270.24802007/12/15 21:53:540B / 7B / 19B
4tabasa300.19122008/02/22 23:35:340B / ?B / ?B
5kt3k41990.49072007/12/15 12:11:170B / 2493B / 724B

Vim _

RankUserSizeTimeDateStatistics
1eban90.20892008/01/07 03:15:041B / 8B / 0B
2pla100.30402008/01/07 03:08:252B / 8B / 0B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr90.39922008/07/23 01:22:360B / 5B / 3B

Groovy _

RankUserSizeTimeDateStatistics
1nn387.30012008/05/05 02:00:460B / 25B / 11B
2murky-satyr425.86632008/02/19 00:47:260B / 30B / 10B
3tabasa1506.35582008/02/15 08:12:024B / ?B / ?B

Logo _

RankUserSizeTimeDateStatistics
1teebee330.06322011/04/12 04:31:580B / 22B / 10B

Language Ranking_

RankLangUserSizeScore
1Zsheban510000
2Basheban77142
3A+kt3k86250
4Kpooq86250
5sedeban(cheat)95555
6Vimeban95555
7gorubymurky-satyr95555
8REXXpooq95555
9Forth51b(sh)105000
10Perlshinh124166
11Rubyeban(cheat)133846
12Jkt3k133846
13Perl6murky-satyr133846
14xgawkkt3k153333
15AWKkt3k153333
16PHPo-cn153333
17Common LISPkozima163125
18GolfScripttails163125
19BASICyt172941
20Rm-satyr(exec)172941
21Arcpooq172941
22Maximapooq182777
23Luakt3k192631
24m451b(exec)192631
25Prologkt3k202500
26Schemekt3k212380
27Tclkt3k242083
28Iomurky-satyr242083
29JavaScriptnn242083
30Clojuremurky-satyr252000
31ObjCkt3k261923
32Fortrankt3k261923
33Ckurimura261923
34Smalltalkmurky-satyr261923
35Pythonkt3k301666
36OCamlm.ukai(exec)301666
37Postscriptyshl(pipe)(bin)301666
38REBOLleonid301666
39Haskellnotogawa321562
40Currypooq321562
41Kiteteebee(exec)321562
42Logoteebee331515
43Octaveinaniwa341470
44Groovynn381315
45Iconpooq381315
46C++kt3k391282
47Xtalkt3k471063
48Dkurimura491020
49Nemerlemurky-satyr66757
50Pascalpooq67746
51COBOLkt3k71704
52Erlang51b78641
53Brainfuckkimiyuki53059

Referer

Note that, they may contain spoilers.

return top