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
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
#!/usr/bin/env ruby | |
require "fileutils" | |
require "shellwords" | |
require "yaml" | |
CIRCLE1_DEFAULT_CACHE_DIRECTORIES = [ | |
"vendor/bundle", | |
"~/.m2", | |
"~/.bundle", |
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 - |
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 |
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()) | |
#!/bin/bash | |
set -e | |
terminus="<path_to_terminus_executable>" | |
SITE=$1 | |
if [ "$SITE" = "" ]; then | |
echo "USAGE: $0 site-shortname <environment> |
<?php | |
/* | |
* In configuration file | |
* ... | |
* 'as AccessBehavior' => [ | |
* 'class' => 'app\components\AccessBehavior', | |
* 'allowedRoutes' => [ | |
* '/', | |
* ['/user/registration/register'], |
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