Skip to content

Instantly share code, notes, and snippets.

@sglyon
sglyon / pairwise_benchmark.ipynb
Last active December 9, 2015 20:08
numba and cython benchmarks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sglyon
sglyon / OSX_keybinding_TODOControl.sublime-keymap
Created January 18, 2013 17:32
show all TOOD. NOTE. FIXMEin st2
[
{ "keys": ["super+t, super+d"], "command": "log_all_tags" }
]
@sglyon
sglyon / ssh mary_lou beta
Last active December 14, 2015 02:59
Mary Lou address
ssh lyon4@betassh.fsl.byu.edu
module load python/2.7.3
@sglyon
sglyon / LaTeX Python .gitignore
Created March 20, 2013 22:38
Standard .gitignore to be used in projects with LaTeX and python source
# 'Helper' LaTeX files to ignore
*.aux
*.fdb_latexmk
*.nav
*.out
*.snm
*.gz
*.toc
*.pdfsync
*.blg
@sglyon
sglyon / Figures1191_1193(dolo).ipynb
Last active December 20, 2015 18:49
RMT4 Figures 11.9.1, 11.9.2, and 11.9.3 using dolo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sglyon
sglyon / main.aux
Last active December 28, 2015 06:59
PythonTex inputpygments bug
\relax
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
{
"worksheets": [
{
"cells": [
{
"metadata": {},
"input": "%matplotlib inline\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport pandas as pd\nfrom pandas.io.data import get_data_yahoo, get_data_google\nimport seaborn as sns\nfrom pynance.tools.data import hist_data_threaded",
"cell_type": "code",
"prompt_number": 110,
"outputs": [],
{
"worksheets": [
{
"cells": [
{
"metadata": {},
"input": "import pandas as pd\n\n_cc = pd.read_csv(\"All_covered_call172014.csv\", index_col=0)\nto_keep = [u'ExDivDate', u'Expiry', u'OptionPrice', u'StockPrice', u'Strike', u'Vol', u'Volatility', \n u'StaticRet', u'CapitalRet', u'AnnStaticRet', u'AnnCapitalRet']\ncc = _cc[to_keep]",
"cell_type": "code",
"prompt_number": 16,
"outputs": [],
# Repeat an operation n times, e.g.
# @dotimes 100 println("hi")
macro dotimes(n, body)
quote
for i = 1:$(esc(n))
$(esc(body))
end
end
end