Skip to content

Instantly share code, notes, and snippets.

@lpinca
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save lpinca/9059914 to your computer and use it in GitHub Desktop.

Select an option

Save lpinca/9059914 to your computer and use it in GitHub Desktop.
Chaos and destruction
var chars = '̴̴̛̮̫̞͚͉̮̙͕̳̲͉̤̗̹̮̦̪̖̱͍͙̖̟͕̹͕̙̦̣̲̠̪̯̳͖̝̩̝̦͇̥̠̟͚̳̤̹̗̻̭͍͖͕͓̻̥̹̮̙͔̗͍͚͓̗̦̹͈͙͕̘̮͖̝̗̲̤̗̮͈̙͈̹̼̣̹̖̱̤̼̺̤̻͙̗̥̠̱͇̱̝̟̺͍̺̼̜̖͈͇͎͙̲̙̗͇̫̘̖̹͖͓͔̺̱̹͓̮͇̯̜̤̗͍̯̰̫̫̖̰͚̪͚̭͚̥̰̤̟͎̝̲̯̭̹̭̙̼̤͖̞̙̹͈͚̥̦͚͉͖̼̬͓͚̳͉͙͎͚̱̮̗͍̩̻̰̣̫͉͈̞̲͉̫̞͔͆̅̓̓̇ͬ͌ͬͫͩͦ̃͌̿̐ͪͩ̌̇͂̆̑͐ͣ҉̶̲͉͔͎̤̼̘͇̮̥̻̜̹̥͚̲̻̖̗̻̫̼̠̳̗̺̤̗̳͈̪̮̗̝͇͈̙͇͕̺̱̼̤̗̰̬̣͌ͬͧ͊́ͧͩ͌͌̐̓̃ͥ̄ͤ͑̈ͬ͆ͬ͂̇̿̅҉̨̙̼̳̭̙͍̻̱̠͈̮̺̣̝̱̙̺͉̳͎̻͔̯̪̝͕͚̣̜̼̞͇̠̘̠̪̫͙͙̬̰̰̫͚̗͕̝̤̗͕̲̮̝̼̺͙͚̟͓̣̥͍͙̘̩̖͇͎̬̠̝͈̺̙̮̬̗̪̤͕͇͕̰̮͖͉̬̙̪̤̝̹͖͖̻̬̹͙̞̗͓̞̭̜̠̟̐͋͊͑̌̾̉͆̆̍̿̾ͤ̔̉̈̂̾̈ͭ'
, len = chars.length
, str = 'foo and bar'
, result = '';
str.split('').forEach(function char(chr) {
for (var i = 0; i < 20; i++) {
var r = Math.floor(Math.random() * len);
chr += chars.charAt(r);
}
result += chr;
});
console.log(result);
f̬͈̯̬͔̤̘̟́̿҉͕͇͙̠̯̠͖͉ͩo̪̩̠͇̙͍͇̙̰͇̞̭̲̥̞̻̱ͧ̓̇o̹̩͍̗҉̯̰̱̘̲͈̤̤̲̬̗̠̱͌͌ ͚̺̤͇͖̳͈̤̳̤͈̳̤͔̣ͩ̇͌̈͌a̛͉̮͍̙͚̪̠̭͎̬̮̰͚͌ͧ̍ͬ̿̿n͚̗̺̺̟̣̹͚̳̹͓̦̝̗̬̜̠͓̿̇ḏ̖͚̱͕̫͓̬̪̬͈̝̲͉̤̟̾̈͋ͩ ̤̬̰̞͉̺̗̮͇̝̙͇͔̾̓ͬͣͧͫ̐b̮̲̠͔̙͈̼̘̗̱̤̰͉̤̘̍̉͌̐ͦa̫͉̤̼͙̠͕͈̮͎͕̱͙͑̃ͤ͋ͬ͑̅r͖̙͈̺̱̗̹̞̱͉̬͈̣̼̗̣̳̪̐ͫ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment