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
print "hey dude!"
-
1 2 3 4 5 6 7
local read, write = io.read, io.write local num, nl = '*n', '\n' while true do local a = read(num) if a == 42 then return end write(a, nl) end
-
1 2 3 4 5 6 7 8 9
writeln = function(...) for i, v in pairs({ ... }) do if type(v) == "table" then local t = v if #v == 0 then t = {} for k, v in pairs(v) do table.insert(t, k .. ": " .. v) end
...
-
1 2 3 4 5 6 7 8 9
model = { { player = "Cliff", age = 35, gender = "male" }, { player = "Ally", age = 36, gender = "female" }, { player = "Jasmine", age = 13, gender = "female" }, { player = "Lauren", age = 6.5, gender = "female" } } function for_each_array(list, operation) for key, value in ipairs(list) do
...
-
1 2 3 4 5 6 7 8 9
model = { { player = "Cliff", age = 35, gender = "male" }, { player = "Ally", age = 36, gender = "female" }, { player = "Jasmine", age = 13, gender = "female" }, { player = "Lauren", age = 6.5, gender = "female" } } function for_each_array(list, operation) for key, value in ipairs(list) do
...
-
1 2 3 4 5 6 7 8 9
model = { { player = "Cliff", age = 35, gender = "male" }, { player = "Ally", age = 36, gender = "female" }, { player = "Jasmine", age = 13, gender = "female" }, { player = "Lauren", age = 6.5, gender = "female" } } function for_each_array(list, operation) for key, value in ipairs(list) do
...
-
1 2 3 4 5 6 7 8 9
model = { { player = "Cliff", age = 35, gender = "male" }, { player = "Ally", age = 36, gender = "female" }, { player = "Jasmine", age = 13, gender = "female" }, { player = "Lauren", age = 6.5, gender = "female" } } function for_each_array(list, operation) for key, value in ipairs(list) do
...
-
1 2 3 4 5 6 7 8 9
model = { { player = "Cliff", age = 35, gender = "male" }, { player = "Ally", age = 36, gender = "female" }, { player = "Jasmine", age = 13, gender = "female" }, { player = "Lauren", age = 6.5, gender = "female" } } function for_each_array(list, operation) for key, value in ipairs(list) do
...
-
1 2 3 4
fab = io.open("fab.in", "w") for line in io.lines(fab) do fab:write(line) end fab:close ()
-
1 2 3
y = { const={ name="Pi", value=3.1415927 }, const2={ name="light speed", value=3e8 } } print(y.const.name) print(y.const2.value)
-
1 2
y = { const={ name="Pi", value=3.1415927 }, const2={ name="light speed", value=3e8 } } print(y.const.name)
-
1 2 3 4 5 6 7 8 9
Account={money=0, last_change=0} function Account:deposit(summ) self.money=self.money+summ self.last_change=summ end function Account:withdraw(summ) self.money=self.money-summ self.last_change=0-summ end
...
-
1
print(2)
-
1 2 3 4 5 6 7
local read, write = io.read, io.write local num, nl = '*n', '\n' while true do local a = read(num) if a == 42 then return end write(a, nl) end
-
1 2 3 4 5 6 7
local read, write = io.read, io.write local num, nl = '*n', '\n' while true do local a = read(num) if a == 42 then return end write(a, nl) end
-
1 2 3 4 5 6 7 8 9
Account={money=0, last_change=0} function Account:deposit(summ) self.money=self.money+summ self.last_change=summ end function Account:withdraw(summ) self.money=self.money-summ self.last_change=0-summ end
...
-
1 2 3 4 5 6 7 8 9
a=[[[3,1],[5,1],[821,1],[273997,1],[7741805910970258163,1]],[[2,2],[107,1],[244219007447,1],[95966808334871,1]],[[2,2],[7,3],[919,1],[56951,1],[103160249,1],[4656410419,1]],[[2,3],[17,1],[177693403,1],[414883089729841223,1]],[[3,1],[31,1],[4951,1],[1346989159,1],[50461897989311,1]],[[7,2],[79,1],[241,1],[4271,1],[48523,1],[1051181,1],[176838479,1]],[[2,1],[1475709031,1],[12177009148932085937,1]],[[6323573,1],[4753519027288416018457,1]],[[2,1],[18164960872674393974925145111,1]]] a.length.times do |i| n=1 (a[i].length).times do |j| n*=a[i][j][0]**a[i][j][1] end s=""; (Math.log(n)/Math.log(256)).ceil.times do s=(n%256).chr+s
...
-
1 2 3 4 5 6 7 8 9
function add(n, acc) acc = acc or 0 if n == 0 then return acc end return add(n-1, 1+acc) end print(add(1000000))
-
1 2 3 4 5 6 7 8
local function Musicz_OnSpawn(pUnit) pUnit:PlaySoundToSet(10144); pUnit:Despawn(9000, 5000); end RegisterUnitEvent(50036, 18, Musicz_OnSpawn);
-
1 2
a=input() print("hello")
-
1
print("hello")
-
1 2 3 4 5 6 7
local read, write = io.read, io.write local num, nl = '*n', '\n' while true do local a = read(num) if a == 42 then return end write(a, nl) end
-
1 2 3 4 5 6
n = 0 if n then print("true") else print("false") end
-
1 2 3
for i = 0, 5, 1 do print(i) end
-
1 2 3 4 5
i=0 repeat print(i) i = i+1 until i > 5
-
1 2 3 4 5
i=0 while i < 6 do print(i) i = i + 1 end
-
1 2 3 4 5 6 7 8
n = 0 if n == 1 then print("1") elseif n == 2 then print("2") else print("All False") end
-
1 2 3
io.write("Your name? ") name=io.read() print("Hello, "..name..'!')
-
1
print(563)
-
1 2 3 4 5 6 7 8 9
local i, j, sum sum = 0 for i = 1, 10000, 1 do j = 1 sum = 0 while j<=i/2 do if(i%j==0) then sum=sum+j;
...


