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
[will@tangerine nohup-test]$ ansible-playbook playbook.yml --limit 127.0.0.1 | |
PLAY [all] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [127.0.0.1] | |
TASK: [run long running script] *********************************************** | |
^CTraceback (most recent call last): | |
File "/home/will/src/ansible/bin/ansible-playbook", line 268, in <module> |
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
hello {{ who }} |
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
import numpy as np | |
from pandas import * | |
import matplotlib.pyplot as plt | |
from pylab import figure, show | |
from datetime import timedelta | |
df = read_csv('training.csv', sep = ' , ', | |
names=[ 'date', 'activity', 'distance', 'duration']) | |
df['date'] = df['date'].apply(lambda x: datetime.strptime(x, '%d/%m/%Y')) |
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 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from pandas import * | |
from pylab import figure, show | |
def trimnum(n): | |
if abs(n - int(n)) > 0.05: | |
return "%.1f" % n |
NewerOlder