Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |