This shows how to make a communication bridge between C++ and LispWorks using Foreign Language Interface (FLI).
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
Show hidden characters
[ | |
// incremental forward search doesn't work for C++ file (re-define here) | |
{ "keys": ["ctrl+s"], "command": "sbp_inc_search", "args": {"forward": true, "regex": false}}, | |
{ "keys": ["ctrl+s"], "command": "sbp_inc_search", "args": {"cmd": "next", "keep": false, "forward": true}, | |
"context": [ {"key": "i_search_active"}, {"key": "panel_has_focus"} ] | |
}, | |
// Emacs key bindings for move | |
{ "keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} }, | |
{ "keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} }, |
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 logging | |
import pandas as pd | |
import coco_quant.eod as coco_eod | |
logging.basicConfig(level="DEBUG") | |
# Set API token for EOD Historical Data | |
api_token = 'YOUR API TOKEN' | |
eod = coco_eod.EodDataDownloader(base_dir='/tmp/eod_data', api_token=api_token) |
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
// | |
#include <iostream> | |
using namespace std; | |
struct StockPrice { | |
struct P { | |
long buy; | |
long sell; | |
P() : buy(0), sell(0) { |
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
// g++ -o mat-spiral -std=c++11 mat-spiral.cpp | |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
using ARRAY = vector<vector<int>>; | |
const ARRAY m5 { | |
{ 0, 1, 2, 3, 4 }, |