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
from __future__ import division | |
import pygame, urllib2, json, pprint,time | |
from random import randint, random | |
from datetime import datetime, timedelta | |
from urllib2 import urlopen | |
from colorsys import hsv_to_rgb | |
# setup some useful stuff for display | |
pygame.init() | |
SECONDS_IN_A_DAY = 86400 |
import SwiftUI | |
struct ContentView: View { | |
// stores the input from the text field | |
@State private var message = "" | |
// stores the saved input | |
// note the this variable is initialized from the UserDefaults | |
@State private var pesistedMessage = UserDefaults.standard.string(forKey: "UserMessage") | |
var body: some View { |
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
This is the Gist the For Python Quants Bootcamp in London, 21.-24. November 2017 (http://fpq.io)
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
datetimes = [datetime.datetime.fromtimestamp(timestamp) for timestamp in timestamps] | |
dates = matplotlib.dates.date2num(datetimes) |
#!/bin/bash | |
SCRIPTNAME=`basename "$0"` | |
print_help() { | |
cat << EOF | |
Usage: $SCRIPTNAME filename | |
Uses 'inotifywait' to sleep until 'filename' has been modified. | |
Inspired by http://superuser.com/questions/181517/how-to-execute-a-command-whenever-a-file-changes/181543#181543 |
main.py | |
a = 7 | |
import second | |
print f(a) | |
--------------- | |
second.py |
(import '(java.io BufferedReader FileReader)) | |
(line-seq (BufferedReader. (FileReader. "users.txt"))) |
set nocompatible | |
filetype indent plugin on | syn on | |
set hidden | |
filetype on | |
filetype plugin on | |
filetype indent on | |
" let's copy paste some lines from documentation | |
fun! SetupVAM() | |
let addons_base = expand('$HOME') . '/.vim/vim-addons' |