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
""" | |
For use with python3. | |
Usage: Download and save this script in your project folder. | |
In the script: | |
from incap import IncapSession as Session | |
session = Session() | |
response = session.get('https://www.url.com') |
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
package momijikawa.exercisezmq | |
import scala.concurrent.ExecutionContext | |
object Main extends App { | |
import akka.actor._ | |
import akka.zeromq._ | |
import akka.util.ByteString | |
import concurrent.duration._ | |
import collection.immutable.Seq |
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
#!/usr/bin/env python | |
""" | |
Farm out processing to multiple processes via zmq. | |
""" | |
import re, pickle, time, threading | |
import multiprocessing as mp | |
import zmq | |
from zmq.eventloop.ioloop import IOLoop |