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
- Java7
- 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
x = int(input()) while x != 32 printl(x) x = int(input()) end
-
1 2 3 4 5 6 7 8 9
<?php /* Computer Science Stephen Thomas March 4, 2011 */ $a = 0; while ($a <100) $a = $a + 1; endwhile;
-
1 2 3 4 5 6 7 8 9
load regex fin = InputStream( args[0] ) re=Regex('\d+') count=0 stdin=stdIn() s=' ' * 4096 rest = "" //for s in stdin.grabLine
...
-
1 2 3 4 5 6 7 8 9
load regex fin = InputStream( args[0] ) re=Regex('\d+') count=0 stdin=stdIn() s=' ' * 4096 rest = "" //for s in stdin.grabLine
...
-
1 2 3 4 5 6 7 8 9
load regex; re=Regex('\d+') count=0 stdin=stdIn() s='' //for s in stdin.grabLine while stdin.readLine(s) if re==s:count++ end
...
-
1 2 3 4 5 6 7 8 9
import java.io.DataInputStream; class parastr { public static void main(String args[]); { DataInputStream in=new DataInputStream(System.in); int N1=0; int N2=0; String s="";
...
-
1 2 3 4 5 6
def x=0 def q=int(input()) for i=1 to q x+=i end >x
-
1 2 3 4 5
x = int(input()) while x != 42 printl(x) x = int(input()) end
-
1 2 3 4 5 6 7 8 9
module les_declarations integer j, nbl,a,k,i,n,a1,ioerr,xx,mode,nv,lin,z,nbrch real o real(8) ray, nbr character(len=100) l,d,e,f,g,h,p,m,r,s,t,u,v, nom_molec character b,c, q, axe real,dimension(:,:), allocatable :: coord integer, dimension(:,:), allocatable :: tab
...
-
1 2 3 4 5 6 7 8 9
CalibreSwapDir = "/c:/temp" function fxFolder( folderName) > "Folder: ", folderName end function fxFile( fileName ) if fileName in [".", ".."]: return f = FileStat( fileName )
...
-
1 2 3 4 5 6 7 8 9
load bufext size = 4 data = "ciao" bitBuffer = QrBitBuf() bitBuffer.bitCount(int(args[0])).writeBits(0x4) for i in [0:size] bitBuffer.bitCount(8).writeBits(data[i][*0])
...
-
1 2 3 4 5 6 7 8 9
/* JINKEY system, Key activator. test.fal AJAX -- test (C) 2011 C.K.D. Sagl */
...
-
1 2 3 4 5 6 7 8 9
xb1lIHRvIG5lYnlsbyB0xJvFvmvDqT8gSmVuIHBybyDDunBsbm9zdCBwcm8gbm9ybcOhbG7DrSAo dGVkeSBuZXBvxI3DrXRhxI1vdsO9KSAgbGlkIC0gcHJvxI0gUG/FoXRvdm7DrT8gIEvDs2QgQmFz ZTY0LCBrdGVyw71tIGplIHRlbmhsZSB0ZXh0IHpha8OzZG92w6FuLCBwb3XFvsOtdsOhdGUgbWou ICAoYW5pxb4gdG8gdMWZZWJhIHbDrXRlKSB2ZSB2xaFlY2ggdmHFoWljaCBlbWFpbG92w71jaCB6 cHLDoXbDoWNoIGsgdG9tdSwgYWJ5IHNlIGsgdsOhbSBuZWJvIG9kIHbDoXMgZG9ixZllIHDFmWVu ZXNseSB2xaFlY2hueSBWYcWhZSBmb3RreSwgdmlkZWEsIHRleHR5IHMgxI1lc2tvdSBkaWFrcml0 aWtvdSBhIGppbsOpIHZ5Y2h5dMOhdmt5IChvYmVjbsOhIGJpbsOhcm7DrSBkYXRhIHNlIGvDs2R1 asOtIHBvIDYgYml0ZWNoIGRvIHRpc2tudXRlbG7DvWNoIDY0IHpuYWvFrywga3RlcsOpIGpzb3Ug cMWZZW5vc2l0ZWxuw6EgcG/FoXRvdm7DrW0gIE1JTUUgcHJvdG9rb2xlbSkuIFRha8W+ZSAgdGFr
...
-
1 2 3 4 5 6 7 8 9
xb1lIHRvIG5lYnlsbyB0xJvFvmvDqT8gSmVuIHBybyDDunBsbm9zdCBwcm8gbm9ybcOhbG7DrSAo dGVkeSBuZXBvxI3DrXRhxI1vdsO9KSAgbGlkIC0gcHJvxI0gUG/FoXRvdm7DrT8gIEvDs2QgQmFz ZTY0LCBrdGVyw71tIGplIHRlbmhsZSB0ZXh0IHpha8OzZG92w6FuLCBwb3XFvsOtdsOhdGUgbWou ICAoYW5pxb4gdG8gdMWZZWJhIHbDrXRlKSB2ZSB2xaFlY2ggdmHFoWljaCBlbWFpbG92w71jaCB6 cHLDoXbDoWNoIGsgdG9tdSwgYWJ5IHNlIGsgdsOhbSBuZWJvIG9kIHbDoXMgZG9ixZllIHDFmWVu ZXNseSB2xaFlY2hueSBWYcWhZSBmb3RreSwgdmlkZWEsIHRleHR5IHMgxI1lc2tvdSBkaWFrcml0 aWtvdSBhIGppbsOpIHZ5Y2h5dMOhdmt5IChvYmVjbsOhIGJpbsOhcm7DrSBkYXRhIHNlIGvDs2R1 asOtIHBvIDYgYml0ZWNoIGRvIHRpc2tudXRlbG7DvWNoIDY0IHpuYWvFrywga3RlcsOpIGpzb3Ug cMWZZW5vc2l0ZWxuw6EgcG/FoXRvdm7DrW0gIE1JTUUgcHJvdG9rb2xlbSkuIFRha8W+ZSAgdGFr
...
-
1 2 3 4 5 6 7 8 9
public class ZeByVysledek { private int a; private int b; private int c; private int d; private int e; public ZeByVysledek(int e, int d, int c, int b, int a) { setA(a);
...
-
1 2 3 4 5 6 7 8 9
random.adb 0000644 0001750 0001750 00000002756 10777751105 011420 0 ustar adam adam with Ada.Text_IO, Calendar; use Ada.Text_IO, Calendar; package body Random is X_initial : FLOAT_ITEM := 0.0; M : FLOAT_ITEM := 1.0; A : FLOAT_ITEM := 7.0;
...
-
1 2 3 4 5 6 7 8 9
class one var1 = nil var2 = nil end class two from one var3 = nil end
...
-
1 2 3 4 5 6 7 8 9
/* package whatever; // don't place package name! */ /* The class name doesn't have to be Main, as long as the class is not public. */ class Main { public static String missingChar(String s, int n) { String y = new String(); for(int i = 0; i < s.length(); i++){
...
-
1 2 3 4 5 6 7 8 9
// our function... function func( mode, p1, p2 ) > mode, ": ", p1, ", ", p2 end // ... and different ways to call it func( "Traditional", "one", "two" ) [func, "Fully cached", "one", "two"]()
...
-
1 2 3 4 5 6 7 8 9
// A simple function that returns a string value based on a number // passed down to it. // function generateColor(param) result = nil switch param case 1 result = "orange" case 2
...
-
1 2 3 4 5 6 7 8 9
function generateColor(param) result = nil switch param case 1 result = "orange" case 2 result = "red" case 3 result = "green"
...
-
1
-
1 2 3 4 5 6 7 8 9
1 f8 b08 0814 cbc14 c00032 3000b0e 71747735 b452f0533
...
-
1 2 3 4 5 6 7 8 9
import java.io.*; import java.util.*; class Rpn { public static void main(String[] args) throws IOException { String s = "3 5 2 * +"; if (s==null) break;
...
-
1 2 3 4 5 6 7 8 9
import java.io.*; import java.util.*; class Rpn { public static void main(String[] args) throws IOException { String s = "1 4 - 52 * 33 +"; if (s==null) break; Stack<String> tks = new Stack<String>();
...
-
1 2 3 4 5 6 7 8 9
function _recvAll( totalsz ) reply = strBuffer( totalsz ) buf = strBuffer( 1024 ) while reply.len() < totalsz // timeout? -- the remote server hung. if not self._sock.readAvailable( self.timeout/1000.0 ) throw "Timeout in waiting for " + totalsz + " bytes." end
...
-
1 2 3 4 5 6 7
cons = { h, t => { x => x ? h : t }} car = { l => l(true) } cdr = { l => l(false) } l = cons(1, cons(2, nil)) printl(car(cdr(l)))
-
1 2 3 4 5 6 7
cons = { h, t => { x => x ? h : t }} car = { l => l(true) } cdr = { l => l(false) } l = cons(1, cons(2, null)) printl(car(cdr(l)))
-
1 2 3 4 5 6 7 8 9
// AdunareApplet.java // Applet ce afiseaza suma a doi reali, stop, destroy // Fata de varianta din modul, au fost redefinite si metodele start // pachete Java import javax.swing.*; // se importa clasa JOptionPane si JApplet import java.awt.Graphics; public class AdunareApplet extends JApplet {
...
-
1 2 3 4 5
x = int(input()) while x != 42 printl(x) x = int(input()) end


