Skip to content

Instantly share code, notes, and snippets.

@AntonioCiolino
AntonioCiolino / Main.lua
Created September 6, 2013 20:22
Cofender AutoInstall
--# Main
--Cofender Single Install
--Installer created by @Briarfox
--- This will pull the Cofender project into Codea for you
-- Instructions:
-- * Create a new project in Codea named Cofender If you chose another name please change the variable Below
--This is case sensitive
ProjectName = "Cofender"
-- * Paste this into the Main (not from the raw view, as iSafari will escape special characters)
@AntonioCiolino
AntonioCiolino / Glossy.lua
Created April 11, 2013 21:09
Simple interface to create glossy buttons. uses primitives and clip() to an image - no mesh code.
-- Glossy
-- Use this function to perform your initial setup
function setup()
ellipseMode(CENTER)
rectMode(CORNER)
parameter.text("myText")
parameter.number("bluroffset", -10,25,1.5)
parameter.integer("glossintensity", 1,24,8)
parameter.integer("blursize", -10, 10, 0)
@AntonioCiolino
AntonioCiolino / BingImageSearch.lua
Last active December 16, 2015 01:39
Cider2 - version 1.02 - Windowed controls for Codea
--# Main
function setup()
displayMode(FULLSCREEN)
--get an account key from BING to make this work.
--key = "YOUR_ACCOUNT_KEY_FROM_BING"
bing = BingImageSearch(key)
--Redirect()
--# Main
-- Particle Effect
-- Use this function to perform your initial setup
function setup()
displayMode(FULLSCREEN)
--to get ghost trails
backingMode(RETAINED)
--b=Backup("Particle Fireworks Ver 002")
@AntonioCiolino
AntonioCiolino / Explode.lua
Created December 12, 2012 22:06
TicTacToe - simple TicTacToe game
--
-- Explode.lua
--
-- subset of the old school explode code form forums
NUMSTARS = 50
COLOURS = {
color(255, 0, 0, 125),
color(255, 227, 0, 125),
@AntonioCiolino
AntonioCiolino / Cache.Lua
Created November 21, 2012 22:10 — forked from devilstower/Cider
Cider 1.5.2 -- interface builder for Codea
--
-- Cache.lua - this is a SUBSET of HTTPLoader.
--
Cache = class()
function Cache:loadStringData(name)
return readLocalData(name)
end
function Cache:saveStringData(name,cache)
@AntonioCiolino
AntonioCiolino / CiderControls 1.5.2
Created November 21, 2012 19:42 — forked from devilstower/CiderControls 1.5
Cider Controls 1.5.2
--
-- CiderControls.lua
--
--CiderControls
--# Frame
Frame = class()
-- Frame
-- ver. 1.5
@AntonioCiolino
AntonioCiolino / CSGBox.ply
Created November 19, 2012 23:01
Saves a Codea mesh item as a PLY object
ply
format ascii 1.0
comment Written by WritePLY - a Codea LUA project by Antonio Ciolino
element vertex 36
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
@AntonioCiolino
AntonioCiolino / DropBox.lua
Created November 16, 2012 23:22
Codea - Dropbox integration
--DropBox features
--This code allows an application to register with DropBox and perform file functions.
--There are 3 steps to getting a NEW app registed to a DropBox folder:
--1: get a request token. this says, "I'm going to request access"
--2. have the USER authorize. This proves that a human is choosing to do the request
--3. get a "real" token and secret (password) to access DropBox. This is what we want
-- to save, so we can access DropBox in the future without re-registering.
DropBox = class()
--We allow the developer to set these. These are the app Key and app Secret,