This document is still a scratch
You’ll want a directory to do this in so that you don’t screw up your machine.
# -*- coding:utf-8 -*- | |
class LoupQuery(Query): | |
pass | |
db_session = scoped_session( | |
sessionmaker( | |
autocommit=False, | |
autoflush=False, |
from datetime import timedelta | |
from celery import Celery | |
from celery.task import periodic_task | |
app = Celery('tasks', backend='amqp', | |
broker='amqp://guest@localhost//') | |
/** | |
* Works everywere ( IE7+, FF, Chrome, Safari, Opera ) | |
* Example: http://jsbin.com/afAQAWA/2/ | |
*/ | |
.rotated-text { | |
display: inline-block; | |
overflow: hidden; | |
width: 1.5em; | |
} | |
.rotated-text__inner { |
"""Demo of streaming requests with Tornado. | |
This script features a client using AsyncHTTPClient's body_producer | |
feature to slowly produce a large request body, and two server | |
handlers to receive this body (one is a proxy that forwards to the | |
other, also using body_producer). | |
It also demonstrates flow control: if --client_delay is smaller than | |
--server_delay, the client will eventually be suspended to allow the | |
server to catch up. You can see this in the logs, as the "client |
"""This module contains the ``SeleniumMiddleware`` scrapy middleware""" | |
import asyncio | |
from pyppeteer import launch | |
from scrapy import signals | |
from scrapy.http import HtmlResponse | |
from twisted.internet import defer | |
from .http import PuppeteerRequest |
import wx | |
#from wx.lib.pubsub.core import Publisher #If you want to manage your own publisher use this | |
from wx.lib.pubsub import pub | |
import threading | |
class ParcelData(object): | |
def __init__(self,count,current,message): | |
self.parcel_count = count | |
self.current_parcel = current | |
self.message = message |
# Description: How to assign VPC addresses to Docker containers associated as secondary IP addresses to an ENI in AWS | |
# Operating System: Amazon Linux AMI 2016.09.1 (HVM) | |
# Prerequisites: | |
# - Assign N number of secondary IP addresses to network interface on Docker host | |
# - Each new container requires additional assignment of secondary IP addresses | |
# - Containers can be launched with --net=none to avoid adding a Docker networked NIC (docker run --net=none -d imageId) | |
# Credit to https://github.com/jpetazzo/pipework for steps on linking IP address | |
################# Setup Bridge of eth0 ###################### | |
yum install bridge-utils -y |