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
boggy@waaas curl -X POST 'http://localhost:8080/getvideo' -F 'replay=@game.WAgame' -F 'x=1920' -F 'y=1080' -F 'fps=1' -F 'start=100' -F 'end=105' | |
9asfpl8d | |
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/status' | |
{"done": false, "ready": 6, "expected": 5, "progress": 1.2, "remaining": 0, "estimate_s": 0, "zero_indexed": true} | |
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/status' | |
{"done": false, "ready": 6, "expected": 5, "progress": 1.2, "remaining": 0, "estimate_s": 0, "zero_indexed": true} | |
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
# unordered | |
# c = color channel if available | |
np.concatenate(np.reshape(img, (img_rows,-1,img_width,c), axis=1) | |
# ordered | |
# n = number of tiled images that should make up a row in the grid | |
np.vstack([np.concatenate(img[i:i+n], axis=1) for i in range(0, len(img), n)]) |
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
set search_path = "db10838396-cwt"; | |
CREATE OR REPLACE FUNCTION timeline(bigint) | |
RETURNS TABLE | |
( | |
timeline text | |
) | |
ROWS 1 | |
LANGUAGE SQL | |
AS |
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
import os | |
import re | |
import sys | |
from typing import IO | |
from bs4 import BeautifulSoup | |
from bs4.element import Tag | |
if len(sys.argv) == 2: | |
argv_path = sys.argv[1] |