Skip to content

Instantly share code, notes, and snippets.

@devilstower
devilstower / gist:5384106
Created April 14, 2013 20:36
Cider Controls 1.6
--# Frame
Frame = class()
-- Frame
-- ver. 1.5
-- a simple rectangle for holding controls.
-- ====================
@devilstower
devilstower / gist:5384102
Created April 14, 2013 20:34
Cider 1.6
--# UIElement
UIElement = class()
CONTROLTYPE = 0
LABELTYPE = 1
BUTTONTYPE = 2
TEXTBOXTYPE = 3
SWITCHTYPE = 4
SLIDERTYPE = 5
@apendley
apendley / timing.codeaproject
Last active December 16, 2015 05:09
Lua Timing classes compatible with Codea
--# Main
-- Main
function setup()
timer = createTimer()
scheduler = createScheduler()
timer(.5, 0, function(t) print('timer:', t.elapsed) end)
timer(1, 1, function(t, ...) print('Hello', ...) end, 'Aaron!')
@sp4cemonkey
sp4cemonkey / LitMesh Class
Last active December 14, 2015 15:59
This is a codea class with an ADS lighting with options for colored, textured and bumpmapped
LitMesh = class()
--[[
LitMesh provides a bumpmappable ADS (ambient/diffuse/specular) lighting enhanced class
for meshes.
usage:
setup()
myObject = LitMesh(isTextured, isBumpMapped)
myObject.litMesh.vertices = some table of vertices
@devilstower
devilstower / Endless0.1
Created January 15, 2013 14:00
Endless early draft
--# Main
-- Use this function to perform your initial setup
supportedOrientations(PORTRAIT_ANY)
displayMode(FULLSCREEN)
textMode(CORNER)
textAlign(LEFT)
@jedschneider
jedschneider / gh-pages-tips.md
Created June 7, 2012 17:59
github pages tips for jekyll wiki

Working With Github Pages

The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.

Gitignore

Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.

Working With Code Partials