This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
#!/usr/bin/osascript | |
-- Run ipython on a new iTerm (OS X version) | |
-- See http://www.iterm2.com/#/section/documentation/scripting | |
tell application "iTerm" | |
activate | |
set ipy to (make new terminal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index | name | ctID | lastUpdate | |
---|---|---|---|---|
0 | DV281 | NCT03326752 | November 1, 2017 | |
1 | SD101 | NCT02521870 | December 7, 2017 | |
2 | AZD1419 | NCT02898662 | December 21, 2017 | |
3 | SD101+MK1966 | NCT02731742 | December 11, 2017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Source: https://guides.wp-bullet.com | |
# Author: Mike | |
#define local path for backups | |
BACKUPPATH="/srv/users/serverpilot/bak/tmp" | |
#define remote backup path | |
BACKUPPATHREM="gBackup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on open this_item | |
tell application "iTerm" | |
activate | |
set iPyNbViewer to (make new terminal) | |
tell iPyNbViewer | |
activate current session | |
launch session "Default Session" | |
tell the last session | |
set name to "IPython Notebook" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env python | |
from pandas import np | |
from pandas.io.data import DataReader | |
def historical_volatility(sym, days): | |
"Return the annualized stddev of daily log returns of `sym`." | |
try: | |
quotes = DataReader(sym, 'yahoo')['Adj Close'][-days:] |
NewerOlder