Skip to content

Instantly share code, notes, and snippets.

View TigerND's full-sized avatar

Aleksandr Zykov TigerND

  • Vilnius, Lithuania
View GitHub Profile
[
{
"agent_id":"78937028-daeb-11eb-8b7e-2f24f9d10838",
"height":42,
"time":575
},
{
"agent_id":"78937233-daeb-11eb-84e0-254376c2af78",
"color":"hsl(169, 100%, 50%)",
"time":590
This file has been truncated, but you can view the full file.
{
"bookings": {
"0008e056-5c64-11ea-8802-7a164bdb8250": {
"dropoff_location_lat": 1.246435,
"dropoff_location_lon": 103.614374,
"dropoff_location_name": "Sembcorp Marine @ Tuas",
"dropoff_time": "2020-03-30T23:00:00+00:00",
"pickup_location_lat": 1.343196,
"pickup_location_lon": 103.704404,
"pickup_location_name": "640685",
{
"timezone": "Asia/Singapore",
"objects": [
{ "name": "John", "age": 42, "start_time": "10:00", "end_time": "13:00" },
{ "name": "Alice", "age": 35 }
]
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@page {
size: 2.00in 1.00in;
margin: 1mm 1mm 1mm 1mm;
}
div.pricelabel {
page-break-after: always;
}
@TigerND
TigerND / steem-mavericks.txt
Created July 13, 2016 13:48
Build mavericks (Jul 13, 2016 2:23:50 PM)
==> Using the sandbox
/usr/bin/sandbox-exec -f /tmp/homebrew20160713-60078-rm3adq.sb nice /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -I /usr/local/Library/Homebrew -- /usr/local/Library/Homebrew/build.rb /usr/local/Library/Taps/homebrew/homebrew-core/Formula/steem.rb --build-bottle --verbose
==> Cloning https://github.com/steemit/steem
Updating /Users/brew/Library/Caches/Homebrew/steem--git
git config remote.origin.url https://github.com/steemit/steem
git config remote.origin.fetch +refs/tags/v0.8.5b:refs/tags/v0.8.5b
==> Checking out tag v0.8.5b
git checkout -f v0.8.5b --
HEAD is now at 0ea6049... Merge branch 'develop'
git reset --hard v0.8.5b
@TigerND
TigerND / settings.py
Created May 31, 2016 06:57
Temlates caching
TEMPLATES[0]['OPTIONS']['debug'] = False
TEMPLATES[0]['OPTIONS']['loaders'] = (
('django.template.loaders.cached.Loader',
TEMPLATES[0]['OPTIONS']['loaders']
),
)
from contextlib import contextmanager
from django.conf import settings
import logging
logger = logging.getLogger(__name__)
django_db_backends_logger = logging.getLogger('django.db.backends')
@contextmanager
def debug_db_backends(enabled=settings.DEBUG, level=logging.DEBUG):
import datetime
from contextlib import contextmanager
@contextmanager
def elapsed_time():
t1 = datetime.datetime.now()
yield
t2 = datetime.datetime.now()
print(u'Elapsed time: %s' % (t2 - t1))
@TigerND
TigerND / settings.py
Created May 10, 2016 09:26
INSTALLED_APPS for djangocms-ace
INSTALLED_APPS = [
# ...
'djangocms_ace',
# ...
]