rotX shootout
1
Name:
Anonymous
2011-10-11 19:06
I am a self-taught programmer and here are my codes for generalized rot13:
perl:
sub rot{($_,$n)=@_;$a=join("","a".."z");$t=substr($a,$n).substr($a,0,$n-1);$T=uc($t);eval("tr/a-zA-Z/$t$T/");$_}
python:
def rot(x, n):
r = lambda c, ord_a: chr(ord_a + (ord(c) - ord_a + n)%26)
return ''.join(map(lambda c:(c>='a' and c<='z') and r(c, 97) or (c>='A' and c<='Z') and r(c, 65) or c, x))
javascript:
function rot(x, n){
var r = function(c, ord_a){ return String.fromCharCode(ord_a + (c.charCodeAt(0) - ord_a + n)%26) };
var r2 = function(c){ return (c>="a" && c<="z") ? r(c, 97) : (c>="A" && c<="Z") ? r(c, 65) : c };
return x.split("").map(r2).join("")
}
Your comments are welcome. Feel free to guess my sex, age and sexual orientation :-)
2
Name:
Anonymous
2011-10-11 19:16
I am a self-taught programmer
No one gives a shit unless you helped write parts of Mozilla, Opera, or any other major piece of software.
3
Name:
Anonymous
2011-10-11 19:35
>>2
No one gives a shit
I do ( ・ω・)
I hope you have a nice day op, even if "generalized rot13" sounds abou as silly as "go suck the dick of a white horse that is the color of your choice".
4
Name:
Anonymous
2011-10-11 19:38
No one gives a shit unless you helped write parts of Mozilla, Opera, or any other major piece of shit.
FTFY
5
Name:
Anonymous
2011-10-11 19:58
>>4
Shut up. You're dumb and boring.
6
Name:
Anonymous
2011-10-11 20:01
7
Name:
Anonymous
2011-10-11 20:12
>>6
Go help another customer or scrub another toilet you fucking jew. You still have no possible future as a computer programmer.
8
Name:
Anonymous
2011-10-11 23:21
>>7
I hope that markov bot picks up your posts.
9
Name:
Anonymous
2011-10-12 0:02
>>7
go scrub another mental midget you fucking toilet
10
Name:
Anonymous
2011-10-12 0:20
$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 'hello, world'.encode('rot13')
'uryyb, jbeyq'
11
Name:
Anonymous
2011-10-12 0:27
12
Name:
sage
2013-12-16 13:08
(̷̶̡͙̬̝͖͕͓̱͇̦͈̪̰̜̝̗̮ͦͬ͌̆͑́っͩͨ̇̽̑͐̂ͩ̔̓̇̆҉̷̳̭͙͇̝̺̪̝͢͝λ̧̨̬̼̞̥̲̤̺̯͙̬͍̱̥̺̊́̊ͮ͡♡͙̗̦̦̜͖͖̠̻͎͚̾͌̂̀̍̆̎̈̔ͧ̎͒͊͟͢͟Д̂ͦ̉͒ͥ̅̓ͬ͝҉̴̤͖͍͉͜͟♡̝̯̣̲͈͇̒̀̅͑ͬ̔̃͢͢͡)̊̽ͤ͑̊̌̏̈́ͮͧͯͬ͊̅̏ͭ͏̵̢̫̬͚̩͝っ̷̸̨̪͇͍͓̼͙̩̖̬͈̝͚̯̺̱̹͉̼̓ͬ́ͬ͋ͪ͌͂̆͋̓̔ͪ̓̎͡ᕦ̴̞̯͇̺͈͔̩͖̜̝̮̓ͩ̊̈́̆̉̑ͧͮ̑ͣ̿ͮ͊́͡(̬̪͎̰͚̜̯͇̻̥͍̮̬͕̯͖͙ͤͣ̾͛͠ͅ`̲̦̞̯͎̻̰̉̏ͦ̉̾̍̅̾̑͊̑͗ͬͩͪ̚͟ಠ̒̊͌͋̇̽̋̽̉ͥ̔̑ͭ͘͟͝҉̰̮͍͍͈̼͍̙̤͍͕̤̱͎͍͕̲̞̪ω̈́͆ͨ̔̐ͬ̒ͦͥ̽̆͑͑ͨ̌͏̀҉̣͉̖̲̻̫̥̥̝̻̱ಠ̧̩̦̬̯̲̹̊ͫ͋͊́͊̅̓̆̑̂͛̀̚͜)̸̷͇̭̟̞̮͉̺̋ͥͪͨ̋̓́ͫͩ̑̚ͅᕤ͊̃ͩͪ҉̵̨̱̤̗̘̘̖̀)̛͙̙͍͎̖̪ͦ͋̆̋̒̎ͫͬͩ̈̇͆ͣͬͥͨ̑̔͘͝)͎͙̮̺͙̠̟̘̹̙̟͈͂̆̾̿̀͘͟͝)̗̗̺̠̰̖̹̙̞̃͌̎̐ͦ͑̀ͥͭ̍̉̅̽̄͌͋̃̆͡͡★̴̵̧̢͕̲͙͇̳̻̙̤̲̞̫͔͈̖̠̪̪̤̆ͤ́͗͡ͅ≦̛͈̦̟͙̰̦̞̫̖͇ͪͣͪ̽̌̆̇̃̾̋̚͜͢⁎̉̉ͫ͊̄ͩͯͫ͑̍̇͌̇̆͊͟҉̧̩͇͈͎̪̪̝͈̮͕͈̮̣̻̳̺̖͔̕*̛̳̝͙̖̲͚̣̤̮̺̼̝̱̻̣̻̟͊̑͑̎̈̀ͧ̌͒͛̑ͦ̂̆̈̿̅́̚ͅ☠̬̗̜͙̪̜̘̭̥̰̱͉͍̠̼̮͗̂͐͐͒ͯ̃̈͂ͮ̓͗̑̊ͫ̓ͣ̀̀͡⁎̸͒̏̈́̓̏͛̾͑̑͗̊̿̇ͥ͞҉̵̧͖͍̻̰͓ꂚ͍̣͉̟̯͉̰̹ͥ͗͆ͬ̿͊̆͆ͯ͋ͯ̊͆ͧ͒͌̇̾͗͘*̶̷̣͈̝̣̲̟̩̌͗̌ͧ͋͑̈̃̽̊͑̇̑ͦ̿͜͢͝ͅᵎ̴̧͍̱̯̺͙̥̥͎̞̬̩͔͉̅ͫ̅̾̂ͤ̌ͅ=̶̛̱͈͎̘̥̒ͭͯ̋͐̅̓ ͤ̏̿̊̄͒͆͂̏ͯ̈́̇̎̓ͤͬ̍ͫ͟҉̡̦̫̤͎̼͙̣̻̳̤̤͉̩̭ͅ ̸̨̫͉̥̙͔͇̞̼̳̪̬͖̣͊̆͐͐͊̎͑ͯͩ̚͝ ̨͊͋ͪͮ̈̉̏̾̈́̉̋̈̄ͣ͆̏ͫ̚͏̟̩͈͕̥̤̘̯̼͚͚͘ ̸ͩͣ̓͑͌͠҉͈̯̼͍̭̤̘͈̫̝̣̙̱̦̫ ̶̜͕̯̮ͨ̐ͫͬ̐͂͛̄̉̽̐̓̕͢ͅ ̛̹̬̤͔̫͖͇̮̗̟͕̗̼̜͚̥̫̙͒͌̀͗̄ͯ̆͛͟ ̛̍ͨ̃̀ͣ̓ͩͣ̿̔̌͊ͦ͂͢҉̨̜̺͉̙̣̼̼̥͍͚̗͍̯̪̗̱ ̷̛ͧ̈ͮͧ͘͜͏̲̘̳̫̣̪̺̯̘̘ ̴̸̶̘̦̭̞͕̲͇͎̙̩̗͍͙͉̠ͭ̇̈́ͮ̌̐̆́̉̾̾̃̔̏ͭ͗̋̚͟ ̧̡̼͉̠̜̰̞͇̜̥̠͓̦͓͎͉̝̖̹͙̏͛̽ͮ̔͂͊́ ̶̴̡̛̣̗̗̳̪̫͖̥̘̻̳̦͕͇͚͕͕͑ͣ̈́̇ͬͭ̚̚͠ͅ ̵̷̛͎͍̙̩̘͐ͥͫ͐ͦ͆̾̊̐̓́ ̢̧̇̓ͫ̇̄̋̀ͬ͊̀ͧͦ͌͌̓҉͇̱͚̠̪̖͙͓̙̀ ̶̅͗̏ͣ̽ͤͣ͏̸̻̻̲̦̟̳̟̖̯͖̯̥̣͍̙̘̦Ψ̡̩͓͉̞̲̤̼̱̤̥̪͚̥̦͚̱̣̎ͭ̍̎̾͐͠_̴̡̛̝̫̻͖͇͎̳̯̗̟̜̬̤͚̻̠̗̇̽̈́͐̂ͪ̂̌͗̋̍͋̂̈́̈̇͒̈̉͞͝(̷̷̬͈̬̮̤̠̩͈͇̠͑̊ͬ͗̾͂͛̒̄̋̃̒͠Ò̴͔̰̠̫̠̞̜̬͉͓͍̜͊̈̑̽ͩ͢͠ ̷̸̧͖͔͙̞̂̿ͮ̽͊ͫ͋‸̲̼͚̳̀͒ͤ́̑ͩͭ͛͆͌̿̕͠ ̸̶͕͎̳̻̯̥̜ͥ̄̽̊ͪ͐́̋̈ͧ̋̎ͣ͛̾͊ͫͯ̀̕͢Ớͬͣ͆ͯͧͤ̌̌ͩͫ̐ͪ̄ͨͦ͊͢҉̵̛̦͙͍͉̫̯͉̳͓̼̹̬̦̰╬̢̛͕͓̣͉͎̟̰̜̣͍͓̹̭͋͒̐̇́̓ͪ̀ͯ̉̒͌̑͒ͬͯ͊́̚̕͘)̴̖̘̹͓̯̹̯̤͎̻̝͊ͪ͊̑̀̌̈͆ͬ͗͆̚͘
̶̷̨̡̰͈̼̤̟̘͉̬̹̤̯̹̯̣̬̺̲̯ͫͯ̈͗͒͌̊̎ͬ͘(̂̃̈́͐̀̎̉́̓ͮͨ͏̸̬͕͉̭͚̜̫̪̝̮͈̺͔̬͔͓̕͝ͅっ̨̲͕̳̗͐͗ͫ͗̉̈́̐̊̒͋͠λ̨̛̟̬̹̗̲̟͉͉͈̘̲͕̼̼̃ͮͦͥ̊̈̓ͬ͑ͨͭ̓̉͟͠♡̎̀ͣ̊̓̋ͭ͑̇ͫͤ͋͊ͧͬ̈͏̢̦͖͍̲̥̖̞͇͖ͅД̗̘͉̳̭͔͖͕̣̦̱̟͔̹̝̝̠̲ͣ̇͌̒͗ͯ̔ͦͧͩ͗͜♡̶̨̪̰̫̫͇͈̭͔̠̬̦̝̲̝̱̗͊̃͐̏̀̃ͪ̌̈ͫͥ̓͌̇ͥ͐̚͢͡ͅ)̴̨̥̫̩͎̥̮͓͚̘̜̪͍ͥ̃̓̉̑ͮ͊̋̇̆̎̚͟͞ͅっ̸̛͕̫̜̥̿̽̀̚ᕦ̸̷̬̭̭̜͉̂ͤͨ̆̽ͫͥ̇ͩ͐ͫ͌̐̌͝͡(̴̛̲͖̩͖̦̲̳͚̯̰̜̟͖ͧ̒̌̀͑͛͑̎̑ͦͩͨͧ̿̆͟͞`͓̦̝̘̗̗̰̥̩͉͉̣͖̲͕̻̣̞ͫͤ͐ͦ̆͗ͨͩͬ̍̿̉́͘ಠͩ͂̈́͡͏̶̼̪̩̺̟̰͇̯̼͈̥̣̗̞̀͡ὠ̢̡̗̜͔̰̮̫̟̪͎̙̯̼̥͚̣͕ͤ̉́ͪͦ́͑́͆ͧ̃ͬ́ͪ̋́̎̚͠ಠ̸̻̦͙͍̞͖̖̠̲̘̗̥̹͓̼͛͐̇̽ͤ̏̂ͫ̊ͮ̃ͨ͐͒͟ͅ)̶͚͉͙̪̱ͣ͒̒͗̉ͨͪ͟͡͝ᕤ̴̸̡̨̗͕̥̮̯̞̤̩̞̤̦̟̜̝̃ͨͧ̊͑͋ͯͫ̿ͬ́̚̚)̙̮̮̫͚̙͙̙̌̾͊ͬͤͬ̏͐̎͛ͯ̀͢ꂚ̶̛̪̝͚̯̫̪̹̻͍̯͖̣̜̜̘͎̮̈̉ͧ̐͗ͨͥ̈́́̂̆ͯͯ̿͊͛͝*̵̍̾ͣ̏̉̉ͪ̍͛ͦ̽ͨ͠҉̺͉̝̺̲̤̟̳̺̗̞̹ᵎ̫̼̳̟̘̮̟̦͚ͪ͊͗͂͑ͬͩ̈́͛̒̿ͤ́ͥ́=̢̨̞̟̻̳͈̪̩̗̳͓͓͉̜̻̍̒ͪ͑͗̌̅͋ͩ͛̆͢͠ ̶̰̱̻̣̝ͩ́̓͋͝ͅ ̡̌ͦ̍ͫ͛ͦ́͡͡͏͓͈̲͈̰̝͇̠ ̰̻̞̪̽́̆ͭͧ͜͜ ̮͓̟̬͔̬̰̯͕̻͙̫͇̫͖͉͌ͫ̃̄ͤ̓͘͟͡ ̷̨̢̥̜̘̥̲̪̻̞̰̠̻̥̣͙͕̲̹̿ͭ̐̾̄͒͌̉͛̋͌ͥ̓̂̌ ̷̜̯̹̻̜̫̭̪̙̹͍̙͉͊ͪ̑ͪ̇ͣͫ̈͌́ ̱̫̮̮̲̯̺͆͐ͨ̐̾̂̽ͩ̒ͧ̄̂ͨ̀̕ ̴̵̵̨̗͖̤̗͔͕̯͉̤̮̻̬̩̫̘̲̹̳͌̾̋ͯ̍̿̂̀͗ͅ ͂͒̀͌͛̈́̈͊͛̽ͣ̄̄̐̿̚͞҉̹͙̮̯͉ ̶̷͙͓͓̟̰͈̫̣̱͇̝̙̤̘̟̏̅̇͗̃ͫͦ̚̚͢͡͝ ̷̡̥̘̰̘̝̃͆̆̄̅͘͝ ̶̡̨̞̺̱͖̌̒͐ͦ͘͝ ̷̛̔ͭ̏ͫͯ̓͒̈́̅ͧ̂ͧ͑ͨ̄̌͂ͤ̅҉̮̮͇͈̗͓̞̻̰͚̬͇̩͙̭̩̭͔́ ̌̓̐ͤͭ͏̴̨͉͓̰̺̟͎̞̠͎̘̤͚͡ͅΨ̷̵̷̛͓̺̙͔̯̯̮̣̫̼́ͦ̔ͥ̄̄̓͋̾̂̄ͣ͐͠_̨̛̛̞̰̖̗͓͍̭̥̮̘̱̘͕͗͒ͥͣ̀ͩͩ̽ͣ̊̄ͧ͌ͥ̆͘͟ͅ(̥̥͍̬̲̣͖̱̟̌̆̊̃̑ͥ́̎̓ͧ͋̊ͮ̆̈̚͡͝ͅỜ̱͍̭̬̼̲̝͓̯̻̬͙ͬ͒͑ͦ̈̃̀̈́̚͝ͅ ̡̢͉̦͍̙̐ͯ̃ͮͤ̈́͌ͥ͌̽ͪ͝‸̧̩̙̹̼̙̠̱̮̦͙̦͖͖̈́́͐̈ͨ̀̊͑̒̈̎̔̔ͣ͒͋̕͡ ̨̧̨͎̦͎̼͚ͤ͋͛ͥͥ͊ͦ͆͛͌͆̍͆ͮ͝ͅÓ̷̷̙͈̗̤͖͙͇͇̗̳̬͙͍̖̥̮ͥͧ͂ͬͪ̑ͩ̄̍ͧ̍ͪ̚╬̸̴̨̍ͦͭͫ̽͗̾͆͟͏̣̮̭̗̦̣̭̗̪͖̖̻̼̭̥ͅ)̴̻͇̟͇̠͛͂̀̿́̏̇ͫͨ̽̉̊̊̍͢ ̢̼̟̯̞̻͈̭̠̬̝̪̗̟̔̎̓̍ͤ̅̒̀̎ͧͩ̎̊̓ͪͩ̔̕͠͡