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
local a a=1 while a<101 do local s,sum=2,1 while s<(a/2) do local x=tonumber(a/s) if ((x*s)==a)
...
-
1 2 3 4 5 6 7 8 9
local a a=1 while a<10001 do local s,sum=2,1 while s<(a/2) do local x=tonumber(a/s) if ((x*s)==a)
...
-
1 2 3 4 5 6 7 8 9
local a a=1 while a<101 do local s,sum=2,1 while s<(a/2) do local x=tonumber(a/s) if ((x*s)==a)
...
-
1 2 3 4 5 6 7 8 9
local a a=1 while a<10001 do local s,sum=2,1 while s<(a/2) do local x=tonumber(a/s) if ((x*s)==a)
...
-
1 2 3 4 5 6 7 8 9
local a a=1 while a<10001 do local s,sum=2,1 while s<(a/2) do local x=tointeger(a/s) if ((x*s)==a)
...
-
1 2 3 4 5 6 7 8 9
local a a=1 while a<10001 do local s,sum=2,1 while s<(a/2) do local x=tonumber(a/s) if ((x*s)==a)
...
-
1 2 3 4 5 6 7 8 9
local a a=1 while a<10001 do local s,sum=2,1 while s<(a/2) do local x=a/s if ((x*s)==a)
...
-
1 2 3 4 5 6 7 8 9
local a a=1 while a<10001 do local s,sum=2,1 while s<(a/2) do local x=a/s if ((x*s)==a)
...
-
1 2 3 4 5 6 7 8 9
local a a=1 while a<10001 do local s,sum=2,1 while s<(a/2) do local x=a/s if ((x*s)==a)
...
-
1 2 3 4 5 6 7 8 9
local a a=1 while a<10001 do local s,sum=2,1 while s<(a/2) do local x=a/s if ((x*s)==a)
...
-
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
for count = 1,3 do print(count) end
-
1 2 3 4 5 6 7 8 9
#!/usr/bin/lua write ("What is your name? ") name = read("*l") if name == "Randal" then print ("Hello, Randal! How good of you to be here!") else print ("Hello " .. name .. "!") -- ordinary greeting end
-
1 2 3 4 5 6 7 8 9
-- create class Account = {balance = 0} -- constructor function Account:new (o) o = o or {} setmetatable(o, self) self.__index = self
...
-
1 2 3 4 5 6 7 8 9
-- Made by Badjman -- Used for any thing you can imagine. Very basic! -- Also mean't for Minecraft Computer mod. -- Please do NOT delete these messages, I worked to make this, give me credit! write ("Welcome, enter password") input = (read) if (read) == "Enterpasswordhere" then
...
-
1 2 3 4 5 6 7 8 9
function func() return 10, 20, 30, 40, 50, "abc" end r1, r2, r3, r4, r5, r6 = func() print(r1, r2, r3, r4, r5, r6) print(type(r1)) print(type(r6))
-
1 2 3 4 5 6 7 8 9
function func() return 10, 20, 30, 40, 50, "abc" end r1, r2, r3, r4, r5, r6 = func() print(r1, r2, r3, r4, r5, r6) print(type(r1)) print(type(r6))
-
1 2 3 4 5 6 7
import java.util.Scanner public class FirstProgram { public static void main(String[] args) { System.out.println("Hello!"); } }
-
1
local text = display.newText("Hello!", 0, 0, native.systemFont, 16)
-
1 2 3 4 5 6 7 8
function round(number) num = number a = num * 0.001 b = a/ 0.001 print(b) end round(4.667)
-
1 2 3 4 5 6 7 8
function round(number) num = number a = num * 100 b = a/ 100 print(b) end round(4.667)
-
1 2 3 4 5 6 7 8
function round(number) num = number a = num * 100 b = a/ 100 print(b) end round(math.pi)
-
1 2 3 4 5 6 7 8 9
function round(number) num = number c = string.count(num) a = num * c b = a/ c print(b) end round(math.pi)
...
-
1 2 3 4 5 6 7 8 9
function func() return 10, 20, 30, 40, 50, "abc" end r1, r2, r3, r4, r5, r6 = func() print(r1, r2, r3, r4, r5, r6) print(type(r1)) print(type(r6))
-
1 2
#!/usr/bin/lua print ("Hello World!")
-
1 2 3 4 5 6 7 8 9
#!/usr/bin/lua write ("What is your name? ") name = read("*l") if name == "Randal" then print ("Hello, Randal! How good of you to be here!") else print ("Hello " .. name .. "!") -- ordinary greeting end
-
1
print("Hello, World!")
-
1 2 3 4 5 6 7 8 9
...
-
1 2 3 4 5
print('test') 1==2 print('test 2') true print('test 3')
-
1 2 3 4 5
print('test') false print('test 2') true print('test 3')


