Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

tdual Tdual

🏠
Working from home
Block or report user

Report or block Tdual

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:0dac8a2dda8bc0703c10f806f267eb68
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "storage",
"host": {
"sourcePath": "/storage"
}
}
],
View gist:c4bdb0fbe9d9a48366319dddf45a24de
@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":
View pandas_agg_list.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View VocabularyProcessor.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View agg_percentile.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View pandas_agg.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:e25803df3a7634f55f99a497af44c12a
defaults write com.apple.finder AppleShowAllFiles TRUE
killAll Finder
View gist:4d50382988a3661cc4bc311563b6fade
select jsonb_set('{"a":{"b":"c"}}','{"a","b"}','"@@@"', false);
jsonb_set
---------------------
{"a": {"b": "@@@"}}
(1 row)
@Tdual
Tdual / gist:52ac6baeb42ffd8b912b1f920200dc05
Created Dec 12, 2017
remove all docker's images named none
View gist:52ac6baeb42ffd8b912b1f920200dc05
docker rmi $(docker images -f "dangling=true" -q)
@Tdual
Tdual / gist:fe74fdac95815a61699334368fb3430f
Created Nov 20, 2017
install conda kernel to jupyter
View gist:fe74fdac95815a61699334368fb3430f
python -m ipykernel install --name <conda kernel name>
You can’t perform that action at this time.