Skip to content

Instantly share code, notes, and snippets.

@juanfiguera
juanfiguera / D3 & Parse
Created November 10, 2013 00:06
D3 & Parse
// 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
@juanfiguera
juanfiguera / gist:5589115
Created May 16, 2013 03:08
D3-Parse-Times
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({
@juanfiguera
juanfiguera / gist:5120741
Created March 8, 2013 23:01
rentmybikes log 2
~/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()
@juanfiguera
juanfiguera / gist:5120505
Created March 8, 2013 22:40
rentmybike launching log
~/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()
@juanfiguera
juanfiguera / Full_Cloudcode
Created February 24, 2013 13:54
Full Cloudcode
[PFCloud callFunctionInBackground:@"hello" withParameters:@{} block:^(NSString *result, NSError *error) {
if (!error) {
NSLog(@"The result of your first Cloud Code function is: %@", result)";
}
}];
@juanfiguera
juanfiguera / cloudcode_comment
Created February 24, 2013 13:53
Cloudcode comment
NSLog(@"The result of your first Cloud Code function is: %@", result)";
@juanfiguera
juanfiguera / Cloudcode
Created February 24, 2013 13:45
Sample cloudcode
[PFCloud callFunctionInBackground:@"hello" withParameters:@{} block:^(NSString *result, NSError *error) {
if (!error) {
// result is @"Hello world!"
}
}];