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
from livereload.task import Task | |
def delay(): | |
import time | |
time.sleep(10) # 10s | |
Task.add('*', delay) |
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
def Integer(obj): | |
if obj["min"] < obj["value"] < obj["max"]: | |
return True | |
else: | |
raise ValueError("value out of range") | |
min_tile_size = {"type": Integer, | |
"min": 10, | |
"max": 20, | |
"value": 15, |