Skip to content

Instantly share code, notes, and snippets.

View jamonholmgren's full-sized avatar

Jamon Holmgren jamonholmgren

View GitHub Profile
@jamonholmgren
jamonholmgren / app_delegate.rb
Created February 22, 2013 05:09
app_delegate.rb
class AppDelegate < ProMotion::AppDelegateParent
def on_load(app, options)
return true if RUBYMOTION_ENV == 'test'
end
end
@jamonholmgren
jamonholmgren / app_delegate.rb
Created February 22, 2013 05:10
app_delegate.rb
class AppDelegate < ProMotion::AppDelegateParent
def on_load(app, options)
return true if RUBYMOTION_ENV == 'test'
open HomeScreen
end
end
@jamonholmgren
jamonholmgren / Rakefile
Created February 22, 2013 05:24
Rakefile
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require "rubygems"
require 'motion/project'
require 'motion-cocoapods'
require 'bundler'
Bundler.require
@jamonholmgren
jamonholmgren / app_delegate.rb
Created February 22, 2013 05:27
app_delegate.rb
class AppDelegate < ProMotion::AppDelegateParent
def on_load(app, options)
return true if RUBYMOTION_ENV == 'test'
open HomeScreen.new(nav_bar: true)
end
end
@jamonholmgren
jamonholmgren / login_screen.rb
Created February 22, 2013 05:29
login_screen.rb
class HomeScreen < ProMotion::Screen
title "Home"
def on_load
self.view.backgroundColor = UIColor.whiteColor
end
end
@jamonholmgren
jamonholmgren / home_screen.rb
Created February 22, 2013 05:29
home_screen.rb
class HomeScreen < ProMotion::Screen
title "Home"
def on_load
self.view.backgroundColor = UIColor.whiteColor
end
end
@jamonholmgren
jamonholmgren / Rakefile
Created February 22, 2013 05:33
Rakefile
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require "rubygems"
require 'bundler'
Bundler.require
@jamonholmgren
jamonholmgren / Gemfile
Created February 22, 2013 05:34
Gemfile
source 'https://rubygems.org'
gem "ProMotion", :path => "../ProMotion"
@jamonholmgren
jamonholmgren / Gemfile
Created February 22, 2013 05:35
Gemfile
source 'https://rubygems.org'
gem "ProMotion", "~> 0.4.1"
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'rubygems'
require 'motion/project'
require 'bundler'
Bundler.require
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'demo-blazers-highlights'