Skip to content

Instantly share code, notes, and snippets.

View dilannery's full-sized avatar
:shipit:

Dilan Nery Lopes dilannery

:shipit:
View GitHub Profile
@dilannery
dilannery / sorting.py
Created April 21, 2021 01:51
Python implementation of Mergesort and Quicksort using Lomuto and Hoare partition.
def merge(D, L, R):
left_index = 0
right_index = 0
for i in range(len(D)):
if left_index >= len(L):
D[i] = R[right_index]
right_index += 1
elif right_index >= len(R):
D[i] = L[left_index]
left_index += 1
@dilannery
dilannery / tmux.conf
Last active August 29, 2015 14:27
My tmux configuration file
###########################
# Configuration
###########################
# use 256 term for pretty colors
set -g default-terminal "screen-256color"
# increase scroll-back history
set -g history-limit 5000