Skip to content

Instantly share code, notes, and snippets.

@mientjan
Created December 23, 2016 14:37
Show Gist options
  • Save mientjan/c261e4f6419ba773491b08e4bf91278d to your computer and use it in GitHub Desktop.
Save mientjan/c261e4f6419ba773491b08e4bf91278d to your computer and use it in GitHub Desktop.
var people = ['(quintie)', '(miepmiep)'];
var people = ['(sanderk)', '(miepmiep)'];
`
########################
# ## ## ## ## #
# # ### ## #### ###
# #### ## #### ###
# #### ## #### ###
# # ### ## #### ###
# ## ### ##### ###
########################
`.split("\n").map(item => {
var arr = item.split('');
arr.push("\n");
return arr;
}).reduce((a, b) => a.concat(b)).map(item => {
return item == '#' ? people[0] : item === ' ' ? people[1]: item;
}).join('');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment