Skip to content

Instantly share code, notes, and snippets.

function setup()
path = os.getenv("HOME").."/Documents/"
dds="/Documents/Dropbox.assets/"
pat1=":::backup"
pat2=":::name:::"
plistData=""
t=os.date("*t")
projectTable={}
backupName=string.format("bkup%02d%02d-%02d%02d",t.month,t.day,t.hour,t.min)
@dave1707
dave1707 / random_pinball
Created June 17, 2012 01:13
Random Pinball for the iPad with Codea
-- Random PinBall by Dave1707
function setup()
    displayMode(FULLSCREEN)
    
    -- define variables and tables
    cx=0
    cy=0
@dave1707
dave1707 / sudoku
Created June 8, 2012 17:14
sudoku
-- sudoku solver
-- written for the iPad using Codea
--# board
board = class()
function board:squares()
    -- draw 9x9 board with red or green squares
    local x, y, z