Skip to content

Instantly share code, notes, and snippets.

View remcowesterhoud's full-sized avatar

Remco remcowesterhoud

  • Camunda
  • The Netherlands
  • 10:17 (UTC +02:00)
View GitHub Profile
@remcowesterhoud
remcowesterhoud / Twitter.scala
Created November 7, 2016 13:55
Proof of Concept - Fetching Twitter followers
package Twitter_streams
import java.util.concurrent.{ConcurrentLinkedQueue, ExecutorService, Executors}
import akka.actor.ActorSystem
import akka.event.{Logging, LoggingAdapter}
import akka.{Done, NotUsed}
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.{Flow, Sink, Source}
import twitter4j.{ResponseList, Twitter, TwitterFactory, User}
@remcowesterhoud
remcowesterhoud / behave-parallel.py
Last active January 19, 2022 20:24
All credit goes to s1ider https://gist.github.com/s1ider/f13c2f163282dbec7a61. All I did was fix it up, made it work in Python3 and added Behave Userdata support
"""
Behave runner for running features asynchronously.
"""
from multiprocessing import Pool
from subprocess import call, Popen, PIPE
from glob import glob
import logging
import argparse
import json
from functools import partial