This file contains hidden or 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
| // Create the Slider class and extend Class. | |
| var Slider = Class.extend(function($el) { | |
| // This is the constructor. First we call the base class's constructor: | |
| Slider.base.call(this); | |
| // Then we do any instantiation | |
| this.target = $el; | |
| this.open = false; | |
| // This is for keeping track of all Slider instances | |
| Slider.all.push(this); | |
| }); |
This file contains hidden or 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
| # | |
| # Usage: | |
| # spinner_on title: "Loading..." | |
| # App.run_after 4 do | |
| # spinner_off | |
| # # more... | |
| # end | |
| # | |
| module SpinnerHelper | |
| def spinner_on(args = {}) |
This file contains hidden or 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
| @hud = spinner_on labelText: "Importing..." | |
| Friend.eq(user: User.current_user).order(name: :asc).fetchAll do |friends| | |
| import_queue = Dispatch::Queue.new("com.clearsightstudio.bigday.import_address_book_contacts") | |
| friend_lookup = [] | |
| if friends | |
| friends.each do |f| | |
| friend_lookup << f.name | |
| end | |
| end |
This file contains hidden or 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
| class UspsShipper | |
| attr_accessor :order, :saddle | |
| def usps | |
| # removed usps api init code here...it works | |
| end | |
| def package | |
| # Create the package | |
| @package ||= Package.new( |
This file contains hidden or 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
| def banner_view | |
| @banner_view ||= begin | |
| width = self.view.bounds.size.width | |
| image = User.current_user.profile_image_view(67, 35) | |
| image.frame = CGRectMake((width/2) - (67/2), 12, 67, 67) | |
| BannerView.alloc.init(frame: self.view.frame, title: User.current_user.fullName, remote_image: image) | |
| end | |
| end |
This file contains hidden or 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
| group :assets do | |
| gem 'sass-rails', "~> 3.2.4" | |
| gem 'coffee-rails' | |
| gem 'uglifier' | |
| gem 'compass-rails' | |
| end |
This file contains hidden or 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
| def on_load(application, options) | |
| # ... | |
| appearance_defaults | |
| # ... | |
| end | |
| def appearance_defaults | |
| UIApplication.sharedApplication.setStatusBarHidden true, animated:false | |
| UITabBar.appearance.tintColor = "#123456".to_color |
This file contains hidden or 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
| class MessagesScreen < ProMotion::TableScreen | |
| title "Messages" | |
| def on_appear | |
| poll_server | |
| end | |
| def table_data | |
| @table_data ||= [{ title: "", cells: [] }] | |
| end |
This file contains hidden or 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
| class MessagesScreen < ProMotion::TableScreen | |
| title "Messages" | |
| def on_appear | |
| poll_server | |
| end | |
| def table_data | |
| @table_data ||= [{ title: "", cells: [] }] | |
| end |
This file contains hidden or 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
| class SearchModulesScreen < ProMotion::TableScreen | |
| title "Modules" | |
| # ... | |
| def table_data | |
| @modules ||= [] | |
| [{ | |
| title: "", | |
| cells: @modules.map do |m| |
OlderNewer