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 math import radians, cos, sin, asin, sqrt | |
import numpy as np | |
import random | |
import time | |
from functools import wraps | |
import time | |
from functools import wraps |
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
- good for quick introduction: https://developer.android.com/develop/ui/compose/tutorial |
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 batch(datas, n=10): | |
idx = 0 | |
while True: | |
chunk = datas[idx: idx+10] | |
if len(chunk) == 0: | |
break | |
yield chunk | |
idx += n | |