Skip to content

Instantly share code, notes, and snippets.

View fredericpierron's full-sized avatar

Fred. fredericpierron

View GitHub Profile
@fredericpierron
fredericpierron / templateHTML.lua
Created November 5, 2012 00:36
Template in lua
local templateHTML = {}
templateHTML.nowArticle = function(myTitre, myArticle, myImage, myURL, myAdresse, myTelephone)
local header = [[
<!doctype html>
<html class="" lang="en">
<head>
@fredericpierron
fredericpierron / gist:4014405
Created November 4, 2012 23:52
swedish version
lokal navGene = {}
lokala storyboard = kräver ("storyboard")
lokala widget = kräver ("widget")
lokal databas = kräver ("Databas")
lokal ui_news, ui_now, ui_yellow, ui_news_over, ui_now_over, ui_yellow_over
navGene.createNavGene = function ()
@fredericpierron
fredericpierron / navGene.lua
Created November 4, 2012 23:44
The module itself
local navGene = {}
local storyboard = require ("storyboard")
local widget = require ("widget")
local dataBase = require ("dataBase")
local ui_news, ui_now, ui_yellow, ui_news_over, ui_now_over, ui_yellow_over
navGene.createNavGene = function()
@fredericpierron
fredericpierron / navGene.lua
Created November 4, 2012 23:44
The module itself
local navGene = {}
local storyboard = require ("storyboard")
local widget = require ("widget")
local dataBase = require ("dataBase")
local ui_news, ui_now, ui_yellow, ui_news_over, ui_now_over, ui_yellow_over
navGene.createNavGene = function()
@fredericpierron
fredericpierron / main.lua
Created November 4, 2012 23:15
in the main of lua
local navGene = require "navGene"
-- Display objects added below will not respond to storyboard transitions
local ui_news, ui_now, ui_yellow, ui_news_over, ui_now_over, ui_yellow_over = navGene.createNavGene()
navGene.addEventTo(ui_now)
navGene.addEventTo(ui_news)
@fredericpierron
fredericpierron / gist:4014294
Created November 4, 2012 23:12
sample of module
local navGene = {}
local storyboard = require ("storyboard")
local widget = require ("widget")
local dataBase = require ("dataBase")
local ui_news, ui_now, ui_yellow, ui_news_over, ui_now_over, ui_yellow_over
navGene.createNavGene = function()