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 6 7
import Control.Monad import Data.Char main = forever $ do putStr "Give me some input: " 1 <- getLine putStrLn $ map toUpper 1
-
1 2 3 4 5 6 7 8
factorial :: Integer -> Integer factorial 0 = 1 factorial n = n * factorial (n - 1) factorial n = if n > 0 then n * factorial (n-1) else 1 factorial n = product [1..n]
...
-
1 2 3 4 5 6 7 8 9
import PointsRendering import Graphics.UI.GLUT import Graphics.Rendering.OpenGL y :: GLfloat -> GLfloat y x = x^2 / 4 makePoints :: (GLfloat -> GLfloat) -> [GLfloat] -> [Point] makePoints f xs = map (\x -> (x, f x, 0)) xs
...
-
1 2 3 4 5 6 7 8 9
module PointsRendering ( display, Point ) where import Graphics.UI.GLUT import Graphics.Rendering.OpenGL import Random
...
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs bubblesortIterate lst@(x:xs) | null lst = lst | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst
...
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs bubblesortIterate lst@(x:xs) | nil lst = lst | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst
...
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs bubblesortIterate lst@(x:xs) | nil xs = xs | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst
...
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs bubblesortIterate lst@(x:xs) | nil xs = xs
...
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs bubblesortIterate lst@(x:xs) | nil . xs = xs | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst
-
1 2 3 4 5 6 7 8 9
bubblesort [4,2,40,0,13,10] bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs bubblesortIterate lst@(x:xs) | nil . xs = xs
...
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs bubblesortIterate lst@(x:xs) | nil . xs = xs | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs bubblesortIterate lst@(x:xs) | nil . xs = xs | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs bubblesortIterate lst@(x:xs) | nil . xs = xs | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst
-
1 2 3 4 5 6 7 8 9
sort :: Ord a => [a] -> [a] sort [] = [] sort [x] = [x] sort xs = merge (sort ys) (sort zs) where (ys,zs) = splitAt (length xs `div` 2) xs merge [] y=y merge x []=x
...
-
1 2 3 4 5 6 7 8 9
sort :: Ord a => [a] -> [a] sort [] = [] sort [x] = [x] sort xs = merge (sort ys) (sort zs) where (ys,zs) = splitAt (length xs `div` 2) xs merge [] y=y merge x []=x
...
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs bubblesortIterate x:xs@lst | nil . xs = xs | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst
...
-
1 2 3 4 5 6 7 8 9
sort :: Ord a => [a] -> [a] sort [] = [] sort [x] = [x] sort xs = merge (sort ys) (sort zs) where (ys,zs) = splitAt (length xs `div` 2) xs merge [] y=y merge x []=x
...
-
1 2 3 4 5 6 7 8 9
sort :: Ord a => [a] -> [a] sort [] = [] sort [x] = [x] sort xs = merge (sort ys) (sort zs) where (ys,zs) = splitAt (length xs `div` 2) xs merge [] y=y merge x []=x
...
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs where bubblesortIterate x:xs@lst = | nil . xs = xs | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst where bubblesortSwap x:y:xs = y:x:xs
...
-
1 2 3 4 5 6 7 8 9
sort :: Ord a => [a] -> [a] sort [] = [] sort [x] = [x] sort xs = merge (sort ys) (sort zs) where (ys,zs) = splitAt (length xs `div` 2) xs merge [] y=y merge x []=x
...
-
1 2 3 4 5 6 7 8 9
bubblesort xs | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs where bubblesortIterate x:xs@lst | nil . xs = xs | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst where bubblesortSwap x:y:xs = y:x:xs
...
-
1 2 3 4 5 6 7 8 9
sort :: Ord a => [a] -> [a] sort [] = [] sort [x] = [x] sort xs = merge (sort ys) (sort zs) where (ys,zs) = splitAt (length xs `div` 2) xs merge [] y=y merge x []=x
...
-
1 2 3 4 5 6 7 8 9
bubblesort xs = | xs == xs' = xs' | otherwise = bubblesort xs' where xs' = bubblesortIterate xs where bubblesortIterate x:xs@lst = | nil . xs = xs | x <= head xs = x:bubblesortIterate xs | otherwise = bubblesortSwap lst where bubblesortSwap x:y:xs = y:x:xs
...
-
1 2
olamundo :: IO() olamundo = putStrLn "Olá, Mundo!"
-
1 2 3 4 5 6 7 8 9
import Data.List import Text.Regex import System.Random import Data.Ord type Point = (Float,Float) type Color = (Int,Int,Int) type Polygon = [Point] type Person = [Int]
...
-
1 2 3
import Data.Ord main = do min 9 10
-
1 2
main = do min 9 10
-
1 2 3 4 5 6 7 8 9
import Data.Char main = do putStrLn "What's your first name?" firstName <- getLine putStrLn "What's your last name?" lastName <- getLine let bigFirstName = map toUpper firstName bigLastName = map toUpper lastName
-
1 2
main = do putStrLn "HEEY"
-
1
putStrLn "HEEY"


