This file contains hidden or 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
def interval_to_chron(interval, start_time): | |
if interval == Interval.MINUTELY: | |
# simple | |
return '*/1 * * * *' | |
elif interval == Interval.FIVE_MINUTES: | |
# simple | |
'*/5 * * * *' | |
elif interval == Interval.TEN_MINUTES: | |
return '{start_minute_mod_ten}-59/10 * * * *'.format(start_minute_mod_ten=start_time.minute % 10) | |
elif interval == Interval.THIRTY_MINUTES: |
This file contains hidden or 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
license: apache-2.0 |
This file contains hidden or 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
license: apache-2.0 |
This file contains hidden or 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
''' | |
To run: | |
python -m bokeh serve iex.py | |
''' | |
import io |
This file contains hidden or 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 time | |
def o1(x): | |
print("1: %s" % x) | |
return x | |
def o2(x): | |
print("2: %s" % x) | |
return x |
NewerOlder