Skip to content

Instantly share code, notes, and snippets.

View MessiDaGod's full-sized avatar

MessiDaGod MessiDaGod

  • Southern California
View GitHub Profile
@qianlifeng
qianlifeng / gist:8123612
Created December 25, 2013 14:23
Embedding python in C
extern "C" __declspec(dllexport) char* ExecPython(char* directory, char* file, char* query)
{
try{
PyObject *pName, *pModule, *pDict, *pFunc, *pValue, *pClass, *pInstance;
// Initialise the Python interpreter
Py_Initialize();
//// Create GIL/enable threads
/*
A single-file JavaScript class to draw candlestick charts.
Use at your own risk.
https://twitter.com/pingpoli
https://pingpoli.de
*/
function pingpoliCandlestick( timestamp , open , close , high , low )
{
this.timestamp = parseInt(timestamp);
this.open = parseFloat(open);