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
''' Created on 17-Jul-2011 @author: Naresh ''' def nextPalindrome1(pal): length = len(pal) if (length & 1 == 0):
...
-
1 2 3 4 5 6 7 8 9
''' Created on 17-Jul-2011 @author: Naresh ''' def nextPalindrome1(pal): length = len(pal) if (length & 1 == 0):
...
-
1 2 3 4 5
#!/usr/bin/python str = "this is string example....wow!!! this is really string"; print str.replace("is", "was"); print str.replace("is", "was", 3);
-
1
-
1 2 3 4 5 6 7 8 9
r1=[75] r2=[95,64] r3=[17, 47, 82] r4=[18, 35, 87, 10] r5=[20, 4, 82, 47, 65] r6=[19, 1, 23, 75, 3, 34] r7=[88, 2, 77, 73, 7, 63, 67] r8=[99, 65, 4, 28, 6, 16, 70, 92] r9=[41, 41, 26, 56, 83, 40, 80, 70, 33]
...
-
1 2 3 4 5
the_world_is_flat = 1 if the_world_is_flat: print "Be careful not to fall off!"
-
1
3+4
-
1 2 3 4 5 6 7
def silnia(n): #(1) print 'n =', n #(2) if n > 1: #(3) return n * silnia(n - 1) else: #(4) print 'koniec' return 1
-
1 2
for i in range(100): print i
-
1 2 3 4 5 6 7 8
#-*- coding: utf-8 -*- def buildConnectionString(params): u"""Tworzy łańcuch znaków na podstawie słownika parametrów. Zwraca łańcuch znaków. """ return ";".join(["%s=%s" % (k, v) for k, v in params.items()])
...
-
1 2 3 4 5
import datetime now = datetime.datetime.now() date_time = now.strftime('%m-%d-%y %H:%M') print date_time
-
1 2 3 4
import datetime now = datetime.datetime.now() date_time = now.strftime('%m-%d-%y %H:%M')
-
1 2 3 4
import datetime now = datetime.datetime.now() date_time = now.strftime('%m-%d-%y %H:%M')
-
1 2 3 4 5
import datetime session.var('oye') now = datetime.datetime.now() date_time = now.strftime('%m-%d-%y %H:%M') print date_time
-
1 2 3 4 5
import datetime session.var(oye) now = datetime.datetime.now() date_time = now.strftime('%m-%d-%y %H:%M') print date_time
-
1 2 3 4 5
import datetime now = datetime.datetime.now() date_time = now.strftime('%m-%d-%y %H:%M') print date_time
-
1
def a(b,c,d): pass
-
1 2 3 4 5
import datetime now = datetime.datetime.now() date_time = now.strftime('%m-%d-%y %H:%M') print date_time
-
1 2 3 4 5
import datetime now = datetime.datetime.now() date_time = now.strftime('%m-%d-%yy %H:%M') print date_time
-
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
nodes={0:[1],1:[2],2:[3],3:[4,5,6,7,8]} PB={} NB={} def below(i): if i not in nodes: PB[i]=0 NB[i]=1 return 0,1 tot_nodes_below=0
...
-
1 2 3 4 5
import datetime now = datetime.datetime.now() date_time = now.strftime('%m-%d-%Y %H:%M') print date_time
-
1 2 3 4 5
import datetime now = datetime.datetime.now() date_time = now.strftime('%m-%d-%Y %H:%M') print date_time
-
1 2 3 4 5 6 7 8 9
nodes={0:[1,2,3,4,5,6],6:[7],7:[8]} PB={} NB={} def below(i): if i not in nodes: PB[i]=0 NB[i]=1 return 0,1 tot_nodes_below=0
...
-
1 2 3 4 5 6 7 8 9
import datetime print 'Now :', datetime.datetime.now() print 'Today :', datetime.datetime.today() print 'UTC Now:', datetime.datetime.utcnow() d = datetime.datetime.now() for attr in [ 'year', 'month', 'day', 'hour', 'minute', 'second', 'microsecond']: print attr, ':', getattr(d, attr)
-
1 2 3 4 5 6 7 8 9
nodes={0:[1,2,3],1:[4,5],2:[6]} PB={} NB={} def below(i): if i not in nodes: PB[i]=0 NB[i]=1 return 0,1 tot_nodes_below=0
...
-
1 2 3 4 5 6 7 8 9
nodes={0:[1,2,3],1:[4,5],2:[6]} PB={} NB={} def below(i): if i not in nodes: PB[i]=0 NB[i]=1 return 0,1 tot_nodes_below=0
...
-
1 2
var='grocery' print var[-5:]
-
1 2
a=1 b=2 a+b=c c=?
-
1 2 3
def quadcube (x): return x**2, x**3 a, b = quadcube(3)


