Skip to content

Instantly share code, notes, and snippets.

View strikeraryu's full-sized avatar
wubba lubba dub dub

Aryamaan jain strikeraryu

wubba lubba dub dub
  • greater nodia
View GitHub Profile
#<config: .zshrc
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
@strikeraryu
strikeraryu / quick_sort.chpl
Last active April 14, 2021 13:55
Quick-sort algorithm implemented in chapel, I have used Task parallelism to improve upon it.
use List;
config var n_parallel = 4;
/**
for partition of array on a pivot(last element)
arguments
arr int[] (ref) -> array where the partition is done
l int -> left bound
r int -> right bound
returns int ->point of partition