Skip to content

Instantly share code, notes, and snippets.

View dima-kov's full-sized avatar

Dmytro Kovalchuk dima-kov

  • Kyiv, Ukraine
View GitHub Profile
@dima-kov
dima-kov / celeryd
Created June 7, 2018 10:01
Celery deploy
CELERYD_NODES="bookgo-worker"
CELERY_BIN="/var/sites/bookgo/env/bin/celery"
CELERY_APP="bocrok"
CELERYD_CHDIR="/var/sites/bookgo/src"
# Set logging level to DEBUG
CELERYD_LOG_LEVEL="DEBUG"
@dima-kov
dima-kov / lity.min.css
Created December 13, 2018 13:39
Map in modal
/*! Lity - v2.3.1 - 2018-04-20
* http://sorgalla.com/lity/
* Copyright (c) 2015-2018 Jan Sorgalla; Licensed MIT */.lity{z-index:9990;position:fixed;top:0;right:0;bottom:0;left:0;white-space:nowrap;background:#0b0b0b;background:rgba(0,0,0,0.9);outline:none !important;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.lity.lity-opened{opacity:1}.lity.lity-closed{opacity:0}.lity *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.lity-wrap{z-index:9990;position:fixed;top:0;right:0;bottom:0;left:0;text-align:center;outline:none !important}.lity-wrap:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-0.25em}.lity-loader{z-index:9991;color:#fff;position:absolute;top:50%;margin-top:-0.8em;width:100%;text-align:center;font-size:14px;font-family:Arial,Helvetica,sans-serif;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.lity-loading .lity-load
@dima-kov
dima-kov / result.json
Created June 6, 2019 14:54
Polygons recognition result example
{
"data":[
[[1,1], [2,3], [1,5], [1,1]],
[[1,2], [2,2], [4,5], [1,2]]
]
}