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
TALK_TYPE = ( | |
('t_30', 'Talk (30 mins)'), | |
('t_45', 'Talk (45 mins)'), | |
('t_60', 'Talk (60 mins)'), | |
('i_60', 'Interactive (60 mins)'), | |
('r_180', 'Training (180 mins)'), | |
('p_180', 'Poster session (180 mins)'), | |
('p_60', 'Panel (60 mins)'), | |
('p_90', 'Panel (90 mins)'), | |
('h_180', 'Help desk (180 mins)'), |
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
class A(): | |
x = 1 | |
a = A() | |
b = A() | |
b.x = 11 | |
a.x # ? |
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 logging | |
import sys | |
from urllib.parse import urljoin | |
import asyncio | |
import aiohttp | |
from aiohttp import web | |
TARGET_SERVER_BASE_URL = 'http://127.0.0.1:8888' |
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
#: blog/templates/blog.html:111 | |
msgid "" | |
"\n" | |
" <p>We are going to publish some blog post as soon as " | |
"possible !</p>\n" | |
"\n" | |
" " | |
msgstr "" | |
"\n" | |
" <p>-------Polish text here-----</p>\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
# using such a setup requires `apt-get install lua-nginx-redis` under Ubuntu Trusty | |
# more info @ http://wiki.nginx.org/HttpLuaModule#access_by_lua | |
http { | |
lua_package_path "/etc/nginx/include.d/?.lua;;"; | |
lua_socket_pool_size 100; | |
lua_socket_connect_timeout 10ms; | |
lua_socket_read_timeout 10ms; | |
server { |
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
from collections import namedtuple | |
from sys import getsizeof | |
from typing import NamedTuple | |
test_namedtuple = namedtuple("TEST", "a b c d f") | |
a = test_namedtuple(a=1,b=2,c=3,d=4,f=5) | |
class TestSlots(): | |
__slots__ = ["a","b","c","d","f"] |
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
FROM komljen/ubuntu | |
MAINTAINER Alen Komljen <[email protected]> | |
RUN \ | |
apt-get update && \ | |
apt-get -y install \ | |
redis && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN rm /usr/sbin/policy-rc.d |
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
FROM python:3.6.1-alpine | |
CMD python -c "while True: print('Hello Python')" |
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 asyncio | |
import logging | |
import aiohttp | |
from aiohttp import web | |
from auth.utils import login_required | |
import aiodocker | |
from aiodocker.docker import Docker | |
from aiodocker.exceptions import DockerError | |
log = logging.getLogger(__name__) |
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 asyncio | |
import random | |
class Genropy: | |
_number = None | |
@property | |
def number(self): |
OlderNewer