Recent public codes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C++0x
- C99 strict
- CLIPS
- Clojure
- COBOL
- COBOL 85
- Common Lisp (clisp)
- D (dmd)
- Erlang
- F#
- Factor
- Falcon
- Forth
- Fortran
- Go
- Groovy
- Haskell
- Icon
- Intercal
- Java
- JavaScript (rhino)
- JavaScript (spidermonkey)
- Lua
- Nemerle
- Nice
- Nimrod
- Objective-C
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- SQL
- Tcl
- Text
- Unlambda
- VB.NET
- Whitespace
-
1 2 3 4 5 6 7 8 9
import std.stdio; int foo(int){return 1;} void main() { //auto de = (a){return a;}; writeln(foo(1)); //writeln(de(1));
-
1 2 3 4 5 6 7 8 9
import std.stdio; int foo(int){return 1;} void main() { auto de = (a){return a;}; writeln(foo(1)); writeln(de(1));
-
1 2 3 4 5 6 7 8
struct FastAppend(T) { alias ElementType!T E; Appender!T payload; alias payload this; void opCatAssign(E e) { payload.put(e); }
...
-
1 2 3 4 5 6 7 8 9
uint f(uint i) { return i; } struct S (alias func=null) { enum bool hasFunc = !(func == null); // *** error line *** } unittest { // ok auto s1 = S!()(); writeln(s1.hasFunc); // not ok
...
-
1 2 3 4 5 6 7 8
(define (margreteborg row col) (cond ((< row col) #f) ((or (= 0 col) (= row col)) 1) (else (+ (margreteborg (- row 1) col) (margreteborg (- row 1) (- col 1)))))) N (margreteborg 2 2)+(margreteborg 3 2)+(margreteborg 11 2) (margreteborg 6 3)+(margreteborg 3 2) .(margreteborg 12 5)- (margreteborg 5 3)
...
-
1 2 3 4 5 6 7 8 9
import std.stdio; void foo(T...)(T args) in { static if (args.length == 4 || args.length == 5) { static if (is(typeof(args[0]) == int)) {
...
-
1 2 3 4 5 6 7 8 9
import std.stdio; void main() { // values unlikely to change soon immutable inchPerFoot = 12; immutable cmPerInch = 2.54; auto a = 5; a = 5.5; // loop'n write
...
-
1 2 3 4 5 6 7 8 9
import std.stdio; void main() { // values unlikely to change soon immutable inchPerFoot = 12; immutable cmPerInch = 2.54; a = 5; a = 5.5; // loop'n write
...
-
1 2 3 4 5 6 7 8 9
import std.stdio; void main() { // values unlikely to change soon immutable inchPerFoot = 12; immutable cmPerInch = 2.54; // loop'n write foreach (feet; 5 .. 7) {
...
-
1 2 3 4 5 6 7 8 9
mixin template Forward(string foo, string name) { mixin("final @property auto ref " ~ name ~ "() { return " ~ foo ~ "; }"); } class Foo { int z; Foo child;
...
-
1 2 3 4 5 6 7 8 9
module test; template Forward(alias foo) { final @property auto ref Forward() { return foo; } } class Foo {
...
-
1 2 3 4 5 6 7 8 9
import std.stdio; void main() { string a = "Hello "; string b = "world"; writeln(a.b); for (auto i = 0; i < 10; i++) writeln("Number ", i); }
-
1 2 3 4 5 6 7 8 9
import std.stdio; void main() { string a = "Hello "; string b = "world"; writeln(a + b); for (auto i = 0; i < 10; i++) writeln("Number ", i); }
-
1 2 3 4 5 6 7 8 9
import std.stdio; void main() { string a = "Hello "; char b[] = "world"; writeln(a + b); for (auto i = 0; i < 10; i++) writeln("Number ", i); }
-
1 2 3 4 5 6
import std.stdio; void main() { for (i = 0; i < 10; i++) writeln("Number ", i); }
-
1 2 3 4 5 6 7 8 9
import std.stdio; void main() { auto lines = 0; auto sumLength = 0; foreach (line; stdin.byLine()) { ++lines; sumLength += line.length; }
...
-
1 2 3 4 5 6 7 8 9
import std.stdio; void main() { auto lines = 0; auto sumLength = 0; foreach (line; stdin.byLine()) { ++lines; sumLength += line.length; }
...
-
1 2 3 4 5 6 7 8 9
import std.stdio; void main() { ulong lines = 0; double sumLength = 0; foreach (line; stdin.byLine()) { ++lines; sumLength += line.length; }
...
-
1 2 3 4 5 6 7 8 9
import std.stdio; void main() { ulong lines = 0; double sumLength = 0; foreach (line; stdin.byLine()) { ++lines; sumLength += line.length; }
...
-
1 2 3 4 5 6 7 8 9
import std.concurrency, std.stdio, std.typecons; int main() { auto tid = spawn(&foo); // spawn a new thread running foo() foreach(i; 0 .. 10) tid.send(i); // send some integers tid.send(1.0f); // send a float
...
-
1 2 3 4 5 6
import std.stdio; void main() { writeln('\0' == false); }
-
1
0><|=02|), )-(4|_||°7574|)7 |)32 3|\|61!5()-(3|\| 624|=5()-(4|=7 0><|=02|)5)-(!23 I33)-(32I33267 3!|\|!63 31!73|_||\|!\/325!7°A°73|\|. |_||\||) |)|_| 63)-(°O°257 4|_|()-( z|_| 3!|\|32 31!73 - |)3|\||\| |)|_| |<4|\||\|57 |)!353|\| 73><7 1353|\| |)32 !|\| 13375|°34|< 635()-(2!3I33|\| !57. \/\/45 ? |)|_| )-(457 \/02)-(32 |\|0()-( |\|!3 \/\/45 |)4\/0|\| 63)-(°O°27 ? 72°O°573 |)!()-( 35 63)-(7 \/!313|\| 50. 3|\|7\/\/3|)32 I3!57 |)|_| °U°I332 |)3|\| )-(!|\|7 )-(!32 )-(32 63|<0/\/\/\/\3|\| 0|)32 |)|_| \/\/4257 5()-(0|\| !/\/\/\/\32 3!|\| \/\/!553|\||)32. 3!|\|3213!, _|37z7 63)-(7 35 4I3 !|\| |)!3 |\|47|_|2. |)3|\| (4()-(3 5|_|()-(3|\|. |_||\||) |)3|\| |=!|\||)357 |)|_| )-(!32: |\|02|) \/!32 4()-(7 624|) |\||_|11 4()-(7 |°|_||\||<7 \/!32 5!3I33|\| |=°U°|\||= 057 |\||_|11 3!|\|5 53()-(5 624|) 3!|\|5 |=°U°|\||= |°|_||\||<7 |\||_|11 |\|3|_||\| |=°U°|\||= \/!31 5|°4ß |_||\||) 32|=016.
-
1 2 3 4 5 6 7 8 9
import std.stdio; class foo { this(int a = 0) { this.a = a; } @property auto ref b() { return a; } public int a;
...
-
1 2 3 4 5 6 7 8 9
import std.stdio; class foo { this(int a = 0) { this.a = a; } @property auto ref b() { return a; } public int a; }
...
-
1 2 3 4 5 6 7
import std.c.stdio; int main() { int x; while (scanf("%d", &x) && x!=42) printf ("%d\n", x); return 0; }
-
1 2 3 4 5 6
void main() { } static assert(false, "hoge\nfuga");
-
1 2 3 4 5
import std.stdio; void main() { writeln("Current date: ", __DATE__, ", current time: ", __TIME__); }
-
1
-
1 2 3 4 5 6 7 8 9
import std.stdio; void foo(T...)(T args) { writeln("runtime"); static assert(is(T[0] == int)); } void main() {
...
-
1 2 3 4 5 6 7 8 9
import std.stdio; void foo(T...)(T args) { writeln("runtime"); static assert(is(T[0] == int)); } void main() {
...


