A function compare_json_data(source_data_a,source_data_b)
, accepting structures populated with data loaded from json.load()
and comparing for equality.
$ ./compare.py
Compare JSON result is: True
A function compare_json_data(source_data_a,source_data_b)
, accepting structures populated with data loaded from json.load()
and comparing for equality.
$ ./compare.py
Compare JSON result is: True
class ApacheFlink < Formula | |
desc "Scalable batch and stream data processing" | |
homepage "https://flink.apache.org/" | |
url "http://www.apache.org/dyn/closer.lua?path=/flink/flink-1.4.0/flink-1.4.0-bin-scala_2.11.tgz" | |
version "1.4.0" | |
sha256 "a6cee77e0719c42f0bd2d30e5a149a71ad50a708f163605c4570d418ba6c0035" | |
head "https://github.com/apache/flink.git" | |
bottle :unneeded |
#!/usr/bin/env python | |
"""A simple python script template. | |
""" | |
import os | |
import sys | |
import argparse |
brew install sbt | |
cd /tmp | |
wget http://apache.spd.co.il/kafka/0.8.0/kafka_2.8.0-0.8.0.tar.gz | |
tar -zxvf kafka_2.8.0-0.8.0.tar.gz -C /usr/local/ | |
cd /usr/local/kafka_2.8.0-0.8.0 | |
sbt update | |
sbt package |
import bson | |
import pprint | |
import pymongo, pymongo.objectid | |
import sys | |
## Connect string | |
## Server: "localhost:27017", | |
## Database: "users" | |
## Write concern: 1 (acknowledge writes) | |
db = 'mongodb://rocketuser:rocketpass@localhost:27017/users?w=1' |