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
| from datetime import timedelta | |
| from importlib import import_module | |
| import gc | |
| import logging | |
| import sys | |
| import traceback | |
| import requests | |
| from django.conf import settings | |
| from django.core.cache import cache |
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
| FROM python:3.7.11-slim | |
| RUN pip install requests ray[default] | |
| WORKDIR /workspace | |
| ENTRYPOINT ["bash", "-c"] | |
| CMD ["python sync.py"] |
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 os | |
| import signal | |
| from tqdm import tqdm | |
| from multiprocessing import cpu_count, Pool | |
| image_base = './images_list' | |
| # CONFIG | |
| ORIGIN_REPO = [ |
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
| func main() { | |
| rand.Seed(time.Now().UnixNano()) | |
| command := app.NewAPIServerCommand() | |
| // TODO: once we switch everything over to Cobra commands, we can go back to calling | |
| // utilflag.InitFlags() (by removing its pflag.Parse() call). For now, we have to set the | |
| // normalize func and add the go flag set by hand. | |
| // utilflag.InitFlags() |
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
| 12312312412412 |
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
| 123112312 |
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
| Other 12 hrs 9 mins βββββββββββββββββββββ 58.7% | |
| Go 2 hrs 37 mins βββββββββββββββββββββ 12.7% | |
| Makefile 1 hr 54 mins βββββββββββββββββββββ 9.2% | |
| Python 1 hr 47 mins βββββββββββββββββββββ 8.6% | |
| YAML 1 hr 3 mins βββββββββββββββββββββ 5.1% |
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
| a = 1 # Adam | |
| b = 2 # Bob | |
| c = 4 # Clair | |
| d = 8 # Dave | |
| torch="*" | |
| bridge="/------------------------------\\" | |
| def get_bridge_side(side_total): |
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
| a gist test with vim |