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
x=3 intVar= 0 print 2, "is prime." while intVar < 1200: for i in range(2,x): if(x%i)== 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1200: for i in range(2,x): if(x%i)== 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1000: for i in range(2,x): if(x%i)== 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1100: for i in range(2,x): if(x%i)== 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1062: for i in range(2,x): if(x%i)== 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1000: for i in range(2,x): if(x%i)== 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1000: for i in range(2,x): if(x%i)== 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
# ACSL whatever # Jonathan Sorce def permute(string): if len(string) == 1: if string == '*': return ['1', '0'] else: return [string,] else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1000: for i in range(2,x): if(x%i)== 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
# ACSL whatever # Jonathan Sorce def permute(string): if len(string) == 1: if string == '*': return ['1', '0'] else: return [string,] else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1000: for i in range(2,x): if(x%i)== 0 print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1000: for i in range(2,x): if (x/2)*2 == x: print x, "is even." else: for i in range(2,x):
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1000: for i in range(2,(x-1)): if x%i == 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1000: for i in range(2,5,x): if x%i == 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5 6 7 8 9
x=3 intVar= 0 print 2, "is prime." while intVar < 1000: for i in range(2,x): if x%i == 0: print x, "is not prime." x += 2 else:
...
-
1 2 3 4 5
len( {-1%2:3} ); print "Hello, Python!"; """ }). :- write('Hello, Prolog!'), nl, halt. /* -} x) = x main = putStrLn "Hello, Haskell!" -- """ # */
-
1 2 3
import sys print sys.argv
-
1
print sys.argv
-
1 2 3 4 5 6 7 8 9
#!/usr/bin/python # A Dropbox Proxy that enables files to be downloaded despite proxies. # It works by requesting a file, via text file in your Dropbox. Your home computer downloads it and puts it in your Dropbox. # You can then download it via dropbox.com, assuming it's not blocked. # Screw the Firewalls!!! from os.path import basename from urlparse import urlsplit import urllib2
...
-
1 2 3 4 5 6 7 8
#!/usr/bin/python # A Dropbox Proxy that enables files to be downloaded despite proxies. # It works by requesting a file, via text file in your Dropbox. Your home computer downloads it and puts it in your Dropbox. # You can then download it via dropbox.com, assuming it's not blocked. # Screw the Firewalls!!! from os.path import basename from urlparse import urlsplit
...
-
1 2 3 4 5 6 7 8 9
#!/usr/bin/python # A Dropbox Proxy that enables files to be downloaded despite proxies. # It works by requesting a file, via text file in your Dropbox. Your home computer downloads it and puts it in your Dropbox. # You can then download it via dropbox.com, assuming it's not blocked. # Screw the Firewalls!!! def download(url, localFileName = None): localName = url2name(url) req = urllib2.Request(url)
...
-
1 2 3 4 5 6 7 8 9
#!/usr/bin/python # A Dropbox Proxy that enables files to be downloaded despite proxies. # It works by requesting a file, via text file in your Dropbox. Your home computer downloads it and puts it in your Dropbox. # You can then download it via dropbox.com, assuming it's not blocked. # Screw the Firewalls!!! def download(url, localFileName = None): localName = url2name(url) req = urllib2.Request(url)
...
-
1 2
for i in ['a', 1, 2, 3, 'b']: print i
-
1 2 3 4 5 6 7 8 9
#!/usr/bin/python # A Dropbox Proxy that enables files to be downloaded despite proxies. # It works by requesting a file, via text file in your Dropbox. Your home computer downloads it and puts it in your Dropbox. # You can then download it via dropbox.com, assuming it's not blocked. # Screw the Firewalls!!! def download(url, localFileName = None): localName = url2name(url) req = urllib2.Request(url)
...
-
1 2 3 4 5 6 7 8
import math x, y = 1, 7 tx, ty = 10, 3 dx, dy = tx-x, ty-y d = math.sqrt(dx**2 + dy**2)
-
1 2 3 4 5 6 7 8 9
def patInfoTitle(): # art lucey 20120203 global criticalAlertColor criticalAlertColor={'clinical':'red','financial':'lime','scheduling':'purple','general':'teal','counseling':'orangered'} title = patName() title += checkPatStatus(("inactive","withdrawn","deceased")) title += " PS#: <b><color='blue'><size=12>" + patient.institutionid + "</color></b></size>" title += scannedMedPaperChart() title += " "+patDob() title += " Phone: <color=blue>" + getPhoneNumber() + "</color>"
...
-
1 2 3 4 5 6 7 8 9
def print_evens(lower=0, upper=10): i = lower-1 while i < upper: i += 1 if i%2 != 0: continue print i if __name__ == "__main__":
-
1 2 3 4 5 6 7 8
# Basic script to grab the current location from an NMEA bluetooth GPS, # and log it to the screen # Also optionally logs periodic location data to a file, so you can see # where you were # # GPL # # Nick Burch - v0.01 (15/01/2006)
...
-
1 2 3 4 5 6 7 8 9
import sys def main(): col = int(sys.stdin.readline()) while col > 0: out = [] row = sys.stdin.readline() i = len(row) // col for i in range(len(row) // col):
...
-
1 2 3 4 5 6 7 8 9
def print_evens(lower=0, upper=10): i = lower while i < upper: if i%2 != 0: continue print i i = i+1 if __name__ == "__main__":


