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
n = 0 if n then print("true") else print("false") end
-
1 2 3 4 5 6 7 8 9
--夿°ã®å®£è¨ã¨åæã«åæå n1 = 5 n2 = 10.5 --[[ 宣è¨ã¨åæåã«ã¯æ¬¡ã®ãããªã¹ã¿ã¤ã«ããã n1 = 5 n2 = 10.5 n1, n2 = 5, 10.5 ]] --ååæ¼ç®
...
-
1 2 3 4 5 6 7 8 9
mytype = nil print("mytype = " .. type(mytype)) mytype = true print("mytype = " .. type(mytype)) mytype = 10 print("mytype = " .. type(mytype)) mytype = "Hello" print("mytype = " .. type(mytype)) mytype = {}
...
-
1 2 3 4 5 6 7 8 9
mytype = nil print("mytype = " .. type(mytype)) mytype = true print("mytype = " .. type(mytype)) mytype = 10 print("mytype = " .. type(mytype)) mytype = "Hello" print("mytype = " .. type(mytype)) mytype = {}
...
-
1
print("Hello, World!")
-
1 2 3 4 5 6 7 8 9
-- local variable 'static' lives in the same scope as the anon -- function, so it lives while the funcrion lives. as soon as -- 'foo' goes out of scope, so does the pseudo static function newFoo() local static = 0; return function(x) static = static + x; return static;
...
-
1 2 3 4 5 6 7 8 9
-- Global variables titles = {} title = "" filename = "" site = "myanimelist" anime_id = nil no_results = false -- For dialog
...
-
1 2 3
for i = 0, 5, 1 do print(i) end
-
1
print("охохо")
-
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 table.size(self) -- Working local i = 0 for j in pairs(self) do i = i + 1 end return i end function string.explode(self, sep) -- By Socket, improved by Hardek. Working
...
-
1 2 3 4 5 6 7 8 9
function table.size(self) -- Working local i = 0 for j in pairs(self) do i = i + 1 end return i end function string.explode(self, sep) -- By Socket, improved by Hardek. Working
...
-
1 2 3 4 5 6 7 8 9
function table.size(self) -- Working local i = 0 for j in pairs(self) do i = i + 1 end return i end function string.explode(self, sep) -- By Socket, improved by Hardek. Working
...
-
1 2 3 4 5 6 7 8 9
function table.size(self) -- Working local i = 0 for j in pairs(self) do i = i + 1 end return i end function string.explode(self, sep) -- By Socket, improved by Hardek. Working
...
-
1 2 3 4 5 6 7 8 9
function table:findelement(element, argument) -- Working if argument ~= nil then if equal(self[argument], element) then return {argument} end for i,j in pairs(self) do if type(j) == 'table' then local c = table.findelement(j, element, argument) if c then
...
-
1 2 3 4 5 6 7 8 9
function table:findelement(element, argument) -- Working if argument ~= nil then if equal(self[argument], element) then return {argument} end for i,j in pairs(self) do if type(j) == 'table' then local c = table.findelement(j, element, argument) if c then
...
-
1 2 3 4 5 6 7 8 9
function table:findelement(element, argument) -- Working if argument ~= nil then if equal(self[argument], element) then return {argument} end for i,j in pairs(self) do if type(j) == 'table' then local c = table.findelement(j, element, argument) if c then
...
-
1 2 3 4 5 6 7 8 9
function table:findelement(element, argument) -- Working if argument ~= nil then if equal(self[argument], element) then return {argument} end for i,j in pairs(self) do if type(j) == 'table' then local c = table.findelement(j, element, argument) if c then
...
-
1 2 3 4 5 6 7 8 9
function table:findelement(element, argument) -- Working if argument ~= nil then if equal(self[argument], element) then return {argument} end for i,j in pairs(self) do if type(j) == 'table' then local c = table.findelement(j, element, argument) if c then
...
-
1 2 3 4 5
require "BlequiTeste" local t = {123, 32, [-2] = 1, ['lol\''] = 2 , ['false'] = 23, [true] = {122, 'asdk', -3, false}, {{2}, {-2, [false] = {{44}}}}, {{{4, {true}, {true}, {'lol'}}}, 'hahsudih'}} print(TOSTRING(t))
-
1 2 3 4 5 6
function Soma(n) n = n and n >= 0 and n or 1 return n*(n+1)/2 end print(Soma(100))
-
1 2 3 4 5 6
function f1(a,b) if a>b then return 1;end if a==b then return 0;end if a<b then return -1;end end f1(10,1)
-
1 2 3 4 5 6
function f1(a,b) if a>b then return 1 if a==b then return 0 if a<b then return -1 end f1(10,1)
-
1 2 3 4 5 6 7 8 9
local read = io.read local write = io.write local fooor = math.floor io.stdin:setvbuf("line") for _ = 1, read("*n") do local sum = 0 local num = read("*n") for div = 1, floor(num^0.5) do
...
-
1 2 3 4 5 6 7 8 9
import java.util.Scanner; class DollarsAfterForty { public static void main( String[] args ) { double dollars = 1000.00 ; double rate;
...
-
1 2 3 4 5 6 7 8 9
Console.lua ------------------------------------------------------------------------------]] -- Access the Lightroom SDK namespaces. local LrFileUtils = import 'LrFileUtils' local LrPathUtils = import 'LrPathUtils' local LrFunctionContext = import 'LrFunctionContext'
...
-
1 2 3
function main() print("Jazda Rowerwem") end
-
1 2 3
function main() print("1-skrypt w Lua") end
-
1 2 3 4 5 6 7 8 9
s1 = "Hello 'a' World!" s2 = 'Hello "a"\nWorld!' s3 = [[Hello "" '' World!]] print (s1) print (s2) print (s3) --é£çµ print("Hello".. " and ".."World!")
...
-
1 2 3 4 5 6 7 8 9
mytype = nil print("mytype = " .. type(mytype)) mytype = true print("mytype = " .. type(mytype)) mytype = 10 print("mytype = " .. type(mytype)) mytype = "Hello" print("mytype = " .. type(mytype)) mytype = {}
...


