- http://flickr.com
- http://cnn.com
- http://letsfreckle.com # You need to log in
- http://google.com/.compact
- http://google.com/search?q=94117+weather
- http://www.amazon.com/gp/aw/kindle/storefront
Simple Mobile + Native
class Global | |
def name; "hello world"; end | |
end | |
class ListOne < Global | |
def name; "one"; end | |
def output; "#{name}"; end | |
end | |
class ListTwo < Global |
(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" |
#!/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 ','})" |
Simple Mobile + Native
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() | |
// | |
// GTRepositoryTest.m | |
// ObjectiveGitFramework | |
// | |
// Created by Timothy Clem on 2/21/11. | |
// | |
// The MIT License | |
// | |
// Copyright (c) 2011 Tim Clem | |
// |
$('head').prepend('<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0" />'); |
// | |
// WaxRetainIssueAppDelegate.m | |
// WaxRetainIssue | |
// | |
// Created by Martin Cote on 11-02-17. | |
// Copyright Loopycube 2011. All rights reserved. | |
// | |
#import "WaxRetainIssueAppDelegate.h" | |
#import "WaxRetainIssueViewController.h" |
waxClass{"AppDelegate", protocols = {"UIApplicationDelegate"}} | |
-- Well done! You are almost ready to run a lua app on your iPhone! | |
-- | |
-- Just run the app (ββ΅) in the simulator or on a device! | |
-- You will see a dull, bland "hello world" app (it is your job to spice it up.) | |
-- | |
-- If your prefer using TextMate to edit the Lua code just type | |
-- 'rake tm' from the command line to setup a wax TextMate project. | |
-- |