- flickr.com
- cnn.com
- letsfreckle.com # You need to log in
- twitter.com
- dropbox.com
| // | |
| // GTRepositoryTest.m | |
| // ObjectiveGitFramework | |
| // | |
| // Created by Timothy Clem on 2/21/11. | |
| // | |
| // The MIT License | |
| // | |
| // Copyright (c) 2011 Tim Clem | |
| // |
| waxClass{"AppDelegate", protocols = {"UIApplicationDelegate"}} | |
| function applicationDidFinishLaunching(self, application) | |
| -- wax.cache.clearAll() | |
| CurrentLocation:sharedInstance():start(60, nil) | |
| local frame = UIScreen:mainScreen():bounds() | |
| self.window = UIWindow:initWithFrame(frame) | |
| self.window:makeKeyAndVisible() | |
Simple Mobile + Native
| #!/usr/bin/env ruby | |
| lines = `git log -n 400 --format=oneline`.split("\n") | |
| lines.map! do |line| | |
| sha, *msg = line.split | |
| msg = msg.join(' ') # unused | |
| colors = sha.scan(/[a-z0-9]{8}/) | |
| stops = colors.map do |color| | |
| rgba = color.scan(/[a-z0-9]{2}/).map {|o| o.to_i(16)} | |
| "rgba(#{rgba.join ','})" |
| (scrn#1) Create a new Window-based application. | |
| (scrn#2) Name it WaxApplication, set the device to iPhone, click next, and save it to your Desktop | |
| Open the folder containing the newly created XCode project. | |
| (scrn#3) Make 3 new folders: wax, scripts. | |
| Download latest copy of Wax: https://github.com/probablycorey/wax/zipball/master | |
| Unzip by opening the .zip file. | |
| Navigate to the new folder. It will be called something like "probablycorey-wax-124ca46" |
| class Global | |
| def name; "hello world"; end | |
| end | |
| class ListOne < Global | |
| def name; "one"; end | |
| def output; "#{name}"; end | |
| end | |
| class ListTwo < Global |
| diff --git a/lib/wax_helpers.m b/lib/wax_helpers.m | |
| index dee91a9..f0c351d 100644 | |
| --- a/lib/wax_helpers.m | |
| +++ b/lib/wax_helpers.m | |
| @@ -219,7 +219,7 @@ void wax_fromInstance(lua_State *L, id instance) { | |
| if ([instance isKindOfClass:[NSString class]]) { | |
| lua_pushstring(L, [(NSString *)instance UTF8String]); | |
| } | |
| - else if ([instance isKindOfClass:[NSNumber class]]) { | |
| + else if ([instance isKindOfClass:[NSNumber class]] && ![instance isKindOfClass:[NSDecimalNumber class]]) lua_pushnumber(L, [instance doubleValue]); |
| local picData = toJPEG(photo):base64EncodedString() | |
| local body = wax.http.escapeParams{pic = picData} | |
| ImageModel:post{url, body = body, callback = function(body, response) | |
| -- Blah Blah Blah | |
| end} |
| @interface Perfect : NSObject { | |
| @property UIView *containerView; | |
| @property(nonatomic) UILabel *titleText; | |
| } |