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
{"id":311,"name":"Sample Name"} |
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
Running "jasmine" task | |
Testing jasmine specs via phantom | |
ReferenceError: Can't find variable: jQuery |
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
CarrierWave.configure do |config| | |
config.fog_public = false | |
config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} | |
config.cache_dir = "#{Rails.root}/tmp/uploads" | |
if Rails.env.test? # Use local file system | |
config.enable_processing = false | |
config.storage = :file | |
else # Use Rackspace cloud files | |
config.storage = :fog |
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
{ | |
id: 1, | |
name: "Bullets Sports Bar", | |
description: "", | |
alias_list: [ ], | |
tag_list: [ ], | |
created_at: "2013-01-28T11:03:25-06:00", | |
updated_at: "2013-01-29T11:21:10-06:00", | |
active: true, | |
addresses: [ |
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
curl -H "Content-Type: application/json" -X PUT -d '{"location":{"name":"Bullets Sports Bar","addresses_attributes":[{"address_line_1":"2441 A.P. Tureaud St.", "city":"New Orleans", "postal_code":"70119", "longitude":"29.9815565", "latitude":"-90.067299", "country_code":"USA"},{"address_line_1":"123 Main Street", "city":"New Orleans", "postal_code":"70119", "longitude":"29.9815565", "latitude":"-90.067299", "country_code":"USA"}]}}' https://valentinocdx.com/api/v1/json/AUTHENTICATION_TOKEN/locations/create_or_update |
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
if([attendanceIdentifierData length] > 0) { | |
NSString *activityTypeID = [[NSUserDefaults standardUserDefaults] | |
valueForKey:@"activity_type_id"]; | |
NSString *deviceUUID = [[NSUserDefaults standardUserDefaults] | |
valueForKey:@"application_uuid"]; | |
NSDictionary* params = [NSDictionary dictionaryWithObjectsAndKeys: | |
attendanceIdentifierData, @"attendance_identifier", nil]; | |
NSString *authenticationToken = [[NSUserDefaults standardUserDefaults] | |
valueForKey:@"authentication_token"]; | |
NSString *postPath = [NSString stringWithFormat:@"/api/v2/json/%@/activity_types/%@/activities/create_or_update/%@", authenticationToken, activityTypeID, deviceUUID]; |
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 "TTConstants.h" | |
#import "TTActivitiesViewController.h" | |
#import "TTDetailViewController.h" | |
#import "TTSignInCell.h" | |
#import "TTActivity.h" | |
#import "TTUser.h" | |
#import "TTActivityType.h" | |
#import "TTCustomer.h" | |
#import <SDWebImage/UIImageView+WebCache.h> |
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 "TTConstants.h" | |
#import "TTActivitiesViewController.h" | |
#import "TTDetailViewController.h" | |
#import "TTSignInCell.h" | |
#import "TTActivity.h" | |
#import "TTUser.h" | |
#import "TTActivityType.h" | |
#import "TTCustomer.h" | |
#import <SDWebImage/UIImageView+WebCache.h> |
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 "TTActivityTypesViewController.h" | |
#import "TTConstants.h" | |
#import "TTActivityType.h" | |
#import "TTCustomer.h" | |
static void TTShowAlertWithError(NSError *error) | |
{ | |
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" | |
message:[error localizedDescription] |
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
NSEntityDescription *activityTypeEntity = [NSEntityDescription entityForName:@"ActivityType" inManagedObjectContext:managedObjectStore.persistentStoreManagedObjectContext]; | |
NSRelationshipDescription *customerRelationship = [activityTypeEntity relationshipsByName][@"customer"]; | |
RKConnectionDescription *connection = [[RKConnectionDescription alloc] initWithRelationship:customerRelationship attributes:@{ @"customerID": @"customerID" }]; | |
[activityTypeMapping addConnection:connection]; |
NewerOlder