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 typing import Literal, Union | |
from enum import Enum | |
class ModelType(str, Enum): | |
Simple1 = "simple1" | |
Simple2 = "simple2" | |
Complex1 = "complex1" | |
Complex2 = "complex2" | |
class BaseModel: |
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 typing import Literal, Union | |
from enum import Enum | |
class ModelType(str, Enum): | |
Simple1 = "simple1" | |
Simple2 = "simple2" | |
Complex1 = "complex1" | |
Complex2 = "complex2" | |
class BaseModel: |
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
var pollCount = 1; | |
var poll = function() { | |
if (document.hidden) // if the interval has not been cleared right | |
return; | |
var p = document.createElement('p'); | |
p.innerText = 'Polled ' + pollCount + ' times.'; | |
document.body.insertBefore(p, document.body.firstChild); | |
pollCount++; | |
}; |