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 itertools | |
import aiozmq | |
import zmq | |
async def main(): | |
router = await aiozmq.create_zmq_stream(zmq.ROUTER, bind="tcp://127.0.0.1:5555") |
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 __future__ import unicode_literals | |
from django.db import models | |
class Main(models.Model): | |
name = models.TextField() | |
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
[global_config] | |
window_state = maximise | |
title_transmit_bg_color = "#05005f" | |
[keybindings] | |
next_tab = <Shift>Right | |
split_horiz = <Primary>1 | |
prev_tab = <Shift>Left | |
broadcast_all = <Primary>g | |
split_vert = <Primary>2 | |
broadcast_off = <Primary><Shift>g |
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
""" | |
Original code: | |
https://github.com/django/django/blob/master/django/utils/crypto.py | |
""" | |
import hashlib | |
import random | |
import time | |
# Use the system PRNG if possible |