Skip to content

Instantly share code, notes, and snippets.

Jake Stokes developerjake

View GitHub Profile
developerjake /
Created Apr 9, 2017
Run for a console output clearly outlining the steps involved in a quick sort.
import java.util.Arrays;
public class QuickSort // sorts by sending incrementally smaller arrays to be partitioned
private static int depth = 0;
private static String side;
developerjake /
Created Apr 4, 2017
Partitioning class with various print statements for clarity
import java.util.Arrays;
public class Partitioning {
private static int[] theArray;
private static int arraySize;
public void partitionArray(int pivot)
developerjake / create_replica_set.bat
Created Nov 20, 2016 — forked from k0emt/create_replica_set.bat
Helper batch file for starting up a replica set named m101. Drop the --logpath option if you want to enjoy the log text flying by in the console. The --oplogSize option is the magic sauce to avoid creation of numerous 512MB+ files up to 5% of disk space.
View create_replica_set.bat
mkdir \data\rs1 \data\rs2 \data\rs3
start mongod --replSet m101 --logpath "1.log" --dbpath \data\rs1 --port 27017 --smallfiles --oplogSize 64
start mongod --replSet m101 --logpath "2.log" --dbpath \data\rs2 --port 27018 --smallfiles --oplogSize 64
start mongod --replSet m101 --logpath "3.log" --dbpath \data\rs3 --port 27019 --smallfiles --oplogSize 64
You can’t perform that action at this time.