{"data":{"script":[{"nid":"6137888","uid":"48290","title":"My EteRNA100 Uncleared Puzzles (Rev 1)","time":"1440694957","source":"//\n// Author:      LFP6, some code originally by jnicol\n// Date:        8/27/2015\n//\n// Description: This script summarizes a players uncleared EteRNA100 puzzles\n//\n// Inputs:      UserId - Enter the id of the person you want to find\n//                       the uncleared puzzles for, or leave blank to\n//                       find your own uncleared puzzles.\n//\n// Revision History:\n//\n// Revision 0\t8/27/2015   1) Cache puzzle data for dramatically decreased load times\n\n// Make sure the user is logged in (checking arbitrary data of logged in user to do so)\nvar userid;\n\ntry {userid = Application.CURRENT_USER.uid;}\ncatch(err) {return \"You must be logged in to use this script\";}\n\n// Cached data\nvar puzzleIDs = [\"20111\",\"215430\",\"15819\",\"15886\",\"15847\",\"17811\",\"13687\",\"1074756\",\"13840\",\"426871\",\"816170\",\"399912\",\"756881\",\"446042\",\"727172\",\"443196\",\"445593\",\"1427482\",\"461984\",\"775904\",\"601331\",\"3084759\",\"997382\",\"472029\",\"427350\",\"852950\",\"426038\",\"404191\",\"552663\",\"1452086\",\"535777\",\"736567\",\"1569272\",\"742530\",\"530172\",\"1487670\",\"460087\",\"401904\",\"2463193\",\"903842\",\"997391\",\"888104\",\"969361\",\"2320259\",\"2322879\",\"481598\",\"683941\",\"1884959\",\"458872\",\"737448\",\"1398974\",\"3144144\",\"3194980\",\"2569877\",\"550435\",\"458607\",\"2493932\",\"4238942\",\"422821\",\"479654\",\"457731\",\"970812\",\"3676828\",\"448277\",\"459030\",\"1005956\",\"457023\",\"1887121\",\"461805\",\"2418507\",\"972844\",\"472262\",\"415914\",\"450940\",\"708346\",\"415093\",\"443518\",\"451142\",\"480112\",\"474410\",\"547104\",\"3058638\",\"460166\",\"545680\",\"624517\",\"4891834\",\"474564\",\"477402\",\"505782\",\"944766\",\"908660\",\"787674\",\"965314\",\"726696\",\"3526038\",\"911841\",\"1632102\",\"965280\",\"913357\",\"6050904\"]\nvar puzzleNames = [\"Simple Hairpin \",\"Arabidopsis Thaliana 6 RNA - Difficulty Level 0\",\"Prion Pseudoknot - Difficulty Level 0\",\"Human Integrated Adenovirus - Difficulty Level 0\",\"The Gammaretrovirus Signal - Difficulty Level 0\",\"Saccharomyces Cerevisiae - Difficulty Level 0\",\"Fractal 2\",\"G-C Placement\",\"The Sun\",\"Frog Foot\",\"InfoRNA test 16\",\"Mat – Martian 2\",\"square\",\"Six legd turtle 2\",\"Small and Easy 6\",\"Fractile\",\"Six legd Turtle\",\"snoRNA SNORD64\",\"Chalk Outline\",\"InfoRNA bulge test 9\",\"Tilted Russian Cross\",\"This is ACTUALLY Small And Easy 6\",\"Shortie 4\",\"Shape Test\",\"The Minitsry\",\"stickshift\",\"U \",\"Still Life (Sunflower In A Vase)\",\"Quasispecies 2-2 Loop Challenge\",\"Corner bulge training\",\"Spiral\",\"InfoRNA bulge test\",\"Worm 1\",\"just down to 1 bulge \",\"Iron Cross\",\"loops and stems\",\"Water Strider\",\"The Turtle(s) Move(s)\",\"Adenine\",\"Tripod5\",\"Shortie 6\",\"Runner\",\"Recoil\",\"[CloudBeta] An Arm and a Leg 1.0\",\"[CloudBeta] 5 Adjacent Stack Multi-Branch Loop\",\"Triple Y\",\"Misfolded Aptamer\",\"Flower power\",\"Kudzu\",\"1,2,3and4bulges\",\"medallion\",\"[RNA] Repetitious Sequences 8/10\",\"Documenting repetitious behavior\",\"7 multiloop\",\"Kyurem 7\",\"JF1\",\"multilooping fun\",\"Multiloop...\",\"hard Y\",\"Mat - Elements & Sections\",\"Chicken feet\",\"Bug 18\",\"Fractal star x5\",\"Crop circle 2\",\"Branching Loop\",\"Bug 38\",\"Simple Single Bond\",\"Taraxacum officinale\",\"Headless Bug on Windshield\",\"Pokeball\",\"Variation of a crop circle\",\"Loop next to a Multiloop\",\"Snowflake 4\",\"Mat - Cuboid\",\"Misfolded Aptamer 6\",\"Snowflake 3\",\"Hard Y and a bit more\",\"Mat - Lot 2-2 B\",\"Shapes and Energy\",\"Spiral of 5's\",\"Campfire\",\"Anemone\",\"Fractal 3\",\"Kyurem 5\",\"Snowflake Necklace ( or v2.0 )\",\"Methaqualone C16H14N2O Structural Representation\",\"Cat's Toy 2\",\"Zigzag Semicircle\",\"Short String 4\",\"Gladius\",\"Thunderbolt\",\"Mutated chicken feet\",\"Chicken Tracks\",\"Looking Back Again\",\"Multilooping 6\",\"Cesspool\",\"Hoglafractal\",\"Bullseye\",\"Shooting Star\",\"Teslagon\"];\nvar creatorIDs = [\"54\",\"54\",\"54\",\"54\",\"54\",\"54\",\"29\",\"36921\",\"29\",\"24530\",\"30265\",\"267\",\"34148\",\"8627\",\"24263\",\"8362\",\"8627\",\"40562\",\"26671\",\"30265\",\"30265\",\"98124\",\"8627\",\"24263\",\"8362\",\"32627\",\"22120\",\"12286\",\"26671\",\"8627\",\"30000\",\"30265\",\"40562\",\"26557\",\"30000\",\"46652\",\"26671\",\"12286\",\"8627\",\"32627\",\"8627\",\"36188\",\"38557\",\"64124\",\"24263\",\"26671\",\"11775\",\"52930\",\"26671\",\"26557\",\"42404\",\"30265\",\"30265\",\"57743\",\"28858\",\"26671\",\"40562\",\"42683\",\"22120\",\"267\",\"8627\",\"32627\",\"131315\",\"8627\",\"24263\",\"32627\",\"11775\",\"52930\",\"26671\",\"60391\",\"34148\",\"24263\",\"1911\",\"267\",\"11775\",\"1911\",\"22120\",\"267\",\"24263\",\"24263\",\"11775\",\"57743\",\"8627\",\"28858\",\"33824\",\"52361\",\"13402\",\"24263\",\"24263\",\"26671\",\"26671\",\"8627\",\"36921\",\"24263\",\"48166\",\"36921\",\"36921\",\"36921\",\"24263\",\"44191\"];\nvar creatorNames = [\"Sneh\",\"Sneh\",\"Sneh\",\"Sneh\",\"Sneh\",\"Sneh\",\"pkinney\",\"hoglahoo\",\"pkinney\",\"kmcole\",\"paramodic\",\"mat747\",\"jboanmit\",\"Eli Fisker\",\"Brourd\",\"penguian\",\"Eli Fisker\",\"ribonucleic\",\"Quasispecies\",\"paramodic\",\"paramodic\",\"steven123505\",\"Eli Fisker\",\"Brourd\",\"penguian\",\"jandersonlee\",\"Joshua Weitzman\",\"boganis\",\"Quasispecies\",\"Eli Fisker\",\"MindofScience3\",\"paramodic\",\"ribonucleic\",\"Edward Lane\",\"MindofScience3\",\"Owen099\",\"Quasispecies\",\"boganis\",\"Eli Fisker\",\"jandersonlee\",\"Eli Fisker\",\"Yoshi789\",\"largevee\",\"kcabral28\",\"Brourd\",\"Quasispecies\",\"starryjess\",\"ariel19_89\",\"Quasispecies\",\"Edward Lane\",\"mspano\",\"paramodic\",\"paramodic\",\"wateronthemoon\",\"Freywa\",\"Quasispecies\",\"ribonucleic\",\"qwed117\",\"Joshua Weitzman\",\"mat747\",\"Eli Fisker\",\"jandersonlee\",\"Crul\",\"Eli Fisker\",\"Brourd\",\"jandersonlee\",\"starryjess\",\"ariel19_89\",\"Quasispecies\",\"rnjensen45\",\"jboanmit\",\"Brourd\",\"Ding\",\"mat747\",\"starryjess\",\"Ding\",\"Joshua Weitzman\",\"mat747\",\"Brourd\",\"Brourd\",\"starryjess\",\"wateronthemoon\",\"Eli Fisker\",\"Freywa\",\"Wobble Dynx\",\"Malcolm\",\"merryskies\",\"Brourd\",\"Brourd\",\"Quasispecies\",\"Quasispecies\",\"Eli Fisker\",\"hoglahoo\",\"Brourd\",\"jnicol\",\"hoglahoo\",\"hoglahoo\",\"hoglahoo\",\"Brourd\",\"wawan151\"];\n\n// Variables\nvar i, puzzleData;\nvar solved=0;\nvar allCleared = new Array();\nvar uncleared = new Array();\n\n// Adding IDs of all puzzles solved by user to array\npuzzleData = JSON.parse(httpGet(\"https://eternagame.org/get/?type=puzzle&nid=1\")).data;\nfor (i=0; i<puzzleData.cleared.length; i++) {\n  allCleared[i] = puzzleData.cleared[i].nid;\n}\n\n// Loop through EteRNA100\nfor (i=0; i<puzzleIDs.length; i++) {\n \t// If cleared, add 1 to solved, otherwise fill array with puzzle/creator data\n  \tif (allCleared.indexOf(puzzleIDs[i]) != -1) { solved++ } else { \n      uncleared.push([]);\n      uncleared[(uncleared.length-1)][0] = puzzleIDs[i];\n      uncleared[(uncleared.length-1)][1] = puzzleNames[i];\n      uncleared[(uncleared.length-1)][2] = creatorIDs[i];\n      uncleared[(uncleared.length-1)][3] = creatorNames[i];\n    }\n}\n\n// Print results\noutln(\"\");\nout(\"You have solved \" + solved + \"/100 puzzles. \");\nif (solved == 100) {\n  outln(\"Congratulations! You have done the (practically) imossible and solved all of the EteRNA100!\");\n} else {\n  outln(\"Here are the \" + (100 - solved) + \" you have left:\"); outln(\"\");\n  for (i=0; i<uncleared.length; i++) {\n    outln(\"<a href='https://eternagame.org/web/puzzle/\" + uncleared[i][0] + \"/'>\" + uncleared[i][1] + \"</a> by <a href='https://eternagame.org/web/player/\" + uncleared[i][2] + \"/'>\" + uncleared[i][3] + \"</a>\");\n  }\n}\n\n// Get request\nfunction httpGet( theUrl )\n{\n  var xmlHttp = null;\n  xmlHttp = new XMLHttpRequest();\n  xmlHttp.open( \"GET\", theUrl, false );\n  xmlHttp.send( null );\n  return xmlHttp.responseText;\n}\n\nreturn \"Success\";","input":"[]","type":"Etc","pageview":"799","body":"Lists how many cleared/uncleared puzzles of <a href='http://www.eternagame.org/web/blog/6136054/'>EteRNA100</a> you have left, and gives you a list (with links) of the puzzles you have left to solve & their authors. See beginning script comments for revision history.<br><br>Will edit this script to add more data from My Uncleared Puzzles at some point.<br><br>NOTE: You must be logged in to use this script.","is_private":"0","is_favorite":"0","agreed_to_run":"0","is_trusted":"1","author":{"name":"LFP6","uid":"48290"}}],"comments":[{"cid":"70598","name":"uberpaul","uid":"223130","comment":"you put your username into the timeout bar.\nthats what i did, and i realized that i have a lot of work to do","created":"Jan 12, 2016","picture":"sites/default/files/pictures/picture-223130.jpg"},{"cid":"70145","name":"rocketdog42","uid":"220156","comment":"Thanks for the script. I just plugged in a random puzzle number and got my result!","created":"Dec 26, 2015","picture":"sites/default/files/pictures/picture-220156.jpg"}],"current_uid":null}}