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
View test.md
hello world!
<script>alert("this should be escaped")</script>

`

View prunebranches
#!/bin/bash
if [[ "$1" != "" ]]; then
BASEBRANCH="$1"
else
BASEBRANCH="development"
fi
git remote prune origin
echo "Base Branch: ${BASEBRANCH}"
@ricokareem
ricokareem / binary search algo
Last active Jul 15, 2017
JS Bin[binary search algo]// source http://jsbin.com/koluho
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
ricokareem / simple quicksort algo
Last active Jul 15, 2017
JS Bin[simple quicksort algo]// source http://jsbin.com/wenayu
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
#!/bin/bash
git branch --merged develop | grep -v 'develop$' | xargs git branch -d
View Readme.md

Make this file executable and add it to your path

Usage

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