Skip to content

Instantly share code, notes, and snippets.

Rico Rodriquez Collins ricokareem

Block or report user

Report or block ricokareem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hello world!
<script>alert("this should be escaped")</script>


View prunebranches
if [[ "$1" != "" ]]; then
git remote prune origin
echo "Base Branch: ${BASEBRANCH}"
ricokareem / binary search algo
Last active Jul 15, 2017
JS Bin[binary search algo]// source
View binary search algo
function binarySearch(data, value) {
while (true) {
var mid = parseInt(data.length/2);
if (value === data[mid]) {
return data[mid];
} else if (value > data[mid]) {
data = data.slice(mid);
} else if (value < data[mid]) {
data = data.slice(0, mid);
ricokareem / simple quicksort algo
Last active Jul 15, 2017
JS Bin[simple quicksort algo]// source
View simple quicksort algo
function quickSort(data) {
if (data.length < 1) {
return [];
var left = [];
var right = [];
var pivot = data[0];
for (var i=1; i<data.length; i++) {
View prunedev
git branch --merged develop | grep -v 'develop$' | xargs git branch -d

Make this file executable and add it to your path


grco [some-text]
You can’t perform that action at this time.