Skip to content

Instantly share code, notes, and snippets.

package net.metajungle.sorting;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Sorting algorithms
*
* @author b0kaj
@metajungle
metajungle / QuickSort.java
Last active February 21, 2016 03:06
Quick sort in Java using the left-most element as the pivot
package net.metajungle.sorting;
import java.util.Arrays;
public class QuickSort {
/**
* Quick sort the given array in ascending order
*
* @param array
@metajungle
metajungle / ec2-augment.py
Created January 17, 2016 12:35
Augments response from Ansible EC2 dynamic inventory with additional non-tagged host groups
#!/usr/bin/env python
"""
Augments response from Ansible EC2 dynamic inventory with additional
non-tagged host groups
To run:
$ (virtualenv) python ec2-augment.py --list
Tested with Python 2.7.10