Skip to content

Instantly share code, notes, and snippets.

View a-zb's full-sized avatar

Arek Bochinski a-zb

View GitHub Profile
@a-zb
a-zb / gist:1230755
Created September 20, 2011 23:46 — forked from ayourtch/gist:427622
-- http://lua-users.org/lists/lua-l/2002-04/msg00180.html
require 'socket'
local header =
[[HTTP/1.1 200 OK
Date: Fri, 19 Apr 2002 20:37:57 GMT
Server: Apache/1.3.23 (Darwin) mod_ssl/2.8.7 OpenSSL/0.9.6b
Cache-Control: max-age=60
Expires: Fri, 19 Apr 2002 20:38:57 GMT
@a-zb
a-zb / gist:1257755
Created October 2, 2011 18:43
Sikuli corona sdk automation
import os
terminal_app = "/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal"
project_path = "/Applications/CoronaSDK/SampleCode/GettingStarted/Clock/"
corona_path = "/Applications/CoronaSDK/simulator"
main_file = "main.lua"
app_name_text = "MyTestApp"
app_version_text = "1"
app_package_text = "com.arek.mytestapp"
app_destination_folder = "/Users/arek/tools/corona/helloworld/"
@a-zb
a-zb / tlc.lua
Created March 28, 2012 14:45 — forked from fjolnir/tlc.lua
LuaJIT ObjC bridge
-- TLC - The Tiny Lua Cocoa bridge
-- Note: Only tested with LuaJIT 2.0 Beta 9 on x86_64 with OS X >=10.7.3 & iPhone 4 with iOS 5
-- Copyright (c) 2012, Fjölnir Ásgeirsson
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES