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
from time import clock def factorAndSieve(n, verbose = False) : """ Returns all prime factors of n, using trial division while sieving for primes. Returns a list of (possibly repeating) prime factors """ t = clock() ret =[]
...
-
1 2 3 4 5 6 7 8 9
from time import clock def factorAndSieve(n, verbose = False) : """ Returns all prime factors of n, using trial division while sieving for primes. Returns a list of (possibly repeating) prime factors """ t = clock() ret =[]
...
-
1
print "hello world"
-
1 2 3 4 5 6 7 8 9
suma = 0; for i in range(1, 1001): suma += i**i; tmp = str(suma); odp, i = "", len(tmp)-10; while (len(odp) != 10): odp += tmp[i]; i += 1;
...
-
1
print "hello World"
-
1 2 3 4 5 6 7 8 9
s = "Hey therea ahat shou" # Length should be 20 print "Length of s = %d" % len(s) # First occurrence of "a" should be at index 8 print "The first occurrence of the letter a = %d" % s.index("a") # Number of a's should be 2
...
-
1 2 3 4 5 6 7 8 9
class Kotak(object): def __init__(self, data=[]): self.data = data def tambah(self, angka):
...
-
1 2 3 4
data = ("John", "Doe", 53.44) format_string = "Hello" print format_string + " %s %s. Your current balance is %.2f" % data
-
1 2 3 4 5 6 7 8 9
x = object() y = object() # change this code x_list = [x] * 10 y_list = [y] * 10 big_list = x_list + y_list print "x_list contains %d objects" % len(x_list)
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: for i in xrange(0,n): binary[i]=0 print(binary) elif w == n: for i in xrange(0,n):
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: binary[0]=0 binary[n-1]=0 print(binary) elif w == n: binary[n-1]=1
...
-
1 2 3 4 5 6 7 8 9
x = object() y = object() # change this code x_list = [x] * 10 y_list = [y] * 10 big_list = x_list + y_list print "x_list contains %d objects" % len(x_list)
...
-
1 2 3 4 5 6 7 8 9
x = object() y = object() # change this code x_list = [x] * 10 y_list = [y] * 10 big_list = [x_list + y_list] print "x_list contains %d objects" % len(x_list)
...
-
1
print [x*x for x in range(0,9)]
-
1 2 3 4
a=[7,8,9] b=a a[1]=0 print a+b
-
1 2 3 4 5 6 7 8 9
import datetime t0 = datetime.datetime.now() def Piano(n,w): global binary if w == 0: binary[0]=0
...
-
1 2 3 4 5 6 7 8 9
import datetime t0 = datetime.datetime.now() def Piano(n,w): global binary if w == 0: binary[0]=0
...
-
1 2 3 4 5 6 7 8 9
import datetime t0 = datetime.datetime.now() def Piano(n,w): global binary if w == 0: binary[0]=0
...
-
1 2 3 4 5 6 7 8 9
import datetime t0 = datetime.datetime.now() def Piano(n,w): global binary if w == 0: for i in xrange(0,n): binary[i]=0
...
-
1 2 3 4 5 6 7 8 9
import datetime t0 = datetime.datetime.now() def Piano(n,w): global binary if w == 0: binary[0]=0
...
-
1 2 3 4 5 6 7 8 9
import datetime t0 = datetime.datetime.now() def Piano(n,w): global binary if w == 0: binary[0]=0
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: for i in xrange(0,n): binary[i]=0 print(binary) elif w == n: for i in xrange(0,n):
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: binary[0]=0 binary[n-1]=0 print(binary) elif w == n: binary[n-1]=1
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: for i in xrange(0,n): binary[i]=0 print(binary) elif w == n: for i in xrange(0,n):
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: binary[0]=0 binary[n-1]=0 print(binary) elif w == n: binary[n-1]=1
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: binary[0]=0 binary[n-1]=0 print(binary) elif w == n: binary[n-1]=1
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: binary[0]=0 binary[n-1]=0 print(binary) elif w == n: binary[n-1]=1
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: binary[0]=0 binary[n-1]=0 print(binary) elif w == n: binary[n-1]=1
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: binary[0]=0 binary[n-1]=0 print(binary) elif w == n: binary[n-1]=1
...
-
1 2 3 4 5 6 7 8 9
def Piano(n,w): global binary if w == 0: binary[0]=0 binary[n-1]=0 print(binary) elif w == n: binary[n-1]=1
...


