Skip to content

Instantly share code, notes, and snippets.

View thoff1331's full-sized avatar

Trevor Hoffman thoff1331

View GitHub Profile

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@thoff1331
thoff1331 / wheres Waldo
Created March 8, 2017 03:08
Wheres WaldoWaldo is hiding in some strings. You've been given a string named waldoString. Waldo will be hiding in it somewhere. Return the index of where in the string 'Waldo' starts.
function findWaldo(str){
var waldoPosition;
// code below here
return waldoPosition;
}