Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@JamesKhoury
Forked from charlycoste/geekkoder.html
Created July 10, 2019 06:06
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 JamesKhoury/bc7b7354f11f0627538d120fb3d920c6 to your computer and use it in GitHub Desktop.
Save JamesKhoury/bc7b7354f11f0627538d120fb3d920c6 to your computer and use it in GitHub Desktop.
a Geek code decoder
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Geek Koder</title>
<script>
/**
* @description Geek Code Decoder (originally written Extension for Firefox )
* @author Bhasker V Kode
* @date hacked up in the early hours of Feb 23,2007 .
* @copyright Some Rights Reserved
* @licence Mozilla Public Licence 1.1
*/
var geekKoder = function(code){
this.init();
}
geekKoder.geekcode = {};
geekKoder.geekcode["vars"] ={"@":"I'd like to say",">":"But,someday","$":"And I am getting paid for it.","?":"","!":""};
geekKoder.geekcode["legend"] = {"types" :"Types of Geeks" ,"d":"Dress","s":"Shape","a":"Age","C":"Computers","U":"unix","P":"Perl","L":"Linux","E":"Emacs","W":"World Wide Web","N":"USENET News","o":"USENET Oracle","K":"Kibo","w":"Microsoft Windows","O":"OS/2","M":"Macintosh","V":"VMS","PS":"Political and Social Issues","PE":"Political and Economic Issues","Y":"Cypherpunks","PGP":"PGP","t":"Startrek","5":"Babylon-5","X":"X-Files","R":"Role Playing","tv":"Television","b":"Books","DI":"Dilbert","D":"DOOM!","G":"The Geek Code","e":"Education","h":"Housing","r":"Relationships","x":"Sex : a Male", "y":"Sex - a female"};
geekKoder.geekcode["types"] = { "getQuals": function (data){
return data.categoryCode.split("/").map((code) => this[code[0] === "G" ? code : "G" + code]);
},
"GB":"Geek of Business","GC":"Geek of Classics","GCA":"Geek of Commercial Arts","GCM":"Geek of Computer Management","GCS":"Geek of Computer Science","GCC":"Geek of Communications","GE":"Geek of Engineering","GED":"Geek of Education","GFA":"Geek of Fine Arts","GG":"Geek of Government","GH":"Geek of Humanities","GIT":"Geek of Information Technology","GJ":"Geek of Jurisprudence (Law)","GLS":"Geek of Library Science","GL":"Geek of Literature","GMC":"Geek of Mass Communications","GM":"Geek of Math","GMD":"Geek of Medicine","GMU":"Geek of Music","GPA":"Geek of Performing Arts","GP":"Geek of Philosophy","GS":"Geek of Science (Physics, Chemistry, Biology, etc.)","GSS":"Geek of Social Science (Psychology, Sociology, etc.)","GTW":"Geek of Technical Writing","GO":"Geek of Other. Some types of geeks deviate from the normal geek activities. This is encouraged as true geeks come from all walks of life.","GU":"Geek of 'Undecided'. This is a popular vocation with incoming freshmen.","G!":"Geek of no qualifications. A rather miserable existence, you would think.","GAT":"Geek of All Trades. For those geeks that can do anything and everything. GAT usually precludes the use of other vocational descriptors."};
geekKoder.geekcode["!"] ={"!d" : "No clothing. Quite a fashion statement, don't you think? ","!a":"it's none of your business how old I am","!z":"Sex? What's that? I've had no sexual experiences.","!z+":"Sex? What's that? No experience, willing to learn!","!y":"Sex? What's that? I've had no sexual experiences.","!y+":"Sex? What's that? No experience, willing to learn!"};
geekKoder.geekcode["d"] ={"d++":"I tend to wear conservative dress such as a business suit or worse, a tie." ,"d+":"Good leisure-wear. Slacks, button-shirt, etc. No jeans, tennis shoes, or t-shirts. " , "d":"I dress a lot like those found in catalog ads. Bland, boring, without life or meaning. ", "d-" : "I'm usually in jeans and a t-shirt." , "d--" : "My t-shirts go a step further and have a trendy political message on them." , "d---" : "Punk dresser, including, but not limited to, torn jeans and shirts, body piercings, and prominent tattoos.", "dx":"Cross Dresser" ,"d?" : "I have no idea what I am wearing right now, let alone what I wore yesterday." , "dpu" :"I wear the same clothes all the time, no matter the occasion, forgetting to do laundry between wearings."};
//TODO
geekKoder.geekcode["s"] ={"s+++:+++":"I usually have to duck through doors/I take up three movie seats. ","s++:++":"I'm a basketball/linebacker candidate. ","s+:+":"I'm a little taller/rounder than most. ","s:":"I'm an average geek ","s-:-":"I look up to most people. Everyone tells me to gain a few pounds. ","s--:--":"I look up to damn near everybody. I tend to have to fight against a strong breeze.","s---:---":"I take a phone book with me when I go out so I can see to eat dinner. My bones are poking through my skin. "};
geekKoder.geekcode["s"] ={"s+++":"I usually have to duck through doors", ":+++": "I take up three movie seats. ","s++":"I'm a basketballer candidate", ":++": "I'm a linebacker candidate. ","s+":"I'm a little taller", ":+": "I'm a little rounder than most. ","s":"I'm an average geek ",":":"I'm an average geek ","s-":"I look up to most people.", ":-": "Everyone tells me to gain a few pounds. ","s--":"I look up to damn near everybody.", ":--": "I tend to have to fight against a strong breeze.","s---":"I take a phone book with me when I go out so I can see to eat dinner.", ":---": "My bones are poking through my skin. "};
geekKoder.geekcode["a"] ={"a+++":"60 and up","a++":"50-59","a+":"40-49 ","a":"30-39 ","a-":"25-29 ","a--":"20-24","a---":"15-19 ","a----":"10-14 ","a-----":"9 and under (Geek in training?)","a?":"immortal"};
geekKoder.geekcode["C"]={"C++++":"I'll be first in line to get the new cybernetic interface installed into my skull.","C+++":"You mean there is life outside of Internet? You're shittin' me! I haven't dragged myself to class in weeks. ","C++":"Computers are a large part of my existence. When I get up in the morning, the first thing I do is log myself in. I play games or mud on weekends, but still manage to stay off of academic probation. ","C+":"Computers are fun and I enjoy using them. I play a mean game of DOOM! and can use a word processor without resorting to the manual too often. I know that a 3.5\" disk is not a hard disk. I also know that when it says 'press any key to continue', I don't have to look for a key labeled 'ANY'.","C":"Computers are a tool, nothing more. I use it when it serves my purpose.","C-":"Anything more complicated than my calculator and I'm screwed.","C--":"Where's the on switch?","C---":"If you even mention computers, I will rip your head off!"};
geekKoder.geekcode["U"] ={os:{"B":"BSD","L":"Linux","U":"Ultrix ","A":"AIX "," V":"SysV ","H":"HPUX ","I":"IRIX ","O":"OSF/1 (aka Digital Unix) ","S":"Sun OS/Solaris ","C":"SCO Unix ","X":"NeXT ","*":"Some other one not listed"},punc:{"++++":"I am the sysadmin. If you try and crack my machine don't be surprised if the municipal works department gets an \"accidental\" computer-generated order to put start a new landfill on your front lawn or your quota is reduced to 4K. ","+++":"I don't need to crack /etc/passwd because I just modified su so that it doesn't prompt me. The admin staff doesn't even know I'm here. If you don't understand what I just said, this category does NOT apply to you! ","++":"I've get the entire admin ticked off at me because I am always using all of the CPU time and trying to run programs that I don't have access to. I'm going to try cracking /etc/passwd next week, just don't tell anyone. ","+":"I not only have a Unix account, but I slam VMS any chance get. ","":"I have a Unix account to do my stuff in ","-":"I have a VMS account.","--":"I've seen Unix and didn't like it. DEC rules!","---":"Unix geeks are actually nerds in disguise."}}
geekKoder.geekcode["P"]={"P+++++":"I am Larry Wall, Tom Christiansen, or Randal Schwartz.","P++++":"I don't write Perl, I speak it. Perl has superseded all other programming languages. I firmly believe that all programs can be reduced to a Perl one-liner. I use Perl to achieve U+++ status.","P+++":"Perl is a very powerful programming tool. Not only do I no longer write shell scripts, I also no longer use awk or sed. I use Perl for all programs of less than a thousand lines.","P++":"Perl is a powerful programming tool. I don't write shell scripts anymore because I write them in Perl.","P+":"I know of Perl. I like Perl. I just haven't learned much Perl, but it is on my agenda.","P":"I know Perl exists, but that's all.","P-":"What's Perl got that awk and sed don't have?","P--":"Perl users are sick, twisted programmers who are just showing off.","P---":"Perl combines the power of sh, the clarity of sed, and the performance of awk with the simplicity of C. It should be banned.","P!":"Our paranoid admin won't let us install Perl! Says it's a \"hacking tool\"."};
geekKoder.geekcode["L"]={"L+++++":"I am Linus, grovel before me.","L++++":"I am a Linux wizard. I munch C code for breakfast and have enough room left over for a kernel debugging. I have so many patches installed that I lost track about ten versions ago. Linux newbies consider me a net.god.","L+++":"I use Linux exclusively on my system. I monitor comp.os.linux.* and even answer questions sometimes.","L++":"I use Linux ALMOST exclusively on my system. I've given up trying to achieve Linux.God status, but welcome the OS as a replacement for DOS. I only boot to DOS to play games.","L+":"I've managed to get Linux installed and even used it a few times. It seems like it is just another OS. ","L":"I know what Linux is, but that's about all ","L-":"I have no desire to use Linux and frankly don't give a rats patootie about it. There are other, better, operating systems out there. Like Mac, DOS, or Amiga-OS. Or, better yet even, would be another free Unix OS like FreeBSD. ","L--":"Unix sucks. Because Linux = Unix. Linux Sucks. I worship Bill Gates. ","L---":"I am Bill Gates."}
geekKoder.geekcode["E"]={"E+++":"Emacs is my login shell!! M-x doctor is my psychologist! I use emacs to control my TV and toaster oven! All you vi people don't know what you're missing! I read alt.religion.emacs, alt.sex.emacs, and comp.os.emacs. ","E++":"I know and use elisp regularly! ","E+":"Emacs is great! I read my mail and news with it! ","E":"Yeah, I know what emacs is, and use it as my regular editor. ","E-":"Emacs is too big and bloated for my tastes ","E--":"Emacs is just a fancy word processor ","E---":"Emacs sucks! vi forever!!! ","E----":"Emacs sucks! pico forever!!!"};
geekKoder.geekcode["W"] = {"W+++":"I am a WebMaster . Don't even think about trying to view my homepage without the latest version of Netscape. When I'm not on my normal net connection, I surf the web using my Newton and a cellular modem. ","W++":"I have a homepage. I surf daily. My homepage is advertised in my .signature. ","W+":"I have the latest version of Netscape, and wander the web only when there's something specific I'm looking for. ","W":"I have a browser and a connection. Occasionally I'll use them. ","W-":"The web is really a pain. Life was so much easier when you could transfer information by simple ASCII. Now everyone won't even consider your ideas unless you spiff them up with bandwidth-consuming pictures and pointless information links. ","W--":"A pox on the Web! It wastes time and bandwidth and just gives the uneducated morons a reason to clutter the Internet."};
geekKoder.geekcode["N"]={"N++++":"I am Tim Pierce","N+++":"I read so many newsgroups that the next batch of news comes in before I finish reading the last batch, and I have to read for about 2 hours straight before I'm caught up on the morning's news. Then there's the afternoon... ","N++":"I read all the news in a select handful of groups. ","N+":"I read news recreationally when I have some time to kill. ","N":"Usenet News? Sure, I read that once ","N-":"News is a waste of my time and I avoid it completely ","N--":"News sucks! 'Nuff said.","N---":"I work for Time Magazine. ","N----":"I am a Scientologist.","N*":"All I do is read news"};
geekKoder.geekcode["o"] = {"o+++++":"I am Steve Kinzler ","o++++":"I am an active Priest ","o+++":"I was a Priest, but have retired. ","o++":"I have made the Best Of Oracularities. ","o+":"I have been incarnated at least once. ","o":"I've submitted a question, but it has never been incarnated. ","o-":"I sent my question to the wrong group and got flamed. ","o--":"Who needs answers from a bunch of geeks anyhow?"};
geekKoder.geekcode["K"] = {"K++++++":"I am Kibo ","K+++++":"I've had sex with Kibo ","K++++":"I've met Kibo ","K+++":"I've gotten mail from Kibo ","K++":"I've read Kibo ","K+":"I like Kibo ","K":"I know who Kibo is ","K-":"I don't know who Kibo is ","K--":"I dislike Kibo ","K---":"I am currently hunting Kibo down with the intent of ripping his still-beating heart out of his chest and showing it to him as he dies ","K----":"I am Xibo"};
geekKoder.geekcode["w"] = {"w+++++":"I am Bill Gates ","w++++":"I have Windows, Windows 95, Windows NT, and Windows NT Advanced Server all running on my SMP RISC machine. I haven't seen daylight in six months. ","w+++":"I am a MS Windows programming god. I wrote a VxD driver to allow MS Windows and DOS to share the use of my waffle iron. P.S. Unix sux. ","w++":"I write MS Windows programs in C and think about using C++ someday. I've written at least one DLL. ","w+":"I have installed my own custom sounds, wallpaper, and screen savers so my PC walks and talks like a fun house. Oh yeah, I have a hundred TrueType(tm) fonts that I've installed but never used. I never lose Minesweeper and Solitaire ","w":"Ok, so I use MS Windows, I don't have to like it. ","w-":"I'm still trying to install MS Windows and have at least one peripheral that never works right ","w--":"MS Windows is a joke operating system. Hell, it's not even an operating system. NT is Not Tough enough for me either. 95 is how may times it will crash an hour. ","w---":"windows has set back the computing industry by at least 10 years. Bill Gates should be drawn, quartered, hung, shot, poisoned, disembowelled, and then REALLY hurt.The operating system that looks a lot like Windows, acts a lot like Windows, but is much better than Windows."};
geekKoder.geekcode["O"] = {"O+++":"I live, eat and breathe OS/2. All of my hard drives are HPFS. I am the Anti-Gates. ","O++":"I use OS/2 for all my computing needs. I use some DOS and Windows programs, but run them under OS/2. If the program won't run under OS/2, then obviously I don't need it. ","O+":"I keep a DOS partition on my hard drive \"just in case\". I'm afraid to try HPFS. ","O":"I finally managed to get OS/2 installed but wasn't too terribly impressed. ","O-":"Tried it, didn't like it. ","O--":"I can't even get the thing to install! ","O---":"Windows RULES!!! Long live Bill Gates. (See w++++) ","O----":"I am Bill Gates of Borg. OS/2 is irrelevant. "};
geekKoder.geekcode["M"] = {"M++":"I am a Mac guru. Anything those DOS putzes and Unix nerds can do, I can do better, and if not, I'll write the damn software to do it. ","M+":"A Mac has it's uses and I use it quite often. ","M":"I use a Mac, but I'm pretty indifferent about it. ","M-":"Macs suck. All real geeks have a character prompt.","M--":"Macs do more than suck. They make a user stupid by allowing them to use the system without knowing what they are doing. Mac weenies have lower IQs than the fuzz in my navel."};
geekKoder.geekcode["V"] = {"V+++":"I am a VMS sysadmin. I wield far more power than those UNIX admins, because UNIX can be found on any dweeb's desktop. Power through obscurity is my motto. ","V++":"Unix is a passing fad compared to the real power in the universe, my VMS system. ","V+":"I tend to like VMS better than Unix ","V":"I've used VMS. ","V-":"Unix is much better than VMS for my computing needs. ","V--":"I would rather smash my head repeatedly into a brick wall than suffer the agony of working with VMS. It's reminiscent of a dead and decaying pile of moose droppings. Unix rules the universe."};
geekKoder.geekcode["PS"] = {"PS+++":"Legalize drugs! Abolish the government. \"Fuck the draft!\"","PS++":"I give to liberal causes. I march for gay rights. I'm a card carrying member of the ACLU. Keep abortion safe and legal. ","PS+":"My whole concept of liberalism is that nobody has the right to tell anybody else what to do, on either side of the political fence. If you don't like it, turn the bloody channel. ","PS":"I really don't have an opinion; nobody's messing with my freedoms right now. ","PS-":"Label records! Keep dirty stuff off the TV and the Internet. ","PS--":"Oppose sex education, abortion rights, gay rights. Rush Limbaugh is my spokesman. ","PS---":"Repent left-wing sinners and change your wicked evil ways. Buchanan/Robertson in '96."};
geekKoder.geekcode["PE"] = {"PE+++":"Abolish antitrust legislation. Raise taxes on everyone but the rich so that the money can trickle-down to the masses. ","PE++":"Keep the government off the backs of businesses. Deregulate as much as possible. ","PE+":"Balance the budget with spending cuts and an amendment. ","PE":"Distrust both government and business. ","PE-":"It's ok to increase government spending, so we can help more poor people. Tax the rich! Cut the defense budget! ","PE--":"Capitalism is evil! Government should provide the services we really need. Nobody should be rich."};
geekKoder.geekcode["Y"] = {"Y+++":"I am T.C. May ","Y++":"I am on the cypherpunks mailing list and active around Usenet. I never miss an opportunity to talk about the evils of Clipper and ITAR and the NSA. Orwell's 1984 is more than a story, it is a warning to our's and future generations. I'm a member of the EFF. ","Y+":"I have an interest and concern in privacy issues, but in reality I am not really all that active or vocal. ","Y":"I'm pretty indifferent on the whole issue. ","Y-":"It seems to me that all of these concerns are a little extreme. I mean, the government must be able to protect itself from criminals and the populace from indecent speech. ","Y--":"Get a life. The only people that need this kind of protection are people with something to hide. I think cypherpunks are just a little paranoid. ","Y---":"I am L. Detweiler."};
geekKoder.geekcode["PGP"] = {"PGP++++":"I am Philip Zimmerman ","PGP+++":"I don't send or answer mail that is not encrypted, or at the very least signed. If you are reading this without decrypting it first, something is wrong. IT DIDN'T COME FROM ME! ","PGP++":"I have the most recent version and use it regularly ","PGP+":"\"Finger me for my public key\" ","PGP":"I've used it, but stopped long ago. ","PGP-":"I don't have anything to hide. ","PGP--":"I feel that the glory of the Internet is in the anarchic, trusting environment that so nurtures the exchange of information. Encryption just bogs that down. ","PGP---":"If you support encryption on the Internet, you must be a drug dealer or terrorist or something like that. ","PGP----":"Oh, here is something you all can use that is better (insert Clipper here)."};
geekKoder.geekcode["t"] = {"t+++":"It's not just a TV show, it's a religion. I know all about warp field dynamics and the principles behind the transporter. I have memorized the TECH manual. I speak Klingon. I go to cons with Vulcan ears on. I have no life. ","t++":"It's the best show around. I have all the episodes and the movies on tape and can quote entire scenes verbatim. I've built a few of the model kits too. But you'll never catch me at one of those conventions. Those people are kooks. ","t+":"It's a damn fine TV show and is one of the only things good on television any more. ","t":"It's just another TV show ","t-":"Maybe it is just me, but I have no idea what the big deal with Star Trek is. Perhaps I'm missing something but I just think it is bad drama. ","t--":"Star Trek is just another Space Opera. William Shatner isn't an actor, he's a poser! And what's with this Jean-Luc Picard? A Frenchman with a British accent? Come on. Isn't Voyager just a rehash of Lost in Space? Has Sisko even breathed in the last two seasons? Come on. I'd only watch this show if my remote control broke. ","t---":"Star Trek SUCKS! It is the worst crap I have ever seen! Hey, all you trekkies out there, GET A LIFE! (William Shatner is a t---)","t*":"I identify with Barclay, the greatest of the Trek Geeks."};
geekKoder.geekcode["5"] = {"5++++":"I am J. Michael Straczynski ","5+++":"I am a True Worshipper of the Church of Joe who lives eats breathes and thinks Babylon 5, and has Evil thoughts about stealing Joe's videotape archives just to see episodes earlier. I am planning to break into the bank and steal the triple-encoded synopsis of the 5-year arc. ","5++":"Finally a show that shows what a real future would look like. None of this Picardian \"Let's talk about it and be friends\" crap. And what's this? We finally get to see a bathroom! Over on that Enterprise, they've been holding it for over seven years! ","5+":"Babylon 5 certainly presents a fresh perspective in the Sci-Fi universe. I watch it weekly. ","5":"I've seen it, I am pretty indifferent to it. ","5-":"This show is sub-par. The acting is wooden, the special effects are obviously poor quality. In general, it seems like a very cheap Star Trek ripoff. ","5--":"You call this Sci-Fi? That is such a load of crap! This show is just a soap with bad actors, piss-poor effects, and lame storylines. Puh-leese."};
geekKoder.geekcode["X"] = {"X++++":"I am Chris Carter ","X+++":"This is the BEST show on TV, and it's about time. I've seen everything David Duchovny and Gillian Anderson have ever done that been recorded and I'm a loyal Duchovny/ Gillian Anderson fan. I've Converted at least 10 people. I have every episode at SP, debate the fine details on-line, and have a credit for at least 2 YAXAs. ","X++":"This is one of the better shows I've seen. I wish I'd taped everything from the start at SP, because I'm wearing out my EP tapes. I'll periodically debate online. I've Converted at least 5 people. I've gotten a YAXA. ","X+":"I've Converted my family and watch the show when I remember. It's really kinda fun. ","X":"Ho hum. Just another Fox show. ","X-":"It's ok if you like paranoia and conspiracy stories, but, let's face it, it's crap. ","X--":"If I wanted to watch this kind of stuff, I'd talk to Oliver Stone"};
geekKoder.geekcode["R"] = {"R+++":"I've written and published my own gaming materials. ","R++":"There is no life outside the role of the die. I know all of piddly rules of (chosen game). _MY_ own warped rules scare the rest of the players. ","R+":"I've got my weekly sessions set up and a character that I know better than I know myself. ","R":"Role-Playing? That's just something to do to kill a Saturday afternoon ","R-":"Gosh, what an utter waste of time! ","R--":"Role-Players are instruments of pure evil. ","R---":"I work for T$R.","R*":"I thought life WAS role-playing?"};
geekKoder.geekcode["tv"] = {"tv+++":"There's nothing I can experience \"out there\" that I can't see coming over my satellite dish. I wish there were MORE channels. I live for the O.J. Trial. ","tv++":"I just leave the tv on, to make sure I don't miss anything. ","tv+":"I watch some tv every day. ","tv":"I watch only the shows that are actually worthwhile, such as those found on PBS. ","tv-":"I watch tv for the news and 'special programming.' ","tv--":"I turn my tv on during natural disasters.","!tv":"I do not own a television."};
geekKoder.geekcode["b"] = {"b++++":"I read a book a day. I have library cards in three states. I have discount cards from every major bookstore. I've ordered books from another country to get my Favorite Author Fix. ","b+++":"I consume a few books a week as part of a staple diet. ","b++":"I find the time to get through at least one new book a month. ","b+":"I enjoy reading, but don't get the time very often. ","b":"I read the newspaper and the occasional book. ","b-":"I read when there is no other way to get the information. ","b--":"I did not actually READ the geek code, I just had someone tell me."};
geekKoder.geekcode["DI"] = {"DI+++++":"I am Scott Adams. ","DI++++":"I've received mail from Scott Adams. I'm in the DNRC (Dogbert's New Ruling Class). ","DI+++":"I am a Dilbert prototype ","DI++":"I work with people that act a lot like Dilbert and his boss. ","DI+":"I read Dilbert daily, often understanding it ","DI":"I read Dilbert infrequently, rarely understanding it ","DI-":"Is that the comic about the engineers? ","DI--":"Don't read it, but I think the dog is kinda cute. ","DI---":"I don't think it's funny to make fun of managers trying their best to run their organizational units."};
geekKoder.geekcode["D"] = {"D++++":"I work for iD Software. ","D+++":"I crank out PWAD files daily, complete with new monsters, weaponry, sounds and maps. I'm a DOOM God. I can solve the original maps in nightmare mode with my eyes closed. ","D++":"I've played the shareware version and bought the real one and I'm actually pretty good at the game. I occasionally download PWAD files and play them too. ","D+":"It's a fun, action game that is a nice diversion on a lazy afternoon. ","D":"I've played the game and I'm pretty indifferent. ","D-":"I've played the game and really didn't think it was all that impressive. ","D--":"It's an overly-violent game and pure crap ","D---":"To hell with Doom, I miss Zork. ","D----":"I've seen better on my Atari 2600"};
geekKoder.geekcode["G"] = {"G+++++":"I am Robert Hayden ","G++++":"I have made a suggestion for future versions of the code (note that making a suggestion just to get a G++++ rating doesn't count, you also have to at least qualify for a G+++ rating :-) ","G+++":"I have memorized the entire geek code, and can decode others' codes in my head. I know by heart where to find the current version of the code on the net. ","G++":"I know what each letter means, but sometimes have to look up the specifics. ","G+":"I was once G++ (or higher), but the new versions are getting too long and too complicated. ","G":"I know what the geek code is and even did up this code. ","G-":"What a tremendous waste of time this Geek Code is. ","G--":"Not only a waste of time, but it obviously shows that this Hayden guy needs a life."};
geekKoder.geekcode["e"] = {"e+++++":"I am Stephen Hawking ","e++++":"Managed to get my Ph.D. ","e+++":"Got a Masters degree ","e++":"Got a Bachelors degree ","e+":"Got an Associates degree ","e":"Finished High School ","e-":"Haven't finished High School ","e--":"Haven't even entered High School","e*":"I learned everything there is to know about life from the \"Hitchhiker's Trilogy\"."};
geekKoder.geekcode["h"] = {"h++":"Living in a cave with 47 computers and an Internet feed, located near a Dominoes pizza. See !d. ","h+":"Living alone, get out once a week to buy food, no more than once a month to do laundry. All surfaces covered. ","h":"Friends come over to visit every once in a while to talk about Geek things. There is a place for them to sit. ","h-":"Living with one or more registered Geeks. ","h--":"Living with one or more people who know nothing about being a Geek and refuse to watch Babylon 5. ","h---":"Married, (persons living romantically with someone might as well label themselves h---, you're as good as there already.) ","h----":"Married with children - Al Bundy can sympathize","h!":"I am stuck living with my parents! ","h*":"I'm not sure where I live anymore. This lab/workplace seems like home to me."};
geekKoder.geekcode["r"] = {"r+++":"Found someone, dated, and am now married. ","r++":"I've dated my current S.O. for a long time. ","r+":"I date frequently, bouncing from one relationship to another. ","r":"I date periodically. ","r-":"I have difficulty maintaining a relationship. ","r--":"People just aren't interested in dating me. ","r---":"I'm beginning to think that I'm a leper or something, the way people avoid me like the plague.","!r":"I've never had a relationship. ","r*":"signifying membership in the SBCA (Sour Bachelor(ette)'s Club of America). The motto is 'Bitter, but not Desperate'. First founded at Caltech. ","r%":"I was going out with someone, but the asshole dumped me."};
geekKoder.geekcode["x"] = {"x+++++":"I am Madonna ","x++++":"I have a few little rug rats to prove I've been there. Besides, with kids around, who has time for sex? ","x+++":"I'm married, so I can get it (theoretically) whenever I want. ","x++":"I was once referred to as 'easy'. I have no idea where that might have come from though. ","x+":"I've had real, live sex. ","x":"I've had sex. Oh! You mean with someone else? Then no. ","x-":"Not having sex by choice. ","x--":"Not having sex because I just can't get any... ","x---":"Not having sex because I'm a nun or a priest. ","x*":"I'm a pervert. ","x**":"I've been known to make perverts look like angels.","x?":"It's none of your business what my sex life is like (this is used to denote your gender only)."};
geekKoder.geekcode["y"] = {"y+++++":"I am Madonna ","y++++":"I have a few little rug rats to prove I've been there. Besides, with kids around, who has time for sex? ","y+++":"I'm married, so I can get it (theoretically) whenever I want. ","y++":"I was once referred to as 'easy'. I have no idea where that might have come from though. ","y+":"I've had real, live sex. ","y":"I've had sex. Oh! You mean with someone else? Then no. ","y-":"Not having sex by choice. ","y--":"Not having sex because I just can't get any... ","y---":"Not having sex because I'm a nun or a priest. ","y*":"I'm a pervert. ","y**":"I've been known to make perverts look like angels.","y?":"It's none of your business what my sex life is like"};
var regexToSplitIntoParts = /^(!)?((U?)(G?)[0-9a-zA-Z\/]+(!)?)(\$)?(\@)?(\?)?(\++|-+|\*\*?|%|pu|x)?(\((\++|-+)?\))?(\$)?(\@)?(\?)?(>(\++|-+)?)?(\:(\++|-+)?(\((\++|-+)?\))?(\>(\++|-+)?)?)?(\$)?(\@)?$/;
function Word(word)
{
this.value = word;
var parts = regexToSplitIntoParts.exec(word);
if(parts === null)
{
//debugger;
}
else
{
this.match = parts[ 0];
this.notInterested = parts[ 1]; // !
this.categoryCode = parts[ 2]; // code
this.isUnix = parts[ 3]; // prefix U is unix
this.isGeek = parts[ 4]; // prefix G is 'geek of'
this.isNonQGeek = parts[ 5]; // suffix ! is 'non qualified geek'
this.isPaid = parts[ 6]; // $ gets paid
this.notRigid = parts[ 7]; // @ not rigid
this.doesntKnow = parts[ 8]; // ? doesn't have knowledge
this.modifier = new Modifier(
parts[ 9] || "", // -- or ++ or ** or letters etc.
parts[10], // has brackets (...) means ranges
parts[11] || "", // modifier in the brackets
parts[15], // > means want
parts[16] || ""); // modifier for want
this.getsPaid2 = parts[12]; // $ trying to get paid????
this.notRigid2 = parts[13]; // @ idk
this.doesntKnow2 = parts[14]; // ? idk
this.isPart = parts[17]; // : is used for shape
this.part = new Modifier(
parts[18] || "", // -- or ++ or ** or letters etc.
parts[19], // has brackets (...) means ranges
parts[20] || "", // modifier in the brackets
parts[21], // > means want
parts[22] || ""); // modifier for want
this.getsPaid3 = parts[23]; // $ wants to get paid
this.nonRigid3 = parts[24]; // @ means it changes
}
function Modifier(modifier, isRanging, rangeModifier, isWants, wantModifier)
{
this.modifier = modifier
this.isRanging = isRanging;
this.range = {};
this.range.modifier = rangeModifier;
this.isWants = isWants;
this.wants = {};
this.wants.modifier = wantModifier;
}
return this;
}
Word.prototype.getRules = function ()
{
var category = this.categoryCode;
if(this.isGeek || this.isNonQGeek)
{
category = "types";
}
else if(this.isUnix)
{
category = "U";
}
this.category = category;
return geekKoder.geekcode[category];
};
geekKoder.prototype = {
words :Array(),
kode : Array(),
init :function(){
this.status = document.getElementById('geekKoderCtr');
this.codeDiv = document.getElementById('geekcodeDiv');
},
run :function(code){
this.codeDiv = document.getElementById('geekcodeDiv');
this.clear();
this.code = code;
this.process(code);
},
process : function(code){
this.words = code.split(' ');
for(var i=0 ; i < this.words.length;i++){
var data = new Word(this.words[i]);
var rules = data.getRules();
var description = this.getDescription(rules, data, data.category, data.modifier);
if(data.category === "s")
{
description = "height: " + description + "<br/>weight: " + this.getDescription(rules, data, ":", data.part);
}
this.add(data.category, description, true);
this.update(i+1);
}
},
getDescription: function(rules, data, category, values){
var description = this.getModifier(rules, data, category, values);
if(values.isRanging)
{
description = "Ranging from ... " + description + " ....to.... " + this.getModifier(rules, data, category, values.range);
}
if(values.isWants)
{
description += "but I'd like to say, " + this.getModifier(rules, data, category, values.wants);
}
return description;
},
getModifier: function(rules, data, category, values){
if(data.isGeek || data.isNonQGeek)
{
return rules.getQuals(data).join("<br>");
}
if(data.isUnix)
{
return (rules.os[data.categoryCode.slice(1)] + "<br/>" + rules.punc[values.modifier]) || (data.categoryCode + values.modifier);
}
return rules[category + values.modifier] || "<i>" + data.word + "</i>";
},
add :function(category,value,isNewCateg){
var _d=document.createElement('div');
if (isNewCateg){
var name = geekKoder.geekcode["legend"][category];
//console.log(name || ("category: " + category));
_d.innerHTML = '<BR><B>' + name +'</b><BR>' +value+'<BR>';
}else{
_d.innerHTML = value;
}
this.results.appendChild(_d);
},
set :function(code){
this.codeDiv.value = code;
},
get :function(){
return this.codeDiv.value;
},
update : function(ctr){
var _p = new Number( (ctr*100)/parseInt(this.words.length,10) ) ;
_str = 'Processing Time: <B>'+ _p +'<\/B> % . Processed '+ctr+' out of '+this.words.length+' geek codes.';
this.status.innerHTML = _str;
},
clear : function (){
if(document.getElementById('geekKode')!=undefined){
document.getElementById('geekKode').parentNode.removeChild(this.results);
}
this.results=document.createElement('div');
this.results.id = 'geekKode';
document.body.appendChild(this.results);
}
};
var str1 = "GED/J d-- a-- C++(++++) ULU++ P+ L++ E---- W+(-) N+++ o+ K+++ w--- O- M+ V-- Y++ PGP++ t- 5+++ X++ R+++ tv+ b+ DI+++ D+++ G+++++ e++ h r-- x++";
var str2 = "GED/J d-- C++(++++)";
var str3 = "GCS/IT/! d- s: a C++$ UL@ P L+ !E W++ !N !o K--? w++ !O !M !V PS !PE !Y !PGP- t+ 5+ !X R tv b+ DI+ D- G++ e++ h---- r+++ y++++";
var str4 = "s+(-)>--:(--)>---";
function init(){
gK = new geekKoder();
gK.set(str4);
}
function kode(){
gK.run(gK.get());
}
</script>
<style>
body{
font-family:Georgia, "Times New Roman", Times, serif;
padding-left:50px;
border-left:1px dashed gray;
}
.geeky{
font-family:'Courier New', Courier, monospace;font-size:12px;margin-left:50px;width:60%;
}
.beta{
position:relative;
top:+12px;
left:+3px;
color:#660066;
}
.h1{
font-size:24px;
border-bottom:6px solid #660066;
}
.h2{
padding-top: 10px;
font-size:20px;
}
.note{
font-size:18px;
}
.todo{
padding-left:75px;
}
</style>
</head>
<body onload=init();>
<span class="h1">geekkoder</span><span class='beta'>beta</span>
<div class='h2'>A javascript implementation of a a geek code decryptor</div>
&nbsp;&nbsp;&nbsp; by <a href='http://bosky101.blogspot.com'>Bhasker V Kode</a>
modified by ME</div>
<div id="wikicontent">
<ul>
<li>@description A Geek Code Decryptor .Based on The Code of the Geeks v3.12 </li>
<li>@author Bhasker V Kode </li>
<li>@date hacked up in the early hours of Feb 23,2007 . </li>
<li>@copyright Mozilla Public Licence 1.1 </li>
<li> </li>
</ul>
<blockquote>This project will also be the basis for a firefox extension that uses geekKoder. </blockquote>
<blockquote>Keep Clicking, <br />
Bhasker V Kode </blockquote>
</div>
<div class="note">Note : It is still experimental</div>
<textarea style="color:#666666;" class="geeky" id="geekcodeDiv" rows="5" cols="100">GJ/ED/S a-- C++(++++) </textarea><BR />
<input type="button" class="geeky" onclick="kode();" value="run geekKoder !" style="height:30px;" />
<div id='geekKoderCtr'></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment