This interactive Neo4j graph tutorial covers how to use graph analysis to find software modules that are highly centralized, making good candidates to be decomposed into microservices.
This file contains hidden or 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
| ---------------------------------------------------------------- | |
| Complete E-Commerce Course - Java,Spring,Hibernate and MySQL | |
| ================================================================ | |
| We will decouple project on two parts - frontend, backend | |
| Some code will dublicate - this is a negative side of two server project. | |
| 1. my account module: | |
| user - order history, shipping, profile , billing | |
| guest - login , forget password, create account |
This file contains hidden or 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
| CREATE COMPUTE MODULE XML_to_ISO8583_unpacked | |
| CREATE FUNCTION Main() RETURNS BOOLEAN | |
| BEGIN | |
| SET OutputRoot.Properties = InputRoot.Properties; | |
| SET OutputRoot.Properties.MessageType = '{}:ISO8583_1987_Unpacked'; | |
| CREATE LASTCHILD OF OutputRoot DOMAIN('DFDL'); | |
| DECLARE InRef REFERENCE TO InputRoot; | |
| CALL RemoveUnrequiredXMLAttributes(InRef); | |
| SET OutputRoot.DFDL = InRef.XMLNSC; | |
| CREATE NEXTSIBLING OF OutputRoot.DFDL.ISO8583_1987_Unpacked.MTI_MessageOrigin NAME 'PrimaryBitmap'; |
This file contains hidden or 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 rules; | |
| import com.google.common.collect.Lists; | |
| import com.google.common.collect.Maps; | |
| import com.spotify.docker.client.DefaultDockerClient; | |
| import com.spotify.docker.client.DockerClient; | |
| import com.spotify.docker.client.DockerException; | |
| import com.spotify.docker.client.messages.ContainerConfig; | |
| import com.spotify.docker.client.messages.ContainerCreation; | |
| import com.spotify.docker.client.messages.HostConfig; |
This file contains hidden or 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
| import csv | |
| import sys | |
| import os | |
| # example usage: python split.py example.csv 200 | |
| # above command would split the `example.csv` into smaller CSV files of 200 rows each (with header included) | |
| # if example.csv has 401 rows for instance, this creates 3 files in same directory: | |
| # - `example_1.csv` (row 1 - 200) | |
| # - `example_2.csv` (row 201 - 400) | |
| # - `example_3.csv` (row 401) |
This file contains hidden or 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
| import os | |
| def split(filehandler, delimiter=',', row_limit=10000, | |
| output_name_template='output_%s.csv', output_path='.', keep_headers=True): | |
| """ | |
| Splits a CSV file into multiple pieces. | |
| A quick bastardization of the Python CSV library. | |
| Arguments: |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ThreeDSecure> | |
| <Message id="999"> | |
| <CRReq> | |
| <version>1.0.1</version> | |
| <pan>4444333322221111</pan> | |
| <Merchant> | |
| <acqBIN>411111</acqBIN> | |
| <merID>99000001</merID> | |
| <!--<password>99000001</password>--> |
This file contains hidden or 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
| links "http://www.google.dk/search?q=MasterCard+"merID"+ThreeDSecure" |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ThreeDSecure> | |
| <Message id="999"> | |
| <VEReq> | |
| <version>1.0.2</version> | |
| <pan>4444333322221111</pan> | |
| <Merchant> | |
| <acqBIN>411111</acqBIN> | |
| <merID>99000001</merID> | |
| <password>99000001</password> |
This file contains hidden or 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
| import java.io.BufferedReader; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.util.zip.GZIPInputStream; | |
| import java.util.zip.GZIPOutputStream; | |
| public class Gzip { |