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 infer_freq(self, pd_series): | |
d = { | |
"A": "year", | |
"M": "month", | |
"W": "week", | |
"D": "day", | |
"H": "hour", | |
"T": "min", | |
"S": "sec", | |
"L": "millisec", |
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
{ | |
"AWSEBDockerrunVersion": 2, | |
"volumes": [ | |
{ | |
"name": "storage", | |
"host": { | |
"sourcePath": "/storage" | |
} | |
} | |
], |
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
@app.route('/upload', method="POST") | |
def upload_file(): | |
files = request.files | |
res = fma.upload_file(files) | |
if res["status"] == "success": | |
name = res["detail"]["name"] | |
id = res["detail"]["id"] | |
save_path = fma.get_save_path(id) | |
cutout_res = cutout_face(save_path, name, save_path) | |
if cutout_res["status"] == "error": |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
defaults write com.apple.finder AppleShowAllFiles TRUE | |
killAll Finder |
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
select jsonb_set('{"a":{"b":"c"}}','{"a","b"}','"@@@"', false); | |
jsonb_set | |
--------------------- | |
{"a": {"b": "@@@"}} | |
(1 row) |
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
docker rmi $(docker images -f "dangling=true" -q) |
NewerOlder