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
x=1 while x<0: print HAY
-
1 2 3 4 5 6 7 8 9
from heapq import * from random import shuffle data = range(10) shuffle(data) heap = [] for n in data: heappush(heap, n)
...
-
1 2 3 4 5 6
import fileinput for line in fileinput.input(inplace=True): line = line.rstrip() num = fileinput.lineno() print '%-40s # %2i' % (line, num)
-
1 2
import datetime print datetime.datetime.fromordinal(32)
-
1
print datetime.datetime.fromordinal(32
-
1 2 3
from datetime import datetime d = datetime(datetime.now().year, datetime.now().month, datetime.now().day,11, 59, 0 ) print d
-
1 2 3 4 5
import datetime print datetime.datetime.today() d = datetime.datetime(2007,01,01) print d
-
1 2 3 4 5
import datetime print datetime.datetime.today() d = datetime.datetime(2007,01,01) print
-
1 2 3 4 5 6 7 8
from copy import deepcopy d = { d['names', 'Alfred', 'Bertrand']} c = d.copy() dc = deepcopy(d) d['names'].append('Clive') print d print dc
-
1
print "hello"
-
1 2 3 4 5 6 7 8
from copy import deepcopy d = { d['names'] = ['Alfred', 'Bertrand']} c = d.copy() dc = deepcopy(d) d['names'].append('Clive') print d print dc
-
1 2
import sys print sys.argv
-
1 2 3
import sys print sys.argv print sys.argv[1]
-
1 2
print sys.argv print sys.argv[1]
-
1 2 3
import time print time.asctime()
-
1 2 3 4 5 6 7 8 9
import os, sys from stat import * sName = "test.txt" if os.access( sName, os.F_OK ) == False : print "That file name doesn't exist!" exit()
...
-
1 2 3 4 5 6 7 8 9
import os tmpdir = r'c:\temp' if tmpdir: os.chdir(tmpdir) cwd = os.getcwd() print cwd os.mkdir('example')
...
-
1 2 3 4 5 6 7
import sys for n in sys.stdin.readlines(): n = int(n) if n==1: print 1 else: print 2*(n-1)
-
1 2 3 4 5 6 7 8 9
poem = '''\ Programming is fun When the work is done if you wanna make your work also fun: use Python! ''' f = file('poem.txt', 'w') # open for 'w'riting f.write(poem) # writes the text of the poem to a file
...
-
1 2 3 4 5 6 7 8 9
data = """Yin Yang 3,4,6,7,8,9,18,19,20 down up 6,7,8,9,10,11,12,14,17,18 21,22 black white 9,12,14,17,19,20 6,8,21 body mind 7,13 9,18 woman man 7,8,9,11,14,18,21,22 13 passive active 8,9,18,19,20 21,22 defence attac 9,19 20,21,22 stillness movement 18 19,20,21,22
...
-
1 2 3 4 5 6 7 8 9
data = """Yin Yang 3,4,6,7,8,9,18,19,20 down up 6,7,8,9,10,11,12,14,17,18 21,22 black white 9,12,14,17,19,20 6,8,21 body mind 7,13 9,18 woman man 7,8,9,11,14,18,21,22 13 passive active 8,9,18,19,20 21,22 defence attac 9,19 20,21,22 stillness movement 18 19,20,21,22
...
-
1 2 3 4 5 6 7 8 9
data = """Yin Yang 3,4,6,7,8,9,18,19,20 down up 6,7,8,9,10,11,12,14,17,18 21,22 black white 9,12,14,17,19,20 6,8,21 body mind 7,13 9,18 woman man 7,8,9,11,14,18,21,22 13 passive active 8,9,18,19,20 21,22 defence attac 9,19 20,21,22 stillness movement 18 19,20,21,22
...
-
1 2 3 4 5 6 7 8 9
data = """Yin Yang 3,4,6,7,8,9,18,19,20 down up 6,7,8,9,10,11,12,14,17,18 21,22 black white 9,12,14,17,19,20 6,8,21 body mind 7,13 9,18 woman man 7,8,9,11,14,18,21,22 13 passive active 8,9,18,19,20 21,22 defence attac 9,19 20,21,22 stillness movement 18 19,20,21,22
...
-
1 2 3 4 5 6 7 8 9
data = """Yin Yang 3,4,6,7,8,9,18,19,20 down up 6,7,8,9,10,11,12,14,17,18 21,22 black white 9,12,14,17,19,20 6,8,21 body mind 7,13 9,18 woman man 7,8,9,11,14,18,21,22 13 passive active 8,9,18,19,20 21,22 defence attac 9,19 20,21,22 stillness movement 18 19,20,21,22
...
-
1 2 3 4 5 6 7 8 9
data = """Yin Yang 3,4,6,7,8,9,18,19,20 down up 6,7,8,9,10,11,12,14,17,18 21,22 black white 9,12,14,17,19,20 6,8,21 body mind 7,13 9,18 woman man 7,8,9,11,14,18,21,22 13 passive active 8,9,18,19,20 21,22 defence attac 9,19 20,21,22 stillness movement 18 19,20,21,22
...
-
1 2 3 4 5 6 7 8 9
data = """Yin Yang 3,4,6,7,8,9,18,19,20 down up 6,7,8,9,10,11,12,14,17,18 21,22 black white 9,12,14,17,19,20 6,8,21 body mind 7,13 9,18 woman man 7,8,9,11,14,18,21,22 13 passive active 8,9,18,19,20 21,22 defence attac 9,19 20,21,22 stillness movement 18 19,20,21,22
...
-
1 2 3 4 5 6 7 8 9
def cords(x,y,xpos,ypos): xxpos = 1 xypos = 1 x = 0 while xxpos != xpos and xypos != ypos: if xxpos == 3: xxpos = 1 xypos += 1 xxpos += 1
...
-
1 2 3 4 5 6 7 8 9
data = """Yin Yang 3,4,6,7,8,9,18,19,20 down up 6,7,8,9,10,11,12,14,17,18 21,22 black white 9,12,14,17,19,20 6,8,21 body mind 7,13 9,18 woman man 7,8,9,11,14,18,21,22 13 passive active 8,9,18,19,20 21,22 defence attac 9,19 20,21,22 stillness movement 18 19,20,21,22
...
-
1 2 3 4 5 6 7 8 9
data = """Yin Yang 3,4,6,7,8,9,18,19,20 down up 6,7,8,9,10,11,12,14,17,18 21,22 black white 9,12,14,17,19,20 6,8,21 body mind 7,13 9,18 woman man 7,8,9,11,14,18,21,22 13 passive active 8,9,18,19,20 21,22 defence attac 9,19 20,21,22 stillness movement 18 19,20,21,22
...
-
1 2 3 4 5 6 7 8 9
data = """Yin Yang 3,4,6,7,8,9,18,19,20 down up 6,7,8,9,10,11,12,14,17,18 21,22 black white 9,12,14,17,19,20 6,8,21 body mind 7,13 9,18 woman man 7,8,9,11,14,18,21,22 13 passive active 8,9,18,19,20 21,22 defence attac 9,19 20,21,22 stillness movement 18 19,20,21,22
...


