Skip to content

Instantly share code, notes, and snippets.

View bhushanjawle's full-sized avatar

Bhushan Jawle bhushanjawle

View GitHub Profile
@miguelgrinberg
miguelgrinberg / .vimrc
Last active April 4, 2024 19:06
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let need_to_install_plugins = 1
endif
call plug#begin()
Plug 'tpope/vim-sensible'
@romanmichaelpaolucci
romanmichaelpaolucci / connectivity.py
Last active September 22, 2020 13:31
IB Connection
from ibapi.wrapper import EWrapper
from ibapi.client import EClient
from ibapi.utils import iswrapper
from ibapi.order import Order
from ibapi.common import *
from ibapi.contract import *
from ibapi.ticktype import *
from threading import Thread
import datetime
import time
@ranaroussi
ranaroussi / optimizeparams.py
Created December 3, 2019 13:10
Strategy param optimizer module
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import matplotlib as _mpl
import matplotlib.pyplot as _plt
from mpl_toolkits.mplot3d import Axes3D as _Axes3D
import numpy as _np
import pandas as _pd

Install MySQL

See what formula are available.

brew search mysql
==> Formulae
@davidegreenwald
davidegreenwald / WordPress-wp_posts-MySQL-data-size
Last active January 4, 2018 11:15
MySQL statement for WordPress wp_posts table breaking down data size for each post_type
-- This will show you the size of post, revision, attachment and other fields in `wp_posts`
-- this method can be applied to any WordPress table to get a breakdown of clutter and data use
-- this will not get you index size, but WP indexes are typically a small fraction of overall table size
SELECT post_type
COUNT(*) AS NUM, -- adds a column with the number of rows for each key value for comparison
SELECT post_type, COUNT(*) AS NUM,
(SUM(LENGTH(ID) -- add all column data together to group the total row data by post_type
+LENGTH(post_author)
+LENGTH(post_date)
+LENGTH(post_date_gmt)

Intermediate Python for Finance Training

This is the Gist for Day 1 of the Intermediate Python for Finance Training in London, 28. November 2017

Agenda

Module 1 — Python

For Python Quants Bootcamp

This is the Gist the For Python Quants Bootcamp in London 24. November 2017 (http://fpq.io)

This fourth boocamp day is about Python for Algorithmic Trading (II).

Topics

For Python Quants Bootcamp

This is the Gist the For Python Quants Bootcamp in London 23. November 2017 (http://fpq.io)

This third boocamp day is about Python for Algorithmic Trading (I).

Topics

For Python Quants Bootcamp

This is the Gist the For Python Quants Bootcamp in London 22. November 2017 (http://fpq.io)

This second boocamp day is about Financial Data Science.

Topics

FXCM Webinar Series

on Algorithmic Trading

Python & Historical Tick Data

Dr. Yves J. Hilpisch | The Python Quants GmbH

Online, 24. October 2017