Skip to content

Instantly share code, notes, and snippets.

View bhushanjawle's full-sized avatar

Bhushan Jawle bhushanjawle

View GitHub Profile

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

@yyuu
yyuu / circle.rb
Last active December 7, 2019 13:10
A simple script to convert Circle CI configurations from circle.yml (1.0) to .circleci/config.yml (2.0)
#!/usr/bin/env ruby
require "fileutils"
require "shellwords"
require "yaml"
CIRCLE1_DEFAULT_CACHE_DIRECTORIES = [
"vendor/bundle",
"~/.m2",
"~/.bundle",
@dvdbng
dvdbng / vim-heroku.sh
Last active October 16, 2024 17:15
Run vim in heroku updated 2017
mkdir ~/vim
cd ~/vim
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim
# Compiled on Jul 20 2017
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz
export VIMRUNTIME="$HOME/vim/runtime"
export PATH="$HOME/vim:$PATH"
cd -
@EQuimper
EQuimper / vsc.txt
Created April 20, 2017 19:55
Visual Studio Code shortcuts
Shortcuts
- shift+cmd+d -> create same line below
- shift+cmd+f -> open search in project
- cmd+d -> select full word
- cmd+d + shift-cmd-g -> search word in file
- shift+cmd+enter -> new line before
- cmd+enter -> new line after
- cmd+arrow -> go the end
- ctrl-tab -> go back to the recent file
@Netzberufler
Netzberufler / style.css
Created April 12, 2017 13:18
Twenty Seventeen Full Width page template
body.page-template-template-full-width #content #primary {
max-width: 100%;
}
body.page-template-template-full-width #content #primary .entry-header,
body.page-template-template-full-width #content #primary .entry-content {
float: none;
width: 100%;
}
import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
print('Hello!')
if __name__ == '__main__':
loop.run_until_complete(hello())
@xcolour
xcolour / pantheon-db-cnxn-tunnel.sh
Last active January 23, 2017 19:26 — forked from milodesc/pantheon-db-cnxn-tunnel.sh
Connect to a Pantheon site's database via an SSH tunnel (requires terminus 1.x)
#!/bin/bash
set -e
terminus="<path_to_terminus_executable>"
SITE=$1
if [ "$SITE" = "" ]; then
echo "USAGE: $0 site-shortname <environment>
@r3verser
r3verser / AccessBehavior.php
Last active December 7, 2022 08:22
Yii2 Redirects all users to login (or any) page if not logged in, but allow access to some pages (like signup, password recovery etc.)
<?php
/*
* In configuration file
* ...
* 'as AccessBehavior' => [
* 'class' => 'app\components\AccessBehavior',
* 'allowedRoutes' => [
* '/',
* ['/user/registration/register'],
@chantastic
chantastic / on-jsx.markdown
Last active May 13, 2025 12:04
JSX, a year in

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't