Skip to content

Instantly share code, notes, and snippets.

@minisoba
minisoba / Sublime(Linux).sublime-keymap
Last active April 9, 2023 22:50
SublimeText user key bindings
[
// 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} },
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)
//
#include <iostream>
using namespace std;
struct StockPrice {
struct P {
long buy;
long sell;
P() : buy(0), sell(0) {
// 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 },

This shows how to make a communication bridge between C++ and LispWorks using Foreign Language Interface (FLI).