├── datapipe ├── __init__.py ├── importer.py └── transformer.py ├── correlation_trading ├── __init__.py ├── transformers.py └── trading_pipe.py ├── docker-ci-demo ├── app │ ├── tests │ │ ├── __init__.py │ │ └── test_routes.py │ ├── templates │ │ ├── index.html │ │ ├── new.html │ │ └── base.html │ ├── models.py │ ├── forms.py │ ├── __init__.py │ ├── configuration.py │ └── views.py ├── Dockerfile ├── Dockerfile.test ├── run_test_mode.py ├── run.py ├── requirements.txt ├── .gitignore ├── jenkins-pipeline.groovy └── docker-compose-ci-test.yaml ├── citibikekafkastreams ├── .gitignore ├── src │ ├── main │ │ ├── resources │ │ │ └── avro │ │ │ │ └── com │ │ │ │ └── cloudboxlabs │ │ │ │ └── streams │ │ │ │ └── citi-bike-streams.avsc │ │ └── java │ │ │ └── com │ │ │ └── cloudboxlabs │ │ │ ├── CitiBikeStationInfoAPI.java │ │ │ ├── CitiBikeStationStatusAPI.java │ │ │ ├── LowAvailability.java │ │ │ └── TurnoverRatio.java │ └── assembly │ │ ├── standalone.xml │ │ ├── development.xml │ │ └── package.xml └── pom.xml ├── .gitignore ├── .DS_Store ├── README.md ├── rpc ├── interstellar_pb2.pyc ├── interstellar_pb2_grpc.pyc ├── protos │ └── interstellar.proto ├── interstellar_client.py ├── interstellar_server.py ├── interstellar_pb2_grpc.py └── interstellar_pb2.py ├── streaming ├── gtfs_realtime_pb2.pyc ├── nyct_subway_pb2_grpc.py ├── gtfs_realtime_pb2_grpc.py ├── producer.py ├── consumer.py ├── protos │ ├── nyct-subway.proto │ └── gtfs-realtime.proto ├── nyct_subway_pb2.py └── static │ └── mta_stations.csv └── distributed-logging ├── fluentd ├── .DS_Store └── conf │ └── fluent.conf ├── connector_jars ├── gson-2.4.jar ├── guava-18.0.jar ├── jest-2.0.0.jar ├── httpclient-4.5.1.jar ├── httpcore-4.4.4.jar ├── commons-codec-1.9.jar ├── commons-lang3-3.4.jar ├── httpcore-nio-4.4.4.jar ├── jest-common-2.0.0.jar ├── slf4j-simple-1.7.5.jar ├── commons-logging-1.2.jar ├── httpasyncclient-4.1.1.jar └── kafka-connect-elasticsearch-3.2.0-SNAPSHOT.jar ├── Dockerfile-fluentd ├── connector_conf ├── connector_console.json ├── connector_elasticsearch.json └── connector_s3.json ├── Dockerfile-kafka-connect └── docker-compose-dist-logging.yaml /datapipe/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /correlation_trading/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker-ci-demo/app/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /citibikekafkastreams/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | target/ 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.idea/* 2 | .mta_api_key 3 | *.pytest_cache/* 4 | *.pyc 5 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/.DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # blog-code 2 | Code for public blog http://cloudboxlabs.com/blog 3 | -------------------------------------------------------------------------------- /rpc/interstellar_pb2.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/rpc/interstellar_pb2.pyc -------------------------------------------------------------------------------- /rpc/interstellar_pb2_grpc.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/rpc/interstellar_pb2_grpc.pyc -------------------------------------------------------------------------------- /streaming/gtfs_realtime_pb2.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/streaming/gtfs_realtime_pb2.pyc -------------------------------------------------------------------------------- /streaming/nyct_subway_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | import grpc 3 | 4 | -------------------------------------------------------------------------------- /distributed-logging/fluentd/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/fluentd/.DS_Store -------------------------------------------------------------------------------- /streaming/gtfs_realtime_pb2_grpc.py: -------------------------------------------------------------------------------- 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2 | import grpc 3 | 4 | -------------------------------------------------------------------------------- /distributed-logging/connector_jars/gson-2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/gson-2.4.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/guava-18.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/guava-18.0.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/jest-2.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/jest-2.0.0.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/httpclient-4.5.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/httpclient-4.5.1.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/httpcore-4.4.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/httpcore-4.4.4.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/commons-codec-1.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/commons-codec-1.9.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/commons-lang3-3.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/commons-lang3-3.4.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/httpcore-nio-4.4.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/httpcore-nio-4.4.4.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/jest-common-2.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/jest-common-2.0.0.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/slf4j-simple-1.7.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/slf4j-simple-1.7.5.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/commons-logging-1.2.jar -------------------------------------------------------------------------------- /distributed-logging/connector_jars/httpasyncclient-4.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudboxlabs/blog-code/HEAD/distributed-logging/connector_jars/httpasyncclient-4.1.1.jar -------------------------------------------------------------------------------- /docker-ci-demo/app/templates/index.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {%block title%}Index!{%endblock%} 4 | 5 | {%block main_content%} 6 | 7 |