Skip to content

Instantly share code, notes, and snippets.

@jezinka

jezinka/main.js Secret

Last active June 16, 2017 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/d4c364af9fbb90d085d2269688f62e28 to your computer and use it in GitHub Desktop.
Save jezinka/d4c364af9fbb90d085d2269688f62e28 to your computer and use it in GitHub Desktop.
for (i = 0; i < instructions.length; i++) {
var instruction = instructions[i];
encrypted.push(instruction.match(/^[a-z]+/)[0]);
id.push(parseInt(instruction.match(/\d+/)[0]));
checksum.push(instruction.match(/\[([a-z]{5})\]/)[1])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment