Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use reddit name as the key, instead of flair string.

  • Loading branch information...
commit 6732d2085d5d75c4a7ec9fcd070e6c1978e40fef 1 parent 93d27b7
@listen2 authored
Showing with 123 additions and 123 deletions.
  1. +123 −123 flair-check.js
View
246 flair-check.js
@@ -21,128 +21,128 @@ function dice_coefficient(string1, string2) {
}
flairs = {
- "A Gentleman":"helcat",
- "Cassie":"ChicagoMemoria",
- "Numfar":"Mystic11",
- "Invisible Girl":"handsopen",
- "Watcher":"LarsP",
- "Loo":"GMLiddell",
- "Willow":"douchebag_karren",
- "Tara":"oreogasm",
- "Kendra":"mariah_a",
- "Rogue Demon Hunter":"Cincinnatiriot",
- "Anne":"nantes89",
- "Mustard Guy":"nbcaffeine",
- "The Mayor":"BigGreenYamo",
- "Inca Mummy Girl":"Tesatire",
- "Xander":"drew3000",
- "Quentin":"Liberal_Will",
- "Loan Shark":"Catalinahx",
- "The Judge":"V2Blast",
- "Olaf":"naljorpa108",
- "The Bunny":"ComingUpMilhouse",
- "Emily Dickens":"coffee_IV",
- "Gwendolyn's Glove":"peacockfeathers2",
- "Ben":"aslaveobeys",
- "SlayerFest 98":"ace-89",
- "Miss Kitty Fantastico":"redkoala",
- "Kennedy":"aagavin",
- "Tucker's Brother":"IzzySawicki",
- "The Big Bad":"WookieeWookiee",
- "Randy Giles":"ProfessorSomething",
- "Animal Cracker with Pants":"Pudie",
- "Angel":"Aiderak",
- "five by five":"robotzz",
- "Principal Flutie":"tedtutors",
- "Giles":"Kirby3",
- "I wear the cheese":"Wintertree",
- "White Hat":"MalevolentDragon",
- "Chao-Ahn":"EnigmaClan",
- "Veruca":"lost1alaskan",
- "Dracula":"a_sonic_screwdriver",
- "Richard Wilkins I":"wash42",
- "Faith":"clockworklycanthrope",
- "Halfrek":"RedWindmillQ",
- "Little Miss Muffet":"inmediasres_",
- "Overweight vamp who calls himself Lestat":"PaulDoe",
- "Mr. Pointy":"acedebaser",
- "Vi":"Psychosonic",
- "Harmony":"lobstahfi",
- "Illyria":"Sparky678348",
- "Sunday":"mezzit",
- "Manny the Manager":"Nixon74",
- "Nikki Wood":"joczie",
- "Anya":"alafolie29",
- "Chanterelle":"Lord_KermiT",
- "Gachnar":"avoidingusefulwork",
- "Demon Magnet":"PRIME96",
- "Whistler":"aroomacanvas",
- "Destructo Girl":"rainbowblight",
- "Spike":"bright_ephemera",
- "Lorne":"riqk",
- "Clem":"GTUD",
- "Joan":"gabdeslys",
- "Love's Bitch":"FrazzledTwinkleTart",
- "Kakistos":"Icecastle12",
- "Sweet":"leaffall",
- "Dingoes Ate My Baby":"Cajoled",
- "The Dark Master-bater":"Hepcat10",
- "The Slayer":"mandamoolah",
- "Just a friend of Xanderrr's":"gamb1t",
- "Oz":"fishundead",
- "Watchers Council":"listen2",
- "Darla":"Voldys_gone_mouldy",
- "Caleb":"coolbeaNs92",
- "Luke":"Dot_Matrix",
- "Kathy":"FigmentofImagination",
- "Foamy!":"dampierp",
- "Rack":"Desparia",
- "Miss Edith":"Becca5002",
- "The One Who Isn't Chosen":"YouJellyFish",
- "Prophecy Girl":"Ashton42",
- "Lovebot":"tsukemono",
- "Mr. Trick":"RadRhino",
- "Glory":"anyesuki",
- "The Bloody":"UnholyDemigod",
- "Evil Bunny":"WadePool",
- "Little Bit":"CommanderFemShep",
- "guy with the cheese":"PiperLenox",
- "Ethan Rayne":"fysu",
- "The First":"KindHeartsandCoronet",
- "Anointed One":"jbuie",
- "Tall, Dark, and Forehead":"bleuwillow",
- "Mr. Gordo":"Zemiakovy",
- "Ted":"hmousley",
- "Umad":"plushpikachu",
- "Bringer":"BadLittleBear",
- "The Brie Cat":"Tutenstein",
- "Not a Demon":"yedstar",
- "The Wiggins":"miss_salacious_crumb",
- "Grr, argh!":"oxymoronisanoxymoron",
- "Effulgent":"aithnemae",
- "A Gentleman":"k_m_w",
- "Dawn":"Sid_Arthur",
- "Cookie Dough":"2Clever4You",
- "Nighthawk":"TheDylanJacobson",
- "Insane Troll Logician":"theincrediblerug",
- "The Key":"brittafiltaperry",
- "Class Protector":"britta_perry",
- "Duchess of Buffonia":"sallowmoon",
- "of the Deathwok Clan":"twoforjoy",
- "Hostile 17":"outforawalk",
- "Cold-Blooded Jelly Doughnut":"CatRoulette",
- "Cordette":"mihoutao_xiangjiao",
- "Sineya":"sarah-bellum",
- "D'Hoffryn":"liltrixxy",
- "Niblit":"shesrightyouknow",
- "Desparate for a Shag Giles":"shaytom",
- "Out. For. A. Walk... Bitch.":"verifiedbatmanspenis",
- "Kinda Gay":"aliceinsunnydale",
- "Strawberry":"suddenly_awkward",
- "The Future Slayer":"xQoSx",
- "Fray":"snthomson",
- "Saga Vasuki":"GloryisBen",
- "7-3-0":"echofayth"};
+ "helcat":"A Gentleman",
+ "ChicagoMemoria":"Cassie",
+ "Mystic11":"Numfar",
+ "handsopen":"Invisible Girl",
+ "LarsP":"Watcher",
+ "GMLiddell":"Loo",
+ "douchebag_karren":"Willow",
+ "oreogasm":"Tara",
+ "mariah_a":"Kendra",
+ "Cincinnatiriot":"Rogue Demon Hunter",
+ "nantes89":"Anne",
+ "nbcaffeine":"Mustard Guy",
+ "BigGreenYamo":"The Mayor",
+ "Tesatire":"Inca Mummy Girl",
+ "drew3000":"Xander",
+ "Liberal_Will":"Quentin",
+ "Catalinahx":"Loan Shark",
+ "V2Blast":"The Judge",
+ "naljorpa108":"Olaf",
+ "ComingUpMilhouse":"The Bunny",
+ "coffee_IV":"Emily Dickens",
+ "peacockfeathers2":"Gwendolyn's Glove",
+ "aslaveobeys":"Ben",
+ "ace-89":"SlayerFest 98",
+ "redkoala":"Miss Kitty Fantastico",
+ "aagavin":"Kennedy",
+ "IzzySawicki":"Tucker's Brother",
+ "WookieeWookiee":"The Big Bad",
+ "ProfessorSomething":"Randy Giles",
+ "Pudie":"Animal Cracker with Pants",
+ "Aiderak":"Angel",
+ "robotzz":"five by five",
+ "tedtutors":"Principal Flutie",
+ "Kirby3":"Giles",
+ "Wintertree":"I wear the cheese",
+ "MalevolentDragon":"White Hat",
+ "EnigmaClan":"Chao-Ahn",
+ "lost1alaskan":"Veruca",
+ "a_sonic_screwdriver":"Dracula",
+ "wash42":"Richard Wilkins I",
+ "clockworklycanthrope":"Faith",
+ "RedWindmillQ":"Halfrek",
+ "inmediasres_":"Little Miss Muffet",
+ "PaulDoe":"Overweight vamp who calls himself Lestat",
+ "acedebaser":"Mr. Pointy",
+ "Psychosonic":"Vi",
+ "lobstahfi":"Harmony",
+ "Sparky678348":"Illyria",
+ "mezzit":"Sunday",
+ "Nixon74":"Manny the Manager",
+ "joczie":"Nikki Wood",
+ "alafolie29":"Anya",
+ "Lord_KermiT":"Chanterelle",
+ "avoidingusefulwork":"Gachnar",
+ "PRIME96":"Demon Magnet",
+ "aroomacanvas":"Whistler",
+ "rainbowblight":"Destructo Girl",
+ "bright_ephemera":"Spike",
+ "riqk":"Lorne",
+ "GTUD":"Clem",
+ "gabdeslys":"Joan",
+ "FrazzledTwinkleTart":"Love's Bitch",
+ "Icecastle12":"Kakistos",
+ "leaffall":"Sweet",
+ "Cajoled":"Dingoes Ate My Baby",
+ "Hepcat10":"The Dark Master-bater",
+ "mandamoolah":"The Slayer",
+ "gamb1t":"Just a friend of Xanderrr's",
+ "fishundead":"Oz",
+ "listen2":"Watchers Council",
+ "Voldys_gone_mouldy":"Darla",
+ "coolbeaNs92":"Caleb",
+ "Dot_Matrix":"Luke",
+ "FigmentofImagination":"Kathy",
+ "dampierp":"Foamy!",
+ "Desparia":"Rack",
+ "Becca5002":"Miss Edith",
+ "YouJellyFish":"The One Who Isn't Chosen",
+ "Ashton42":"Prophecy Girl",
+ "tsukemono":"Lovebot",
+ "RadRhino":"Mr. Trick",
+ "anyesuki":"Glory",
+ "UnholyDemigod":"The Bloody",
+ "WadePool":"Evil Bunny",
+ "CommanderFemShep":"Little Bit",
+ "PiperLenox":"guy with the cheese",
+ "fysu":"Ethan Rayne",
+ "KindHeartsandCoronet":"The First",
+ "jbuie":"Anointed One",
+ "bleuwillow":"Tall, Dark, and Forehead",
+ "Zemiakovy":"Mr. Gordo",
+ "hmousley":"Ted",
+ "plushpikachu":"Umad",
+ "BadLittleBear":"Bringer",
+ "Tutenstein":"The Brie Cat",
+ "yedstar":"Not a Demon",
+ "miss_salacious_crumb":"The Wiggins",
+ "oxymoronisanoxymoron":"Grr, argh!",
+ "aithnemae":"Effulgent",
+ "k_m_w":"A Gentleman",
+ "Sid_Arthur":"Dawn",
+ "2Clever4You":"Cookie Dough",
+ "TheDylanJacobson":"Nighthawk",
+ "theincrediblerug":"Insane Troll Logician",
+ "brittafiltaperry":"The Key",
+ "britta_perry":"Class Protector",
+ "sallowmoon":"Duchess of Buffonia",
+ "twoforjoy":"of the Deathwok Clan",
+ "outforawalk":"Hostile 17",
+ "CatRoulette":"Cold-Blooded Jelly Doughnut",
+ "mihoutao_xiangjiao":"Cordette",
+ "sarah-bellum":"Sineya",
+ "liltrixxy":"D'Hoffryn",
+ "shesrightyouknow":"Niblit",
+ "shaytom":"Desparate for a Shag Giles",
+ "verifiedbatmanspenis":"Out. For. A. Walk... Bitch.",
+ "aliceinsunnydale":"Kinda Gay",
+ "suddenly_awkward":"Strawberry",
+ "xQoSx":"The Future Slayer",
+ "snthomson":"Fray",
+ "GloryisBen":"Saga Vasuki",
+ "echofayth":"7-3-0"};
@@ -167,7 +167,7 @@ function go() {
//r = [Array(a, dice_coefficient(a, newflair)) for each (a in flairs)];
r = Array();
for (x in flairs) {
- r.push(Array(x, dice_coefficient(x, newflair), flairs[x]));
+ r.push(Array(flairs[x], dice_coefficient(flairs[x], newflair), x));
}
r.sort(function(a, b) { return a[1] < b[1] ? 1 : (a[1] > b[1] ? -1 : 0); });
Please sign in to comment.
Something went wrong with that request. Please try again.