Skip to content

Instantly share code, notes, and snippets.

View Kurukshetran's full-sized avatar
🎯
Focusing

Kurukshetran Kurukshetran

🎯
Focusing
View GitHub Profile
@Kurukshetran
Kurukshetran / README.md
Created July 26, 2018 07:54 — forked from luciopaiva/_Full-socketio-client-and-server-example.md
Full socket.io client and server example

Full socket.io client and server example

To see a full explanation, read my answer on SO here: https://stackoverflow.com/a/24232050/778272.

How to use

Create a folder, run npm init -f on it and paste both server.js and client.js there (see files below). Needless to say, you must have Node.js installed on your system.

Install the required libraries:

@Kurukshetran
Kurukshetran / gist:1aec976f341a307ebbb8c4dffba7e219
Created June 29, 2018 18:53
Complete E-Commerce Course - Java,Spring,Hibernate and MySQL
----------------------------------------------------------------
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
@Kurukshetran
Kurukshetran / XML_to_ISO8583_unpacked.sql
Created June 27, 2018 14:28 — forked from smhdfdl/XML_to_ISO8583_unpacked.sql
ESQL for creating the bitmap for an 'unpacked' ISO8583 message
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';
@Kurukshetran
Kurukshetran / DockerContainerRule.java
Created May 23, 2018 13:07 — forked from mosheeshel/DockerContainerRule.java
JUnit @rule for starting a docker container from within an Integration test
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;
@Kurukshetran
Kurukshetran / microservices.adoc
Created May 22, 2018 13:03 — forked from kbastani/microservices.adoc
Using Graph Analysis to Design Microservice Architectures in the Cloud

Using Graph Analysis to Design Microservice Architectures in the Cloud

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.


@Kurukshetran
Kurukshetran / split.py
Created April 26, 2018 13:05 — forked from kelvintaywl/split.py
Python Script to split CSV files into smaller files based on number of lines
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)
@Kurukshetran
Kurukshetran / csv_splitter.py
Created April 26, 2018 13:05 — forked from jrivero/csv_splitter.py
A Python CSV splitter
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:
@Kurukshetran
Kurukshetran / crreq.xml
Created April 23, 2018 14:03 — forked from x2q/crreq.xml
Visa 3D Secure CRReq/CRRes Examples
<?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>-->
links "http://www.google.dk/search?q=MasterCard+"merID"+ThreeDSecure"
@Kurukshetran
Kurukshetran / vereq.xml
Created April 23, 2018 14:01 — forked from x2q/vereq.xml
Visa 3D Secure VEReq/VERes Examples
<?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>