Huey https://github.com/coleifer/huey use Redis PUB/SUB http://redis.io/topics/pubsub feature to emit events.
This is example for consuming RedisEventEmitter
import sys
import redis
CONFIG = {
Huey https://github.com/coleifer/huey use Redis PUB/SUB http://redis.io/topics/pubsub feature to emit events.
This is example for consuming RedisEventEmitter
import sys
import redis
CONFIG = {
# -*- coding: utf-8 -*- | |
import threading | |
import time | |
import SocketServer | |
import sys | |
class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler): |
sudo mount -o rw,remount / |
import argparse | |
import json | |
import falcon | |
from gunicorn.app.base import BaseApplication | |
from gunicorn.six import iteritems | |
class StandaloneApplication(BaseApplication): |
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.0"> | |
<Document> | |
<name>M58/1</name> | |
<Placemark><name>GeoB8501-2</name><Point><coordinates>16.571662,52.2441918</coordinates></Point></Placemark> | |
</Document> | |
</kml> |
```python | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import anyconfig | |
import os | |
from pprint import pprint | |
CONFIG_IN_CURR_DIR = 'name: Doktor No' |
87700000:Polskie Radio Jedynka | |
88400000:Radio Złote Przeboje | |
89100000:Polskie Radio Dwójka | |
89500000:Radio Plus Gniezno | |
89800000:Radio Emaus | |
90600000:Radio ZET Gold | |
90900000:Polskie Radio Trójka | |
91900000:PR Radio Merkury | |
92300000:Polskie Radio Jedynka | |
93000000:Radio ESKA Poznań |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
def split_file(file_name, max_line_count): | |
header = None | |
new_file_counter = 1 | |
line_counter = 0 |
sudo dd bs=4M if=/path/to/image of=/dev/sdc |
Getting It | |
You can get Django Extensions by using pip or easy_install: | |
$ pip install django-extensions | |
or | |
$ easy_install django-extensions | |
If you want to install it from source, grab the git repository from GitHub and run setup.py: | |
$ git clone git://github.com/django-extensions/django-extensions.git |