This file contains 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
# Please make this file available to others | |
# by sending it to <[email protected]> | |
# | |
# this config file was automatically generated | |
# using lirc-0.9.0-pre1(default) on Sat Dec 7 19:14:59 2013 | |
# | |
# contributed by | |
# | |
# brand: lirc-pda.conf | |
# model no. of remote control: |
This file contains 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
Router.configure | |
layoutTemplate: 'layout', | |
progressDelay : 100 | |
loadingTemplate: 'loading' | |
waitOn: -> | |
if Meteor.user()? | |
[ | |
#Meteor.subscribe 'notifications' | |
Meteor.subscribe 'myFamilies' | |
] |
This file contains 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
import UIKit | |
import CoreData | |
import Meteor | |
let Meteor = METCoreDataDDPClient(serverURL: NSURL(string: "wss://stridepost.meteor.com/websocket")) | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { |
This file contains 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
import UIKit | |
import Foundation | |
class ViewController: UIViewController, SubscriptionLoaderDelegate { | |
let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. |
This file contains 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
func callTestMethod() { | |
Meteor.callMethodWithName("testMethod", parameters: "hello test method") { result in | |
println(result) | |
// You should receive back a string saying "I have received the following value hello test method" | |
} | |
func setupSubscription() { | |
let subscriptionLoader = SubscriptionLoader() | |
var childUserInfoSubscription = subscriptionLoader.addSubscriptionWithName("childUserInfo") | |
var testSubscription = subscriptionLoader.addSubscriptionWithName("testPub") |
This file contains 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
###### FAMILIES SCHEMA ######## | |
###### EACH FAMILY HAS ONE DOCUMENT ###### | |
Schemas.Family = new SimpleSchema( | |
name: | |
type: String | |
adults: | |
type: [Object] | |
'adults.$.userId': | |
type: String | |
children: |
This file contains 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
// SHARED SCHEMA FOR BOTH ADULT AND CHILD. PROFILE CONTAINS KEYS FOR BOTH ADULT AND CHILD | |
// SOME KEYS ARE ONLY RELAVANT TO ADULT AND SOME ONLY TO CHILD | |
// BUT SINCE THEY ARE ALL USERS WE HAVE TO SHARE THE SAME SCHEMA | |
// SO MANY KEYS IN PROFILE ARE MARKED AS OPTIONAL. | |
Schema.UserProfile = new SimpleSchema( | |
firstName: | |
type: String | |
regEx: /^[a-zA-Z-]{2,25}$/ | |
optional: true | |
lastName: |
This file contains 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
##### Rewards API ##### | |
# CALL THIS METHOD TO SEARCH AND RECEIVE GET A LIST OF PRODUCTS ON AMAZON | |
amazonItemSearch: (keyword, category, page) -> | |
# Page value can be a number 1-10. | |
# Category has to be one of the categories available on the parent web | |
# Keyword is the search keyword | |
return [Object, Object, Object] # Will receive an array with objects as return value |