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
// Extracting data from Parse.com | |
Parse.initialize("[replace with parse key]", "[replace with parse key]"); | |
var LA = Parse.Object.extend("LA_year_avg"); | |
var query = new Parse.Query(LA); | |
var dataTest; | |
var dataPoint; | |
var dataArray = []; | |
// Creating dataArray with Parse's data |
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
Parse.initialize("[replace with parse key]", "[replace with parse key]"); | |
var LA = Parse.Object.extend("LA_year_avg"); | |
var query = new Parse.Query(LA); | |
var dataTest; | |
var dataPoint; | |
var dataArray = []; | |
// Creating dataArray with Parse's data | |
query.find({ |
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
~/Projects/rentmybikes(branch:master*) » foreman start juanfiguera@Juans-MacBook-Pro | |
17:58:31 web.1 | started with pid 59228 | |
17:58:32 web.1 | 2013-03-08 17:58:32 [59228] [INFO] Starting gunicorn 0.16.1 | |
17:58:32 web.1 | 2013-03-08 17:58:32 [59228] [INFO] Listening at: http://0.0.0.0:5000 (59228) | |
17:58:32 web.1 | 2013-03-08 17:58:32 [59228] [INFO] Using worker: sync | |
17:58:32 web.1 | 2013-03-08 17:58:32 [59229] [INFO] Booting worker with pid: 59229 | |
17:58:33 web.1 | 2013-03-08 17:58:33 [59229] [ERROR] Exception in worker process: | |
17:58:33 web.1 | Traceback (most recent call last): | |
17:58:33 web.1 | File "/Users/juanfiguera/.virtualenvs/rentmybike/lib/python2.7/site-packages/gunicorn/arbiter.py", line 469, in spawn_worker | |
17:58:33 web.1 | worker.init_process() |
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
~/Projects/rentmybikes(branch:master) » foreman start | |
17:22:27 web.1 | started with pid 58980 | |
17:22:27 web.1 | 2013-03-08 17:22:27 [58980] [INFO] Starting gunicorn 0.16.1 | |
17:22:27 web.1 | 2013-03-08 17:22:27 [58980] [INFO] Listening at: http://0.0.0.0:5000 (58980) | |
17:22:27 web.1 | 2013-03-08 17:22:27 [58980] [INFO] Using worker: sync | |
17:22:27 web.1 | 2013-03-08 17:22:27 [58981] [INFO] Booting worker with pid: 58981 | |
17:22:28 web.1 | 2013-03-08 17:22:28 [58981] [ERROR] Exception in worker process: | |
17:22:28 web.1 | Traceback (most recent call last): | |
17:22:28 web.1 | File "/Users/juanfiguera/.virtualenvs/rentmybike/lib/python2.7/site-packages/gunicorn/arbiter.py", line 469, in spawn_worker | |
17:22:28 web.1 | worker.init_process() |
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
[PFCloud callFunctionInBackground:@"hello" withParameters:@{} block:^(NSString *result, NSError *error) { | |
if (!error) { | |
NSLog(@"The result of your first Cloud Code function is: %@", result)"; | |
} | |
}]; |
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
NSLog(@"The result of your first Cloud Code function is: %@", result)"; |
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
[PFCloud callFunctionInBackground:@"hello" withParameters:@{} block:^(NSString *result, NSError *error) { | |
if (!error) { | |
// result is @"Hello world!" | |
} | |
}]; |