Skip to content

Instantly share code, notes, and snippets.

View probablycorey's full-sized avatar
πŸ‘―β€β™‚οΈ
Dancing with my twin

Corey Johnson probablycorey

πŸ‘―β€β™‚οΈ
Dancing with my twin
View GitHub Profile
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 ','})"
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()

Keeping it Simple

  • flickr.com
  • cnn.com
  • letsfreckle.com # You need to log in

Simple Mobile + Native

  • twitter.com
  • dropbox.com
//
// 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" />');
@probablycorey
probablycorey / WaxRetainIssueAppDelegate.m
Created February 18, 2011 19:12
WaxRetainIssueAppDelegate.m
//
// 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.
--