Skip to content

Instantly share code, notes, and snippets.

View JordiCorbilla's full-sized avatar
:bowtie:
Writing about Quantitative Finance and Machine Learning

Jordi Corbilla JordiCorbilla

:bowtie:
Writing about Quantitative Finance and Machine Learning
View GitHub Profile
/**
* @Author: Jordi Corbilla
* (c) Copyright by Jordi Corbilla.
**/
//Usage -> UpdateClient('1', 100, 100, 100, 100, '0.0');
function UpdateClient(id: string; photos, views, likes, comments: integer; version: string): boolean;
var
IdHTTP: TIdHTTP;
curl -X POST \
-H "X-Parse-Application-Id: thunderParse" \
-H "Content-Type: application/json" \
-d '{"version":"0.0","Id":"1","photos":100,"views":100,"likes":100,"comments":100}' \
http://localhost:1337/parse/classes/Instances
// Example express application adding the parse-server module to expose Parse
// compatible API routes.
var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var path = require('path');
var databaseUri = process.env.DATABASE_URI || process.env.MONGODB_URI;
if (!databaseUri) {
C:\Parse>npm start
> [email protected] start C:\Parse
> node index.js
DATABASE_URI not specified, falling back to localhost.
parse-server-example running on port 1337.
(3 connections now open)
2016-05-21T21:37:38.966+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:64672 #533 (4 connections now open)
2016-05-21T21:39:07.005+0100 I NETWORK [conn531] end connection 127.0.0.1:64670 (3 connections now open)
2016-05-21T21:39:07.006+0100 I NETWORK [conn530] end connection 127.0.0.1:64661 (3 connections now open)
2016-05-21T21:39:07.016+0100 I NETWORK [conn532] end connection 127.0.0.1:64671 (1 connection now open)
2016-05-21T21:39:08.019+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:64675 #534 (2 connections now open)
2016-05-21T21:39:38.968+0100 I NETWORK [conn533] end connection 127.0.0.1:64672 (1 connection now open)
Your environment has been set up for using Node.js 4.4.4 (x64) and npm.
C:\Parse>npm install
> [email protected] install C:\Parse\node_modules\kerberos
> (node-gyp rebuild) || (exit 0)
/
C:\Parse\node_modules\kerberos>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build,please add the "/m" switch.
C:\Program Files\MongoDB\Server\3.2\bin>mongod.exe
2016-05-21T11:44:58.239+0100 I CONTROL [initandlisten] MongoDB starting : pid=396 port=27017 dbpath=C:\data\db\ 64-bit host=MYWIN2012
2016-05-21T11:44:58.241+0100 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2016-05-21T11:44:58.243+0100 I CONTROL [initandlisten] db version v3.2.6
2016-05-21T11:44:58.244+0100 I CONTROL [initandlisten] git version: 05552b562c7a0b3143a729aaa0838e558dc49b25
2016-05-21T11:44:58.245+0100 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1p-fips 9 Jul 2015
2016-05-21T11:44:58.247+0100 I CONTROL [initandlisten] allocator: tcmalloc
2016-05-21T11:44:58.248+0100 I CONTROL [initandlisten] modules: none
2016-05-21T11:44:58.249+0100 I CONTROL [initandlisten] build environment:
2016-05-21T11:44:58.250+0100 I CONTROL [initandlisten] distmod: 2008plus-ssl
.\JEDI API 2.3 and JEDI WSCL 0.9.3\jwa\branches\2.3\Common
.\JEDI API 2.3 and JEDI WSCL 0.9.3\jwa\branches\2.3\Win32API
uses
ComObj, ActiveX, JwaWinbase, JwaWtsApi32;
{$R *.DFM}
procedure ServiceController(CtrlCode: DWORD); stdcall;
begin
ServiceExample.Controller(CtrlCode);
end;