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
# This file is included in main nginx config file | |
# push-stream module configuration | |
push_stream_shared_memory_size 256M; | |
push_stream_message_ttl 60s; | |
push_stream_max_messages_stored_per_channel 32; | |
server { | |
listen 80; |
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
# -*- coding: utf-8 -*- | |
""" | |
Making use of twisted coiterate | |
example 01 | |
""" | |
from twisted.internet import reactor | |
from twisted.internet.task import coiterate | |
def make_iterator_to_sum_all_integers_until(N): |