Skip to content

Instantly share code, notes, and snippets.

@aleqsio
Last active May 26, 2022 15:35
Show Gist options
  • Save aleqsio/e8ec35551d50c7063e4b5443df2e4672 to your computer and use it in GitHub Desktop.
Save aleqsio/e8ec35551d50c7063e4b5443df2e4672 to your computer and use it in GitHub Desktop.
  1. Install visual studio code and visual studio live share. https://visualstudio.microsoft.com/pl/services/live-share/

  2. Make a folder for storing your interviewees work.

  3. Copy the following script into a recruit.sh file in that folder, remember to chmod +x it:

cd candidates
mkdir "$1"
cp ../templates/*.$2 "$1"
cd "$1"
code .
  1. Make a templates directory and a candidates directory in the same folder.

  2. In the templates directory, create a set of starter templates for each of the supported programming languages. For instance, I have a templates/recruitmentTask.py file with the following content:

# (here goes my task description)

array = [];

def someFunction(array):
    pass

print(someFunction(array))
  1. To start an interview, first run ./recruit.py "Firstname Lastname" py. The last argument is the filename extension.

  2. VScode should open, after it opens click on the Live Share button in the bottom bar to copy a link to clipboard.

image

image

  1. Send that link to an interviewee, they can click anonymous signin.

image

  1. Remember to give them write permissions in the little popup that should show up in your vscode instance.

image

  1. You're ready to start! Candidate should be able to write code, but only you control the built in terminal (but the candidate sees it's contents) Everything you write gets stored in the candidates/Firstname Lastname folder.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment