gocart 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/assets/Gemfile +24 -0
- data/assets/Guardfile +37 -0
- data/assets/Rakefile +5 -0
- data/assets/config.rb +24 -0
- data/assets/spec/javascripts/support/jasmine.yml +86 -0
- data/assets/spec/javascripts/support/jasmine_config.rb +23 -0
- data/assets/spec/javascripts/support/jasmine_runner.rb +32 -0
- data/assets/src/server/http_handler.go +136 -0
- data/assets/src/server/main.go +31 -0
- data/assets/src/server/templates.go +42 -0
- data/assets/src/www/app/coffee/adapters/dummy_data.js.coffee +6 -0
- data/assets/src/www/app/coffee/adapters/reddit.js.coffee +294 -0
- data/assets/src/www/app/coffee/application.js.coffee +23 -0
- data/assets/src/www/app/coffee/controllers/app.js.coffee +69 -0
- data/assets/src/www/app/coffee/controllers/nav.js.coffee +55 -0
- data/assets/src/www/app/coffee/controllers/subreddit_posts.js.coffee +57 -0
- data/assets/src/www/app/coffee/helpers/event_manager.js.coffee +3 -0
- data/assets/src/www/app/coffee/helpers/properties.js.coffee +19 -0
- data/assets/src/www/app/coffee/helpers/storage.js.coffee +14 -0
- data/assets/src/www/app/coffee/libs/3rdparty.js.coffee +7 -0
- data/assets/src/www/app/coffee/libs/deferred.js.coffee +92 -0
- data/assets/src/www/app/coffee/libs/logger.js.coffee +40 -0
- data/assets/src/www/app/coffee/libs/mod_loader.js.coffee +44 -0
- data/assets/src/www/app/coffee/main.js.coffee +42 -0
- data/assets/src/www/app/coffee/models/comment.js.coffee +26 -0
- data/assets/src/www/app/coffee/models/post.js.coffee +27 -0
- data/assets/src/www/app/coffee/models/sub_reddit.js.coffee +18 -0
- data/assets/src/www/app/coffee/widgets/post_detail.js.coffee +2 -0
- data/assets/src/www/app/coffee/widgets/posts.js.coffee +45 -0
- data/assets/src/www/app/coffee/widgets/subreddit_detail.js.coffee +2 -0
- data/assets/src/www/app/coffee/widgets/subreddits.js.coffee +44 -0
- data/assets/src/www/app/images/test.png +0 -0
- data/assets/src/www/app/partials/index.html +92 -0
- data/assets/src/www/app/sass/application.css.scss +136 -0
- data/assets/src/www/app/templates/application.gotmpl +2 -0
- data/assets/src/www/app/templates/base.gotmpl.erb +27 -0
- data/assets/src/www/app/templates/home.gotmpl +9 -0
- data/assets/src/www/spec/coffee/deferred-spec.coffee +202 -0
- data/assets/src/www/spec/coffee/mocks.coffee +137 -0
- data/assets/src/www/spec/coffee/mod_loader-spec.coffee +45 -0
- data/assets/src/www/spec/coffee/properties-spec.coffee +21 -0
- data/assets/src/www/spec/coffee/reddit_adapter-spec.coffee +143 -0
- data/assets/src/www/vendor/css/jq.ui.css +630 -0
- data/assets/src/www/vendor/images/ajax-loader.png +0 -0
- data/assets/src/www/vendor/images/icons-18-black.png +0 -0
- data/assets/src/www/vendor/images/icons-18-white.png +0 -0
- data/assets/src/www/vendor/images/icons-36-black.png +0 -0
- data/assets/src/www/vendor/images/icons-36-white.png +0 -0
- data/assets/src/www/vendor/js/ICanHaz.min.js +10 -0
- data/assets/src/www/vendor/js/jq.mobi.min.js +20 -0
- data/assets/src/www/vendor/js/jq.ui.min.js +90 -0
- data/assets/src/www/vendor/js/jq.web.min.js +58 -0
- data/assets/src/www/vendor/js/phonegap-1.1.0.js +4577 -0
- data/assets/src/www/vendor/js/touch.js +103 -0
- data/assets/tasks/app.rake +34 -0
- data/assets/tasks/jasmine.rake +8 -0
- data/assets/tasks/server.rake +58 -0
- data/assets/tasks/www.rake +163 -0
- data/bin/gocart +25 -0
- data/lib/gocart.rb +5 -6
- data/lib/gocart/base.rb +28 -0
- data/lib/gocart/environment.rb +18 -0
- data/lib/gocart/version.rb +1 -1
- metadata +113 -41
- data/.gitignore +0 -4
- data/Gemfile +0 -4
- data/Rakefile +0 -1
- data/gocarg.go +0 -29
- data/gocart.gemspec +0 -38
@@ -0,0 +1,6 @@
|
|
1
|
+
modLoader.define 'adapters/dummy_data', (require,exports) ->
|
2
|
+
|
3
|
+
exports.subReddits = {"kind": "Listing", "data": {"modhash": "", "children": [{"kind": "t5", "data": {"display_name": "pics", "name": "t5_2qh0u", "title": "/r/Pics", "url": "/r/pics/", "created": 1201221069.0, "created_utc": 1201221069.0, "over18": false, "subscribers": 1183941, "id": "2qh0u", "description": "### [**Please consider crossposting your Christmas-related images to /r/Christmas**](http://www.reddit.com/r/Christmas) ###\n\nA place to share interesting photographs and pictures. Feel free to post your own, but please **read the rules first** (see below), and note that we are *not a catch-all* for general images (of screenshots, comics, etc.)\n\n\n#Rules#\n\n1. **No screenshots or pictures with added or superimposed text.** *This includes [image macros](http://en.wikipedia.org/wiki/Image_macro) and comics.*\n\n1. **No gore, porn or anything NSFW.** *This subreddit is strictly SFW, and there are better places for such content.*\n\n1. **No personal information.** *This includes anything hosted on Facebook's servers, as they can be traced to the original account holder. Stalking & harassment will not be tolerated.*\n\n1. **No solicitation of votes, weight loss photos, or [FIXED] posts.** *Weight loss photos go in /r/loseit, DAE posts go in /r/DoesAnybodyElse. \"Fixed\" posts should be added as a comment to the original image.*\n\n1. **No non-author URLs in images.** *We only tolerate URLs in images if they serve to give credit to the original author.* \n\n\n* If your submission appears to be banned but meets the above rules, [please send us a message](/message/compose?to=%23pics) with a link to the post. Don't delete it as that makes the filter hate you! \n\n* See the \"Links\" section below if your image does not meet the above rules and you're unsure where to post it.\n\n\n* If you come across any rule violations, please report the submission or [message the mods](http://www.reddit.com/message/compose?to=%23pics) and one of us will remove it!\n\n#Links#\nIf your post doesn't meet the above rules, consider submitting it on one of these other subreddits:\n\nComics | &#0160;\n:---|:---\n/r/comics | /r/webcomics\n/r/vertical | [/r/f7u12](/r/fffffffuuuuuuuuuuuu/)\n/r/ragenovels | /r/AdviceAtheists \n**Image macros**|**Screenshots/Text**\n/r/lolcats | /r/screenshots\n/r/AdviceAnimals | /r/desktops\n/r/Demotivational | /r/facepalm (Facebook)\n/r/reactiongifs | \n**Wallpaper**|**Animals**\n/r/wallpaper | /r/aww\n/r/wallpapers | /r/cats\n[The SFWPorn Network](http://www.reddit.com/r/earthporn+villageporn+cityporn+spaceporn+waterporn+abandonedporn+animalporn+humanporn+botanicalporn+adrenalineporn+destructionporn+movieposterporn+albumartporn+machineporn+newsporn+geekporn+bookporn+mapporn+adporn+designporn+roomporn+militaryporn+historyporn+quotesporn+skyporn+fireporn+infrastructureporn) | /r/TrollingAnimals\n**Photography**|**Un-moderated pics**\n/r/photography | /r/AnythingGoesPics\n/r/photocritique | /r/images\n/r/windowshots | \n/r/PictureChallenge |\n**Misc**|**New Reddits**\n/r/misc | /r/PerfectTiming \n/r/gifs | /r/ThenNnow\n\nAlso check out http://irc.reddit.com\n "}}, {"kind": "t5", "data": {"display_name": "funny", "name": "t5_2qh33", "title": "funny", "url": "/r/funny/", "created": 1201242956.0, "created_utc": 1201242956.0, "over18": false, "subscribers": 1199924, "id": "2qh33", "description": "1. [Should this type of comic be allowed in r/funny? Click here to see.](http://www.reddit.com/r/funny/comments/nhd98/bad_kid/?sort=confidence)\n\n2. [And let your voice be heard here.](http://www.reddit.com/r/funny/comments/ni08x/should_this_type_of_comic_be_allowed_in_rfunny_or/)\n\n\n\n\n***New Rule***: No posts with their sole purpose being to communicate with another redditor. [Example.](http://www.reddit.com/r/funny/comments/lq3uv/a_student_in_a_course_i_teach_is_constantly/?sort=top) Sorry, you're going to have to use a different form of communication.\n\n---\n\n\n**Welcome to r/Funny:**\n\nYou may only post if you are funny. \n\nPlease No:\n\n* Politics - This includes OWS & SOPA posts.\n\n* Rage comics - Go to [/F7U12](http://www.reddit.com/r/fffffffuuuuuuuuuuuu) instead.\n\n* Memes - Go to [/AdviceAnimals](/r/adviceanimals) instead.\n\n* Pictures of just text - Make a self post instead.\n\nRehosted webcomics will be removed. Please submit a link to the original comic's site and preferably an imgur link in the comments. [(*)](http://www.reddit.com/r/funny/comments/kqwwx/we_need_to_talk_about_rehosting_wecomics/)\n\nBefore you submit a screenshot of a reddit thread *here*, you might want to check out [r/BestOf](http://www.reddit.com/r/bestof). \n\nNeed more? Check out:\n\n* [humor](http://www.reddit.com/r/humor) for more in-depth stuff\n* [jokes](/r/jokes)\n* [comics](/r/comics)\n* [punny](/r/punny)\n* [Very Punny](/r/verypunny)\n* [lolcats](/r/lolcats)\n* [lol](/r/lol)\n* [Facepalm](/r/facepalm)\n* [ReactionGifs](/r/reactiongifs)\n* [ShittyAskScience](/r/shittyaskscience)\n* [TrollingAnimals](/r/TrollingAnimals)\n* [Rage Novels](/r/ragenovels/)\n* [Demotivational](http://www.reddit.com/r/Demotivational)\n* **[misc](/r/misc/)** for anything else\n\nStill need more? See Reddit's [best / worst](http://www.reddit.com/r/AskReddit/comments/8ft5j/tell_me_your_best_worst_joke_reddit/?sort=top) and [offensive](http://www.reddit.com/r/funny/comments/7rxyh/collection_of_totally_offensive_jokes_not_for_the/?sort=top) joke collections (warning: some of those jokes are offensive / nsfw!). \n\n\n------\n\nPlease DO NOT post [personal information](http://www.reddit.com/help/faq#Ispostingpersonalinformationok). This includes anything hosted on Facebook's servers, as they can be traced to the original account holder.\n\n----\n\nIf your submission appears to be banned, please don't just delete it as that makes the filter hate you! Instead please [send us a message](/message/compose?to=%23funny) with a link to the post. We'll unban it and it should get better. please allow 10 minutes for the post to appear before messaging moderators\n\n----\n\nCSS - BritishEnglishPolice \u00a92011"}}, {"kind": "t5", "data": {"display_name": "politics", "name": "t5_2cneq", "title": "Politics", "url": "/r/politics/", "created": 1186377399.0, "created_utc": 1186377399.0, "over18": false, "subscribers": 949783, "id": "2cneq", "description": "----\n\n## **r/politics** is for U.S. politics and news only.\n\nFor non-U.S. politics and news please consider [r/Worldpolitics](/r/worldpolitics) or [r/Worldnews](/r/worldnews) ([N](/r/worldnews/new)). \n\n----\n\n**Please Do Not**:\n\n* Editorialize the titles of your link submissions or they may be removed. Your headline should match the article's headline as closely as possible, to avoid misrepresenting the gist or facts of the article. Note, the \"no editorializing\" rule does *not* apply to self-posts. For those, standard guidelines of reddiquette apply. \n\n* Self-Posts should not contain abusive language or be provocative with perceived intent to incite hatred. Such posts may be removed. \n\n* Use \"BREAKING\" in your titles. [(*)](http://www.reddit.com/r/worldnews/comments/g554j/breaking_news_a_solution/c1kz128) as they will be removed\n\n* Post [users' personal information](http://www.reddit.com/help/faq#Ispostingpersonalinformationok) [(*)](http://blog.reddit.com/2011/05/reddit-we-need-to-talk.html) as they will be removed \n\n* Submit images with little or no substance\n\n* Report a submission just because you don't like it. The report function is ***only*** for spam and inappropriate content. If you report something, please message the moderators as to the reason you feel it is inappropriate.\n\n* Use link shorteners or redirectors. \n\n----\n\nIf you think your submission has been autobanned, please [message the moderators](http://www.reddit.com/message/compose?to=%23politics)\n\n----\n\nOther related subreddits worth considering:\n\n* [r/2012 Elections](/r/2012Elections)\n* [r/AlltheLeft](/r/alltheleft)\n* [r/AmericansElect](/r/americanselect)\n* [r/Anarchism](/r/anarchism)\n* [r/AnarchistNews](/r/AnarchistNews)\n* [r/Anarcho_Capitalism](/r/Anarcho_Capitalism)\n* [r/AntiWar](/r/antiwar)\n* [r/AnythingGoesNews](/r/AnythingGoesNews)\n* [r/Bad_Cop_No_Donut](/r/Bad_Cop_No_Donut)\n* [r/Campaigns](/r/Campaigns)\n* [r/Centrist](/r/Centrist/)\n* [r/Communism](/r/communism)\n* [r/Democracy](/r/democracy)\n* [r/Democrats](/r/democrats)\n* [r/Demsocialist](/r/demsocialist)\n* [r/Economics](/r/Economics)\n* [r/Electionreform](/r/electionreform)\n* [r/EndlessWar](/r/EndlessWar)\n* [r/Environment](/r/environment)\n* [r/FirstAmendment](/r/firstamendment)\n* [r/Green](/r/green)\n* [r/Greenparty](/r/greenparty)\n* [r/Labor](/r/labor)\n* [r/Leninism](/r/leninism)\n* [r/Liberal](/r/liberal)\n* [r/Libertarian](/r/libertarian)\n* [r/LibertarianLeft](/r/libertarianleft)\n* [r/Liberty](/r/liberty)\n* [r/ModeratePolitics](/r/moderatepolitics)\n* [r/NeoProgs](/r/neoprogs)\n* [r/NewRight](/r/new_right)\n* [r/News](/r/news)\n* [r/Obama](/r/obama)\n* [r/OccupyWallStreet](/r/occupywallstreet) \n* [Open Source Democracy Foundation](/r/rpac)\n* [r/Peoplesparty](/r/peoplesparty)\n* [r/PoliticalDiscussion](/r/PoliticalDiscussion)\n* [r/Politicalhumor](/r/politicalhumor)\n* [r/Progressive](/r/progressive)\n* [r/Republican](/r/republican)\n* [r/Republicans](/r/republicans)\n* [r/RepublicOfPolitics](/r/RepublicOfPolitics)\n* [r/RonPaul](/r/RonPaul)\n* [r/RvBdebates](/r/RvBdebates)\n* [r/Socialism](/r/socialism)\n* [r/SocialDemocracy](/r/SocialDemocracy)\n* [r/SOPA](/r/SOPA)\n* [r/StateoftheUnion](/r/StateoftheUnion)\n* [r/USPolitics](/r/uspolitics)\n* [r/Wikileaks](/r/wikileaks)\n* [r/Worldevents](/r/Worldevents)\n* [r/Worldnews](/r/worldnews)\n* [r/Worldpolitics](/r/worldpolitics)\n* [r/politicsdebate](/r/politicsdebate)\n \n \n* **[All above combined](http://www.reddit.com/r/PoliticalDiscussion+Progressive+Democrats+Democracy+Republicans+Republican+Worldpolitics+Worldnews+Worldevents+StateoftheUnion+News+Media+USPolitics+2012Elections+Campaigns+Socialism+AntiWar+Demsocialist+Libertarian+RonPaul+Liberty+LibertarianLeft+Liberal+NeoProgs+Anarchism+AnarchistNews+FirstAmendment+Environment+Green+Obama+Politicalhumor+Conservative+rpac+Electionreform+Wikileaks+Greenparty+Anarcho_Capitalism+Centrist+ModeratePolitics+Peoplesparty+Labor+NewRight+IHateFoxNews+AlltheLeft+communism+Economics+Bad_Cop_No_Donut+RvBdebates+OccupyWallStreet+Leninism+EndlessWar+SOPA)**\n\n----\n\n##The moderators of /r/Politics reserve the right to moderate posts and comments at their discretion, with regard to their perception of the suitability of said posts and comments for this subreddit. Thank you for your understanding.\n\n----\n\nFollow us at [](http://twitter.com/reddit_politics)\n\n----"}}, {"kind": "t5", "data": {"display_name": "gaming", "name": "t5_2qh03", "title": "gaming.reddit: what's new in gaming", "url": "/r/gaming/", "created": 1190054605.0, "created_utc": 1190054605.0, "over18": false, "subscribers": 961265, "id": "2qh03", "description": "***\n\n**[REGARDING PIRACY AND /r/gaming](http://www.reddit.com/r/gaming/comments/m1pry/a_friendly_reminder_to_rgaming_talking_about/)**\n\n***\n\nA subreddit for anything related to games (but not [sports](http://www.reddit.com/r/sports)).\n\n# This Week In Gaming\n\n* **[December 10 - 17](http://www.reddit.com/r/gaming/comments/nge79/this_week_in_gaming_december_10_17_vgas_edition/)**\n\n# Other Gaming Subreddits\n\n* [/r/Games](http://www.reddit.com/r/Games/) - Informative content\n\n* [/r/gamernews](http://www.reddit.com/r/gamernews) - News only\n\n* [/r/truegaming](http://www.reddit.com/r/truegaming) - Discussions only\n\n* [Specific game subreddits and more](http://www.reddit.com/help/faqs/gaming)\n\n# Posting Rules\n\n* Following [Reddiquette](http://www.reddit.com/help/reddiquette) is encouraged\n\n* Spoilers can be posted using the following formatting: `[X Kills Y](/spoiler)`, ex: [X Kills Y](/spoiler)\n\n* *Report posts containing spoilers not using the above method*\n\n* **Don't post users' personal information.**\n\n# Submission Rules\n\n* Try to submit the source of the story/image \n\n* Do not spam your personal website. More info [here](http://www.reddit.com/help/faq#Whatconstitutesspam)\n\n* NSFW submissions must be labeled\n\n* Posts must contain gaming-related content in the link/post body, not just title\n\n* No \"general\" URL shorteners (bit.ly, tinyurl, etc)\n\n* Submissions that enable or have the intent to enable piracy and online gambling are not permitted and will result in a ban\n\nIs your post not showing up? **Do not delete it**, simply [message the moderators](http://www.reddit.com/message/compose?to=%23gaming) and ask us to let it through.\n\n# What's /r/gaming playing?\n\n\\#|Game|Users\n---:|:---|---:\n1|[The Elder Scrolls V: Skyrim](http://www.reddit.com/r/skyrim)|974\n2|[Battlefield 3](http://www.reddit.com/r/battlefield3)|591\n3|[Minecraft](http://www.reddit.com/r/minecraft)|395\n4|[StarCraft II: Wings of Liberty](http://www.reddit.com/r/starcraft)|342\n5|[Pokemon](http://www.reddit.com/r/pokemon)|295\n6|[Runescape](http://www.reddit.com/r/runescape)|286\n7|[League of Legends](http://www.reddit.com/r/leagueoflegends)|255\n8|[Team Fortress 2](http://www.reddit.com/r/tf2)|244\n9|[Call of Duty: Modern Warfare 3](http://www.reddit.com/r/mw3)|152\n10|[The Legend of Zelda: Skyward Sword](http://www.reddit.com/r/zelda)|124\n\n[Full statistics (2665 users, 641 games)](http://nowplaying.gamedifferences.com)\n\n**[Submit your list](http://www.reddit.com/message/compose/?to=GamingBot&subject=Now+Playing&message=Enter%20game%20names%20here,%20one%20per%20line,%20max%20of%205)** - [How To](http://www.reddit.com/r/gaming/comments/k7ylo/how_to_participate_in_the_whats_rgaming_playing/)\n\n1. **Hey! Listen!** /r/gaming is for *anything* related to gaming! Looking for more \"serious\" content? Try /r/Games!"}}, {"kind": "t5", "data": {"display_name": "AskReddit", "name": "t5_2qh1i", "title": "Ask Reddit...", "url": "/r/AskReddit/", "created": 1201233135.0, "created_utc": 1201233135.0, "over18": false, "subscribers": 1054553, "id": "2qh1i", "description": "Spoiler Code\n\n`[text here](/spoiler)` \n\nHover over to [read](/spoiler).\n\n----------\n\n* AskReddit is for thought-provoking, inspired questions.\n* Please use the search in the sidebar. Somebody may have already posted your question!\n* You are able to post self-posts only! (for other types of questions, see \"other reddits\" below\n* Please don't post poll-type questions.\n* No yes/no answer questions.\n* DAEs are yes/no answer questions. They don't belong on AskReddit.\n* If you see spam, report it!\n* **Posting other people's personal information will result in a ban.**\n* If you think your post has disappeared, **do not hesitate to contact one of the mods**, we're happy to help. \n* Please be aware this sub is not a substitute for real legal or medical help.\n* Soliciting for money is strongly discouraged. For this, please go to [/r/Assistance](/r/Assistance)\n\n> **Other reddits you may like**\n> \n> * [/r/answers](/r/answers)\n> * [Relationships](/r/relationships)\n> * [Ask Science](/r/askscience)\n> * [Self](/r/self)\n> * [/r/ExplainLikeI'mFive](/r/explainlikeimfive/)\n> * [IAmA](/r/iama)\n> * [IdeasForTheAdmins](/r/ideasfortheadmins)\n> * **[Does Anybody Else](/r/DoesAnybodyElse)**\n> * **[Favors](/r/favors)**\n> * [IWantToLearn](/r/IWantToLearn) \n> * [Techsupport](/r/techsupport)\n> * [Travel](/r/travel)\n> * [IRC](/r/irc)\n> * [TipOfMyTongue](/r/tipofmytongue)\n> * [YouShouldKnow](/r/youshouldknow)\n> * [Assistance](/r/assistance)\n> * [PoliticalDiscussion](/r/politicaldiscussion)\n> * [Assorted](/r/assorted)\n> * **[Misc](/r/misc/)**\n\n____________\n\n[Ever read the **reddiquette**? Take a peek!](http://www.reddit.com/help/reddiquette)\n\n--------------\n\n######[Join us in reddit IRC!](http://webchat.freenode.net/?channels=#reddit)"}}, {"kind": "t5", "data": {"display_name": "worldnews", "name": "t5_2qh13", "title": "World News [ no US / US Politics news please ]", "url": "/r/worldnews/", "created": 1201231119.0, "created_utc": 1201231119.0, "over18": false, "subscribers": 1036538, "id": "2qh13", "description": "##Please Note\n---\n\n**/r/Worldnews** is for major news from around the world **except** US-related news (especially US politics).\n\n---\n\nPlease **do not editorialise** the titles (especially Israel, Palestine or Middle-East news) or they may be deleted.\n\n---\n\nPlease use the following reddits for content related to these topics:\n\n* [/r/News](http://www.reddit.com/r/news/)\n* [/r/Politics](http://www.reddit.com/r/politics/) ([N](/r/politics/new))\n* [/r/PoliticalDiscussion](http://www.reddit.com/r/PoliticalDiscussion)\n* [/r/WorldPolitics](/r/WorldPolitics)\n* [/r/Israel](http://www.reddit.com/r/Israel/)\n* [/r/Palestine](http://www.reddit.com/r/Palestine/)\n* [/r/business](http://www.reddit.com/r/business/)\n* [/r/economics](http://www.reddit.com/r/Economics/)\n* [/r/environment](http://www.reddit.com/r/environment/)\n* [/r/afghanistan](http://www.reddit.com/r/afghanistan/)\n* [/r/WikiLeaks](/r/WikiLeaks)\n* [/r/MideastPeace](http://www.reddit.com/r/MideastPeace)\n* [/r/india](/r/india)\n\nContent that does not belong in /r/worldnews, and is more suited to those and other reddits, may be deleted from here.\n\n---\n\nPlease **DO NOT**\n\n* [Post personal information.](http://www.reddit.com/help/faq#Ispostingpersonalinformationok) [(*)](http://blog.reddit.com/2011/05/reddit-we-need-to-talk.html)\n* [Use the word **\"BREAKING\"** in your title.](http://www.reddit.com/help/reddiquette) [(*)](http://www.reddit.com/r/worldnews/comments/g554j/breaking_news_a_solution/c1kz128)\n\nSuch posts or comments will be removed and repeat offenders may be banned.\n\n---\n\nThe moderators of r/Worldnews reserve the right to moderate posts and comments at their discretion, with regard to their perception of the suitability of said posts and comments for this subreddit. Thank you for your understanding.\n\n---\n\nShout out:\n\n* [r/tldr](/r/tldr)\n* [Redditaddict](http://www.reddit.com/redditaddict/)\n* [r/Thankyou](/r/thankyou)\n* [r/NewsPorn](/r/NewsPorn)\n* [/r/democracy](/r/democracy)\n\n---\n\nFollow us at [](http://twitter.com/redditworldnews).\n\n---\n\nLogo courtesy of [Heckytorr](/user/Heckytorr)."}}, {"kind": "t5", "data": {"display_name": "videos", "name": "t5_2qh1e", "title": "Videos", "url": "/r/videos/", "created": 1201232236.0, "created_utc": 1201232236.0, "over18": false, "subscribers": 763349, "id": "2qh1e", "description": "A great place for video content of all kinds. Direct links to major video sites are preferred (e.g. YouTube, Vimeo, etc.)\n\n---\n\nPlease **[MESSAGE THE MODERATORS](http://www.reddit.com/message/compose?to=%23videos)** if your submission does not appear in the [new queue](http://www.reddit.com/r/videos/new/) (be sure to include a link to it).\n\n---\n\n**Rules**\n\n1. **NO POLITICS**. All political videos will be respectfully removed and should be resubmitted to [r/politics](http://www.reddit.com/r/politics), [r/worldpolitics](http://www.reddit.com/r/worldpolitics), etc.\n\n1. [**NO PERSONAL INFORMATION**](http://www.reddit.com/help/faq#Ispostingpersonalinformationok) such as Facebook pages, phone numbers, addresses, etc. This kind of stuff is *not cool* and will be removed.\n\n1. No blogspam. Please directly link to videos.\n\n1. No DAE posts.\n\n1. No porn. There are lots of other subreddits for that.\n\nPlease report spam, political or any other inappropriate videos, as this helps us remove them more quickly!\n\n---\n\n**Recommended subreddits**\n\n\n* Need more? Check out [/r/video](/r/video)\n\n* Wish you could channel surf through the best videos on reddit? Try [reddit.tv](http://reddit.tv)\n\n* Missed the best of Reddit yesterday? Catch the daily recap and best links at [/r/tldr](/r/tldr)\n\n* Bored of Reddit in the modern era? Check out [/r/RedditThroughHistory!](/r/RedditThroughHistory)\n\n###Anything related to Occupy Wall Street is considered political and will be removed (try [r/occupywallstreet](/r/occupywallstreet) instead)\n\n"}}, {"kind": "t5", "data": {"display_name": "IAmA", "name": "t5_2qzb6", "title": "I Am A, where the mundane becomes fascinating and the outrageous suddenly seems normal.", "url": "/r/IAmA/", "created": 1243468565.0, "created_utc": 1243468565.0, "over18": false, "subscribers": 794137, "id": "2qzb6", "description": "IAmA = \"I am a\"\n\nAMA = \"Ask me anything\"\n\nAMAA = \"Ask me almost anything\"\n\n# Upcoming IAmAs\n\n* **Thurs, December 22th, 9AM EST:** M.D. verified case of a mother-son incestuous relationship.\n\n# Verification System\n\n* Provide proof of your identity **in the body of your post** when you submit your IAmA\n\n* If your identity is absolutely confidential, you may [message proof to the mods](http://www.reddit.com/message/compose?to=%23IAmA)\n\n* If your post is suspected fake and you do not verify proof, it may be subject to removal\n\n# IAmAs Should Focus On:\n\n* Something uncommon that plays a central role in your life -or-\n\n* A truly interesting and unique event (Ex: I climbed Mt. Everest)\n\n# IAmAs Should NOT Be About:\n\n* Something previously posted multiple times, or common topics\n\n* Your day, your girlfriend, you being bored or drunk, etc.\n\n* Most weight loss stories can be posted to [/r/loseit](http://reddit.com/r/loseit).\n\n* Location based AMAs go to [/r/ILiveIn](http://reddit.com/r/ILiveIn).\n\n* Need sympathy or support? Check out [/r/Mmfb](http://www.reddit.com/r/mmfb).\n\n# IAmA Request Guidelines\n\n* The requested IAmA must meet the IAmA guidelines. If you request an IAmA that wouldn't be allowed, then the request will be removed.\n\n* You must come up with 5 questions that are specifically related to the topic. Those 5 questions cannot be general questions that anyone could answer, like \"what's your favorite color?\". Those five questions must be posted in the text of the post. If not, it will be removed.\n\n* **Serious requests only**\n\n* Reasonable requests, no \"IAmA Request: Obama!\"\n\n* Submit celebrity requests only if there is reason to believe they would do it, and post that in your request\n\n* **Search first!** Duplicate requests will be subject to removal\n\n# General Rules/Info\n\n* Obvious nonsense will be removed - this is up to the discretion of the moderators.\n\n* Asking for money for yourself will get you banned.\n\n* Comments using url shorteners will be removed.\n\n* Please don't submit an AMA just to \"see if there's interest.\" Simply post the AMA and find out.\n\n* [Celebrity IAmA Archive](http://www.reddit.com/r/IAMAFamousArchive/)\n\n* [Previous IAmA Sidebar](http://www.reddit.com/r/IAmA/comments/jx6b3/changes_to_riamas_rules/c2k513z)\n\n* **[More information regarding /r/IAmA](http://www.reddit.com/r/IAmA/comments/jx6b3/changes_to_riamas_rules/)**\n\n[](http://webchat.freenode.net/?channels=#reddit-iama)\nServer: **irc.freenode.net** Room: **#reddit-iama**\n\n1. **Notice: [Update to IAmA Request Rules](http://www.reddit.com/r/IAmA/comments/n591w/new_rules_for_submitting_iama_requests_requests/)** - Please Read"}}, {"kind": "t5", "data": {"display_name": "todayilearned", "name": "t5_2qqjc", "title": "Today I Learned (TIL)", "url": "/r/todayilearned/", "created": 1230446819.0, "created_utc": 1230446819.0, "over18": false, "subscribers": 821121, "id": "2qqjc", "description": "You learn something new every day; what did *you* learn today?\n\n\nSubmit interesting and **specific facts** that you just found out (not broad information you looked up, TodayILearned is not [/r/wikipedia](/r/wikipedia)).\n\n**PLEASE READ THE RULES BELOW BEFORE POSTING**\n\n---\n\n**Posting rules**\n\n1. *Submissions* must be verifiable*. Please link directly to a source that supports the claim in your post title.* Images alone do not count *as valid references.*\n\n1. No personal opinions, *anecdotes or subjective statements (e.g \"TIL xyz is a great movie\").*\n\n1. No news or politics*. Posts about things which recently made the news (in the last 2 months) belong on a different subreddit. Historical politics are fine, but anything relating to recent elections or current politics is not allowed.*\n\n1. No misleading claims*. Posts that omit essential information, or present unrelated facts in a way that suggest a connection, will be removed.*\n\n1. *Pay attention to your post titles and rephrase them if the following are not met:*\n 1. *Titles must begin with \"TIL ...\"*\n 1. *Make them descriptive, concise and specific (e.g.* not *\"TIL something interesting about bacon\").*\n 1. *Titles* must be able to stand on their own *without requiring readers to click on a link. Starting your title with a why/what/who/where/how modifier should be unnecessary.*\n 1. *\"TIL about ...\" and other broad posts don't belong on TIL. Try [r/wikipedia](/r/Wikipedia), etc. instead, or be more specific (and avoid the word \"about\").*\n 1. *\"TIL how to ...\" posts belong on [/r/HowTo](/r/howto).*\n1. *No trivial or obvious facts (e.g. \"TIL the sky is blue\"), or facts that appeal only to a narrow audience, specifically* no software/website tips *(e.g. \"TIL you can click on widgets in WidgetMaker 1.22\").*\n\n\nIt would also be appreciated if you add [PDF] or [NSFW] tags to your posts, as necessary.\n\n[(*Why all the rules?*)](http://www.reddit.com/help/faq#WhydoesredditneedmoderationCantyoujustletthevotersdecide)\n\n---\n\n**Additional info**\n\nIf your post does not appear in the [new queue](http://www.reddit.com/r/todayilearned/new/), then it has either been removed by a moderator or accidentally caught in the spam filter. If you think it meets the above rules, please **[contact the moderators](http://www.reddit.com/message/compose?to=%23todayilearned)** (be sure to include a link to your *reddit.com* post, not your story).\n\nPlease report spam, inaccurate or otherwise inappropriate posts by [messaging the moderators](http://www.reddit.com/message/compose?to=%23todayilearned)), as this helps us remove them more quickly!\n\nBe sure to [check out the FAQ](http://www.reddit.com/help/faqs/todayilearned).\n\n**PLEASE [MESSAGE THE MODS](http://www.reddit.com/message/compose?to=%23todayilearned) INSTEAD OF USING THE REPORT BUTTON**\n\n---\n\n**Recommended subreddits**\n\n Learn something new every day on [/r/RedditDayOf](http://www.reddit.com/r/RedditDayOf/) \n \n Share what you think should be common knowledge on [/r/YouShouldKnow](/r/YouShouldKnow)\n \n---\n\n**Talk with us on IRC**: #todayIlearned on irc.freenode.org, or just [click here](http://webchat.freenode.net?channels=todayilearned&ulo=d4/).\n"}}, {"kind": "t5", "data": {"display_name": "WTF", "name": "t5_2qh61", "title": "WTF?!", "url": "/r/WTF/", "created": 1201268659.0, "created_utc": 1201268659.0, "over18": false, "subscribers": 822191, "id": "2qh61", "description": "**All (& only) things that make you say WTF (except [politics](/r/politics)).**[*](http://www.reddit.com/r/WTF/comments/eysc5/do_not_post_any_politics_to_rwtf_period_no/)\n\n----\n\n**ALL** NSFW posts must be tagged as such or **WILL** be removed\n\n----\nThanks to [licenseplate](http://www.reddit.com/r/pics/comments/blmey/) for the excellent logo\n\n----\nThanks to [humansmartbomb](http://www.reddit.com/r/WTF/comments/aist7/hey_reddit_im_the_guy_who_drew_that_pic_of_his/) for the [previous logo](http://i.imgur.com/9FJEJh.jpg)\n\n----\nPlease **DO NOT** post [personal information](http://blog.reddit.com/2011/05/reddit-we-need-to-talk.html) \n\nSuch posts or comments will be removed and [offenders may be banned](http://www.reddit.com/help/faq#Ispostingpersonalinformationok)\n\n----\nShout Outs:\n\n[/r/weird](http://www.reddit.com/r/weird)\n\n[/r/creepy](/r/creepy) \n\n[/r/offbeat](/r/offbeat)\n\n[/r/WTFart](/r/WTFart)\n\n[/r/NSFW_WTF](/r/NSFW_WTF)\n\n[/r/BugWars](/r/BugWars) "}}, {"kind": "t5", "data": {"display_name": "aww", "name": "t5_2qh1o", "title": "TheCuteList.com - The 24-7 competition for the cutest things on the Internet", "url": "/r/aww/", "created": 1201234022.0, "created_utc": 1201234022.0, "over18": false, "subscribers": 288645, "id": "2qh1o", "description": "We wish to most humbly request users to not pictures of pets who are going to be put down/recently passed away etc here. We had a recent vote on the topic and most users would prefer such posts go in /r/baww, /r/petloss or other reddits. [Click here for more details](http://www.reddit.com/r/aww/comments/ncn6v/a_rather_awkward_question_for_users_of_raww/)\n\nThings that make you go AWW. Like puppies. And bunnies... and so on...\n\n\n**Related reddits**\n\n* [r/lolcats](http://www.reddit.com/r/lolcats) <- Please keep captioned pictures here!\n* [r/catpictures](http://www.reddit.com/r/catpictures)\n* [r/dogpictures](http://www.reddit.com/r/dogpictures/)\n\n*Please report spammy or offensive posts and comments.*\n"}}, {"kind": "t5", "data": {"display_name": "atheism", "name": "t5_2qh2p", "title": "atheism", "url": "/r/atheism/", "created": 1201241711.0, "created_utc": 1201241711.0, "over18": false, "subscribers": 340220, "id": "2qh2p", "description": "[](http://www.firstgiving.com/fundraiser/r-atheism/ratheism)\n\n__________________________________________________\n\n[Fundraiser Feedback](http://www.reddit.com/r/atheism/comments/nlv5p/2012_ratheism_donation_drive_call_for_ideas/)\n\n---------------------------------------------------\n\n**Welcome** to r/atheism, the web's largest atheist forum. All topics related to atheism, agnosticism and secular living are welcome here. \n\n[**FAQ**](/help/faqs/atheism)\n\n[Recommended reading](http://www.reddit.com/help/faqs/atheism#RecommendedReading) and [viewing](/help/faqs/atheism#RecommendedViewing)\n\n[Submit a link](/r/atheism/submit)\n\n[The /new page](/r/atheism/new?sort=new)\n\n[Thank you notes](http://www.reddit.com/r/atheism/search?q=thank+you+r%2Fatheism&restrict_sr=on&sort=relevance)\n__________________________________________________\n**Related Subreddits** \n[**ALL** THE ATHEIST SUBREDDITS!](/r/atheism/comments/gex0k/almost_all_the_atheism_related_subreddits/) \n[All the religious subreddits?](http://redditdirectory.com/133/Religion) \n\n[Debate an Atheist](/r/DebateAnAtheist) * [Gems](/r/atheistgems) * [Black Atheism](/r/blackatheism) \n[a6theism10](/r/aaaaaatheismmmmmmmmmm) * [Religion on Facebook](/r/TheFacebookDelusion) \n[r/freethought](/r/Freethought) * [r/skeptic](/r/skeptic) * [r/humanism](/r/humanism/)\n__________________________________________________\nSupport-Groups \n* [ex-Mormon](/r/exmormon) * [ex-Catholic](/r/excatholic) * [ex-Muslim](/r/exmuslim) * [ex-JW](/r/exjw) \n\nAssistance \n* [Coming Out](/r/AtheismComingOut) * [Atheist Havens](http://www.reddit.com/r/atheisthavens) \n_________________________________________________\nChat: [#reddit-atheism](http://webchat.freenode.net/?channels=#reddit-atheism) on irc.freenode.net \n\nWatch: [#/r/atheism](http://reddit.tv/#/r/atheism) on reddit.tv\n\n[Read The FAQ](http://www.reddit.com/r/atheism/faq)\n\n"}}, {"kind": "t5", "data": {"display_name": "technology", "name": "t5_2qh16", "title": "Technology ", "url": "/r/technology/", "created": 1201231675.0, "created_utc": 1201231675.0, "over18": false, "subscribers": 553350, "id": "2qh16", "description": "**/r/Technology** is for posts concerning the wide and diverse world of technology, except for items that more properly belong in the following subreddits:\n\n* [r/Programming](http://www.reddit.com/r/programming)\n* [r/CompSci](http://www.reddit.com/r/compsci)\n* [r/Gadgets](http://www.reddit.com/r/gadgets)\n* [r/Apple](http://www.reddit.com/r/Apple)\n* [r/Linux](http://www.reddit.com/r/Linux)\n* [r/Android](http://www.reddit.com/r/Android)\n* [r/Microsoft](http://www.reddit.com/r/Microsoft)\n* [r/Windows](http://www.reddit.com/r/windows)\n* [r/Google](http://www.reddit.com/r/Google)\n* [r/Hardware](http://www.reddit.com/r/hardware)\n* [r/Computing](http://www.reddit.com/r/computing)\n* [r/Software](http://www.reddit.com/r/software)\n* [r/Firefox](http://www.reddit.com/r/Firefox)\n* [r/Chrome](http://www.reddit.com/r/chrome)\n* [r/Pics](http://www.reddit.com/r/pics) - Pics go here\n* [r/AskReddit](http://www.reddit.com/r/AskReddit) - Weird or odd questions go here\n* [r/DAE](http://www.reddit.com/r/DoesAnybodyElse) - Other weird questions\n* [r/screenshots](/r/screenshots) - Post any screenshot posts here.\n\n\nContent that does not belong in /r/Technology, and is more suited to those and other subreddits, may be removed from here.\n\n##Please try and avoid editorializing the titles or they **may be removed**.\n\n----\n\nGood places to address tech support type questions are:\n\n* [r/BuildaPC](http://www.reddit.com/r/buildapc)\n* [r/24HoursSupport](http://www.reddit.com/r/24hoursupport/)\n* [r/TechSupport](http://www.reddit.com/r/techsupport)\n* [r/AppleHelp](http://www.reddit.com/r/applehelp)\n* [r/Linux4Noobs](http://www.reddit.com/r/linux4noobs)\n\nFor questions specific to help with reddit, please try **[r/Help](http://www.reddit.com/r/Help)**. \n\n----\nSome other interesting technology related subreddits include, which mods might not remove are:\n\n* [r/NetSec](http://www.reddit.com/r/netsec)\n* [r/CyberLaws](http://www.reddit.com/r/cyberlaws)\n* [r/ipv6](http://www.reddit.com/r/ipv6)\n* [r/RenewableEnergy](http://www.reddit.com/r/renewableenergy)\n* [r/Engineering](http://www.reddit.com/r/engineering/)\n* [r/AI](http://www.reddit.com/r/artificial)\n* [r/CHI](/r/CHI) - Computer-Human Interaction\n* [r/recs](/r/recs) - Recommendations welcome.\n\n----\n\nThe moderators of **/r/Technology** reserve the right to moderate posts and comments at their discretion, with regard to their perception of the suitability of said posts and comments for this subreddit. Thank you for your understanding.\n\n****\n\n**DO NOT:**\n\n* [Post personal information.](http://www.reddit.com/help/faq#Ispostingpersonalinformationok) [(*)](http://blog.reddit.com/2011/05/reddit-we-need-to-talk.html)\n* [Use the word **\"BREAKING\"** in your title.](http://www.reddit.com/help/reddiquette) [(*)](http://www.reddit.com/r/worldnews/comments/g554j/breaking_news_a_solution/c1kz128)\n\nSuch posts or comments will be removed and repeat offenders may be banned.\n\n----\n\nOther nice places include:\n\n* [Visit reddit nonprofit](/r/nonprofit)\n* [r/ThankYou](/r/ThankYou)\n* [r/TL:DR](http://www.reddit.com/r/tldr)\n* [Team reddit](http://fah-web.stanford.edu/cgi-bin/main.py?qtype=teampage&teamnum=50959) on [folding@home](http://folding.stanford.edu/)\n* [r/Science](/r/Science)\n\n***\nFollow us at [](http://twitter.com/reddittech).\n"}}, {"kind": "t5", "data": {"display_name": "science", "name": "t5_mouw", "title": "science", "url": "/r/science/", "created": 1161179666.0, "created_utc": 1161179666.0, "over18": false, "subscribers": 795609, "id": "mouw", "description": "\n---\n\nPlease keep topics such as religion, drug debate and politics to their respective subreddits. Peer-reviewed and neutral scientific research on these topics is welcome.\n\n* /r/science is for recent scientific research, science news and discoveries, reviews, or critical responses to studies. All content should be within the past 6 (or so) months. \n\n* Submitted content should be a direct link to: the study itself, the researchers' or universities' summary, a peer-reviewed article or a direct summary (e.g., BBC, physorg, sciencedaily) of the research. Summaries of summaries are not allowed.\n\n* Submitted content should include links to the research (e.g., direct link to author, journal or DOI). If one is not provided in the article, submitters are encouraged to include links to the original, peer reviewed sources in the comments. This allows interested redditors with expertise to fact check the summary.\n\n* Biased material will be removed.\n\n* Editorialized or biased headlines will be politely requested to resubmit.\n\n* No blogspam, images or infographics.\n\n* Don't re-submit breaking stories that have already been submitted from different sources. If you have an alternative submission, please submit it as a comment to one of the current submissions.\n\n* Submissions on topics such as, science education, science policy, educational videos, will be considered by relevance and quality, but should go to more specialized subreddits. \n\n* If you feel your submission was mistakenly caught by the spam filter or removed, message the moderators. **Please include a permalink to your submission**.\n\n* If you feel a submission does not belong, use the report button.\n\n* Comment moderation is lax, but if a comment is factually inaccurate, hateful, offensive, spam or otherwise unacceptable, please use the report button.\n\n---\n\n[Check Out The Brand New Science-based Subreddits](http://www.reddit.com/r/ScienceNetwork/comments/l8upi/new_and_small_sciencebased_subreddits/)!\n\n---\n\nScience | based | subreddits:\n:-----------:|:------------:|:------------:\n [Physics](http://www.reddit.com/r/ScienceNetwork/comments/l8u25/physics/) | [Chemistry](http://www.reddit.com/r/ScienceNetwork/comments/l8u1p/chemistry/) | [Biology](http://www.reddit.com/r/ScienceNetwork/comments/l8u16/biology/)\n [Psych/Cog/Neuro](http://www.reddit.com/r/ScienceNetwork/comments/l8u2y/psychcogneuro/) | [Earth Sciences](http://www.reddit.com/r/ScienceNetwork/comments/l8twy/earth_sciences/) | [The Softer Side](http://www.reddit.com/r/ScienceNetwork/comments/l8tzz/the_softer_side_of_science/)\n [Applied Sciences](http://www.reddit.com/r/ScienceNetwork/comments/l8tz7/applied_sciences/) | [Formal Sciences](http://www.reddit.com/r/ScienceNetwork/comments/l8tyb/formal_sciences/) | [Social Sciences](http://www.reddit.com/r/ScienceNetwork/comments/l8txf/social_sciences/)\n \n---\n\n### We've updated our guidelines. Check the sidebar for our updates. Also, help expand [ScienceNetwork](/r/ScienceNetwork), a hub for all science-based subreddits!"}}, {"kind": "t5", "data": {"display_name": "Music", "name": "t5_2qh1u", "title": "Music", "url": "/r/Music/", "created": 1201235432.0, "created_utc": 1201235432.0, "over18": false, "subscribers": 378456, "id": "2qh1u", "description": ">Menu\n\n>* Info\n* [Rules](/r/Music/faq#SubmissionRules)\n* [FAQ](/r/Music/faq#rMusicFAQ)\n* [MSotW](/r/Music/faq#MusicSubredditoftheWeek)\n\n>#\n\n>* Music Subreddits\n* /r/ListenToThis\n* /r/WeAreTheMusicMakers\n* /r/RadioReddit\n* /r/Dubstep\n* /r/Guitar\n* /r/ElectronicMusic\n* /r/Metal\n* /r/HipHopHeads\n* /r/ClassicalMusic\n* /r/Trance\n* /r/DnB\n* /r/Jazz\n* /r/Mashups\n* [Full List of Music Subreddits](/r/Music/faq)\n\n>#\n\n>* Social\n* [Chatroom](http://webchat.freenode.net/?channels=#reddit-music)\n* [Last.fm group](http://last.fm/group/Reddit)\n* [Twitter](http://twitter.com/redditMusic)\n\n>#\n\n>* \\/r/Music Playlists\n* [reddit.tv](http://www.reddit.tv/#/r/music)\n* [redditunes](http://www.redditunes.com/?r=music)\n* [redditplayer](http://redditplayer.phoenixforgotten.com/?r=music)\n* [scrolldit](http://www.scrolldit.com/?r=Music)\n* [Best Albums of 2011](http://open.spotify.com/user/orneryoctopus/playlist/0KCSd0pbxMqtPfJ2TcQkBe)\n\n###Want to see more links you like? Visit the [New Queue](/r/music/new?sort=new) and start voting!\n\n[](http://www.reddit.com/r/Music/help/faqs/Music)\n\n***\n\n####News\n\n* [Vote for the Top Albums of 2011](/n0tqc)\n* [MSotW #8 - /r/WorldMusic](/nk1xi)\n ([Previous MSotWs here](/r/music/faq#MusicSubredditoftheWeek))\n* [Last.fm user flair!](/lmzjp) (NEW: **Black** theme!) \n\n***\n\n####Guidelines\n\n[](/r/Music/help/faqs/Music#rMusicFAQ) \n\n* Made a tune? Have a band? See [here](http://www.reddit.com/r/Music/comments/lsey3/find_subreddits_for_redditormade_music_promote/) before posting.\n\n* Avoid generic titles (\"Best song ever!\")\n* Artist - Title [genre] description\n* Use youtube.com instead of youtu.be so it gets embedded correctly\n* Please post images to [/r/MusicPics](/r/MusicPics)\n* [Almighty List of Music subreddits](/r/Music/help/faqs/Music)\n* [Reddit Comment Formatting](/cw70q)\n* [Reddiquette](/help/reddiquette)\n* Please report *only* [spam](http://code.reddit.com/wiki/help/faq#Whatconstitutesspam)\n\n\n\n[](http://webchat.freenode.net/?channels=#reddit-music \"Chatroom\")\n[](http://twitter.com/redditMusic \"Top /r/Music links via twitter\")\n[](http://redditplayer.phoenixforgotten.com/ \"Subreddit playlister\")\n[](http://www.reddit.tv/#/r/music \"/r/Music Television\")\n[](http://last.fm/group/Reddit \"/r/Music Last.fm group\")\n[](http://last.fm/group/Metal+redditors \"/r/Metal Last.fm group\")\n\n***\n\n####Friends\n\n[](/r/WeAreTheMusicMakers \"Music composition, production and theory\")\n\n[](/r/ListenToThis \"Bringing the often unheard and neglected to new ears.\")\n\n[](/r/RadioReddit \"Original music by redditors\")\n\n | | \n:---:|:---:|:---:\n[Dubstep](/r/dubstep)|[Guitar](/r/Guitar)|[Electronic](/r/electronicmusic)\n[Metal](/r/Metal)|[HipHopHeads](/r/hiphopheads)|[Classical](/r/Classicalmusic)\n[Trance](/r/trance)|[DnB](/r/dnb)|[Jazz](/r/jazz)\n[Mashups](/r/mashups)|[Vinyl](/r/vinyl)|[Music Theory](/r/musictheory)\n[IfYouLikeBlank](/r/ifyoulikeblank)|[Radiohead](/r/radiohead)|[ElectroHouse](/r/electrohouse)\n[GrooveShark](/r/groovesharkPlaylists)|[Game Music](/r/gamemusic)|[Learn Music](/r/learnmusic)\n[GuitarLessons](/r/guitarlessons)|[Punk](/r/punk)|[Tree Music](/r/treemusic)\n[Cover Songs](/r/coversongs)|[Bass](/r/Bass)|[**EVEN MORE!**](/r/Music/help/faqs/Music)"}}, {"kind": "t5", "data": {"display_name": "askscience", "name": "t5_2qm4e", "title": "AskScience: Ask Questions. Get Answers. Discuss Science.", "url": "/r/askscience/", "created": 1220599964.0, "created_utc": 1220599964.0, "over18": false, "subscribers": 276558, "id": "2qm4e", "description": "Welcome to r/AskScience! Check out our **[new](/r/askscience/new)** posts. \n\n**The goal of this forum is the promotion of scientific literacy by disseminating knowledge of the scientific process and its results through answering science questions.** Please consider the following guidelines to help us maintain this goal.\n\n * **[read our updated and expanded guidelines](http://www.reddit.com/help/faqs/AskScience)**\n * Please keep discussion civil. Name calling, insults, racism, sexism, etc. will not be tolerated.\n * Keep discussion on topic and focused on answering questions scientifically.\n * Personal anecdotes and layman answers are not acceptable posts.\n * Medical advice is always off-topic and inappropriate. Please consult with a doctor regarding issues of health. Please do not ask for, listen to, or offer diagnoses, treatment advice, or personal medical opinions.\n * Google *site:reddit.com/r/askscience* ***search terms***\n * If you post a video, many of us can't watch it at work, or don't have the time. ***Please provide a summary of it.***\n\n---\n\nThe [***AskScience Fair***](http://www.reddit.com/r/askscience/comments/lf2dz/introducing_the_first_askscience_fair/) is underway! More info at [/r/AskScienceFair](http://www.reddit.com/r/asksciencefair).\n\nFor questions pertaining to your project, or ideas on what to do, check out [/r/AskScienceFairHelp](http://www.reddit.com/r/asksciencefairhelp)\n\n---\n\nAdd us on [***Facebook***](http://www.facebook.com/pages/rAskScience/128802790545333?sk=wall) or [***Google+***](https://plus.google.com/117310850002483290031/about) or [***Twitter***](https://twitter.com/#!/RedditAskScienc) to get the best threads each day delivered directly to you!\n\n---\nLearn more about our panelists at [/r/AskScienceAMA](/r/AskScienceAMA).\n\n***Check out [/r/sciencefaqs](/r/sciencefaqs)!*** Look to see if your question's been asked; if you see a question that's been discussed often, post it to sciencefaqs!\n\nSign up to **join the panel** [in the official panelist thread](http://www.reddit.com/r/askscience/comments/jwibi/askscience_panel_of_scientists_iv/)\n\n---\n\nWant to ask questions about the **practice of science** or **what to study**?? [AskAcademia!](/r/AskAcademia)\n\nNeed help with **experiments** or equipment? [AskSciTech!](/r/AskSciTech)\n\nHave an **electronic engineering** question? [AskElectronics!](/r/AskElectronics/)\n\nAre you curious about **engineering**? [AskEngineers!](/r/AskEngineers)\n\nTo ask if a finding is significant (or other **statistical queries**), [AskStatistics!](/r/AskStatistics)\n\nIf you have a **history question**, [AskHistorians!](/r/AskHistorians)\n\nNeed to find a **scholarly paper**? [/r/scholar](/r/scholar)\n\nWhat's this **bug**? [whatsthisbug?](http://www.reddit.com/r/whatsthisbug/)\n\nNeed help with **homework**? [/r/homeworkhelp/](/r/homeworkhelp/)\n\nHave a **philosophy** question? [/r/AskPhilosophy/](/r/AskPhilosophy/)\n\n---\n\n#Legend \n\n\n[Physics](//#Physics)\n\n[Astronomy/Cosmology](//#Astro)\n\n[Earth Sciences](//#Geo)\n\n[Chemistry](//#Chem)\n\n[Biology](//#Bio)\n\n[Medicine](//#Med)\n\n[Neuroscience](//#Neuro)\n\n[Psychology](//#Psych)\n\n[Soc./Poli-Sci/Econ./Arch./Anthro.](//#Soc)\n\n[Engineering](//#Eng)\n\n[Computing](//#Computing)\n\n[Mathematics](//#Maths)\n\n\n\n---\n\nAlmost every science you can think of has a subreddit! [Check out this list!](/r/physics+biology+chemistry+astronomy+space+psychology+geology+quantum+sociology+math+anthropology+neuro+geospatial+particlephysics+climate+nanotech+regenerativemedicine+environmental_science+entomology+astrobiology+astrophysics+strings+scientific+scientists+scholar+archaeology+science+hardscience+softscience+BehavioralEconomics+AcademicEconomics+EconPapers+microbiology)\n\n\n### [Our official Higgs Thread!](http://www.reddit.com/r/askscience/comments/naxmk/the_everything_you_need_to_know_about_the_higgs/) and [Please read our guidelines](http://www.reddit.com/help/faqs/AskScience) "}}, {"kind": "t5", "data": {"display_name": "movies", "name": "t5_2qh3s", "title": "movies", "url": "/r/movies/", "created": 1201243950.0, "created_utc": 1201243950.0, "over18": false, "subscribers": 223539, "id": "2qh3s", "description": "The place on reddit for movie buffs!\n\n**POSTING GUIDELINES:**\n\n* If you are making a submission about a specific movie or actor, please name them in your title!! That means no submissions with titles like \"This movie!\" Submissions like this may be deleted.\n* Try to avoid flame wars over popular movies: we've all had the \"<cult classic> is overrated\" argument. Similarly, please realize that most people have seen the best movies; e.g. if this is your first time watching [Star Wars](/r/starwars), don't post \"Has anyone seen this amazing sci-fi movie?\"\n\n------------\n\n**See Also:**\n\n* [**A Huge list of movie related subreddits!**](http://www.reddit.com/r/movies/comments/kfdro/here_is_a_list_of_related_movie_subreddits_if_you/)\n\n---------\n\nBefore making a \"reddit's favorite movie\" thread, check out [*reddit's top 250 movies*](http://www.icheckmovies.com/list/reddit+top+250/) first!\n\n-----\n\n\nTo use spoilers (for leaked info about upcoming movies, twist endings, or anything else spoileresque), use the following method: \\[Darth Vader is Yoda's father](/spoiler)"}}, {"kind": "t5", "data": {"display_name": "bestof", "name": "t5_2qh3v", "title": "best of reddit", "url": "/r/bestof/", "created": 1201243996.0, "created_utc": 1201243996.0, "over18": false, "subscribers": 239400, "id": "2qh3v", "description": "A subreddit to highlight the best comments and events on reddit! **Links from the reddit.com domain only, please!**\n\nDo *not* put the punchline in the title!!!\n\nHint: if the comment you're linking to requires some context, just add \"?context=x\" to the URL, where \"x\" is the number of previous comments you want displayed.\n\nYou might also enjoy these fine subreddits:\n\n- [worstof](http://www.reddit.com/r/worstof)\n- [saddestof](http://www.reddit.com/r/saddestof)\n- [Thank you!](/r/Thankyou) - Thank your favorite redditors!\n- [tldr](http://www.reddit.com/r/tldr/) - Get the best of reddit, in a convenient daily digest!\n- [reddit stories](http://www.reddit.com/r/redditstories/) - A collection of the great stories that redditors have shared!\n- [admin](/r/admin) - bestof for the reddit admins!\n- [bestfrom](/r/bestfrom) - the best comments from outside reddit"}}, {"kind": "t5", "data": {"display_name": "fffffffuuuuuuuuuuuu", "name": "t5_2qqlo", "title": "FFFFFFFUUUUUUUUUUUU-", "url": "/r/fffffffuuuuuuuuuuuu/", "created": 1230564469.0, "created_utc": 1230564469.0, "over18": false, "subscribers": 333541, "id": "2qqlo", "description": "###### [DON'T MESSAGE US ABOUT YOUR SPAMMED COMICS!](http://www.reddit.com/r/fffffffuuuuuuuuuuuu/comments/nml8p/please_wait_a_few_minutes_before_submitting/)\n\nA subreddit for creating and sharing rage comics.\n \n-----\n \n**Important Links**\n\n * [The Rage Maker](http://www.ragemaker.net)\n\n * [Complete Collection of Rage Faces](http://www.ragemaker.net/images)\n\n * [History of Rage Face Origins](http://www.reddit.com/r/fffffffuuuuuuuuuuuu/comments/d38tq/im_bored_at_work_and_i_want_to_make_an/)\n\n * [Background Image Source](http://www.reddit.com/r/fffffffuuuuuuuuuuuu/comments/njzfb/it_was_gone_afterwards/)\n\n * [The Rage Family of Subreddits](http://www.reddit.com/r/metarage/comments/k0pt2/list_of_rage_subreddits/)\n\n-----\n\n**Ground rules (click for explanation)**\n \n* [Don't submit things that aren't rage comics.](http://www.reddit.com/r/metarage/comments/n1mh2/1_dont_submit_things_that_arent_rage_comics/)\n\n* [If your comic is a joke you heard from your buddy last night, this isn't the place.](http://www.reddit.com/r/metarage/comments/n2nl5/2_if_your_comic_is_a_joke_you_heard_from_your/)\n\n* Reposts are strictly forbidden. If you didn't make it, don't post it. Do not submit a comic again because it did not do well.\n\n* Use the [NSFW] tag generously.\n\n* [This is not a soapbox for your opinionated rants.](http://www.reddit.com/r/metarage/comments/n2nnb/4_this_is_not_a_soapbox_for_your_opinionated_rants/)\n\n* This is not a stand-in for LiveJournal or a place to talk about your day.\n\n* Moderators are allowed to make self posts.\n\n* Don't ask for upvotes, or hand-outs.\n\n* Don't make comics that complain about other posts.\n\n-----\n \n**Why isn't my comic on the \"new\" tab?**\n \nGive it a second. It was probably caught by the evil robotic spam filter, but we've created an even more powerful robot to save everything from the filter; it just can take a couple minutes. If it still doesn't work, [send the mods](/message/compose?to=%23fffffffuuuuuuuuuuuu) a link to the comment thread of the post to have it approved.\n\n-----\n\n**More Links**\n\n* [Using Comment Faces](http://www.reddit.com/r/metarage/comments/iy2fj/rage_comment_faces_a_guide/)\n* [List of Rage Face Comment Codes](http://www.reddit.com/r/metarage/comments/iy2ib/current_list_of_comment_face_codes/c27yflc)\n* [See Alt-Text Without Hover](http://userscripts.org/scripts/show/83979)\n* Comment Faces on All of Reddit: [[Chrome]](https://chrome.google.com/webstore/detail/ajjgiajaoafimgkdlcofflenackmpjhd) [[Opera]](https://addons.opera.com/addons/extensions/details/f7u12-faces-in-all-of-reddit/1.0/?display=en)\n* [Stylesheets and faces on Github](https://github.com/F7U12-subreddit/CSS)\n* [Rage store - Coupon code f7u12ck for 10% off!](http://www.youjel.ly/)"}}, {"kind": "t5", "data": {"display_name": "trees", "name": "t5_2r9vp", "title": "\u2191rees \u221e Honest Cannabis Education Forum \u221e Truth, Confidence, Fun, Freedom, Marijuana / pot & drugs", "url": "/r/trees/", "created": 1255621870.0, "created_utc": 1255621870.0, "over18": false, "subscribers": 159535, "id": "2r9vp", "description": "1. [*all the entreddits!*](http://goo.gl/ZubqK)\n\n***\n1. [150k](http://entsupercenter.com/products/new-150k-deal-7pk-raw-cones-king-size-uptokes-rubber-bracelet)\n2. [brothers w/ glass](http://brotherswithglass.com/ents)\n3. [hoodies](http://mmmpineapple.com)\n4. [\u04cd \u1e1e \u1e3c \u1e06](http://www.mflb.us \"all the Ents\")\n5. [news](/r/treesnews)\n6. [petitions](/r/trees/comments/m3n4l/whitehousegov_petitions_are_dying_on_the_vine)\n\nThe most peaceful place on the Internet. Peace, love, understanding, respect; family. Welcome y'all. You r/ [home](http://trees.reddit.com).\n\n[](/r/trees/faq?lorax)\n\n*`new`* [all secret sEnta gifts need to be mailed!](/r/trees/comments/njwsb/last_day_to_get_your_secret_senta_gift_in_the_mail/)\n\n[Project 420](/r/project420)\n\n[r/trees book project](/r/trees/comments/nj5yl/update_on_rtrees_book_project_official/)\n\n*`new`* [Pineapple herb grinders back in stock!](http://entsupercenter.com/collections/herb-grinders)\n\n>#[Entreddits](http://goo.gl/ZubqK) \n\n || \n:---:|:---:|:---:\n[r/Ents](/r/ents) meetups [Trees GW (NSFW)](/r/treesgonewild) | [Treeple Location Map](/r/trees/comments/b4inp/anyone_remember_the_trees_map) | [World of Text](http://yourworldoftext.com/rtrees)\nOfficial stoners' [IRC chat](http://webchat.freenode.net?channels=r.trees) irc.freenode.net #r.trees | [Chattit](http://goo.gl/R4JCu) | [Tinychat](http://tinychat.com/trees)\n\n || \n:---:|:---:|:---:\n[Couch Surfing](http://couchsurfing.org/group.html?gid=35677) | [Google+](http://gplus.am/trees) | [Facebook](http://facebook.com/weedit)\n[Last.fm](http://goo.gl/nYHme) | [Minecraft](/r/enthouse) | [SoundCloud](http://goo.gl/SdyaV)\n[Twitter](http://twitter.com/treesreddit) | [Weedit.Org](http://weedit.org) | [YouTube](http://youtube.com/user/treesreddit) |\n\n>#Ent-shirts\n\n* [55% hemp Peace Pineapple + free goodies](http://whollyhemp.com/shop/4200.html)\n15% off w/ coupon code: trees\n* [En\u2191 uptoke](http://fareastthunder.com/Pineapple-Upvote-Ent-Shirt-ENT01.htm)\n* [Above the Ignorance](http://abovetheignorance.me) $5 off w/ coupon: TREES\n* [LoraliEnt](http://entitee.org)\n* [MmmPineapple fundraiser](http://mmmpineapple.com) | [hoodie!](http://www.mmmpineapple.com/collections/frontpage/products/happy-pineapple-hoodie)\n* [\u262b p-apple](http://thepineappletree.com)\n\n# [noble friEnts](/message/compose?to=cinsere&subject=friEnts) \n* *`new`* [12% off coupon: ENTREES](http://vapeworld.com/entrees) \n[Vape World](http://vapeworld.com/entrees) \n* [Brothers With Glass](http://brotherswithglass.com/trees)\n* [Ent Supercenter](http://entsupercenter.com) - [season's greetings goodie bags](http://goo.gl/WbKqb)\n* [PlanetVape Canada](http://planetvape.ca/rtrees.html)\n* [Seed Mine](http://seedmine.com)\n* [strain & dispensary reviews](http://leafly.com)\n* [THCFinder](http://thcfinder.com)\n* [Vapor Shop](http://www.vaporshop.com) \n10% off w/ coupon TREES\n* [WeedMaps](http://legalmarijuanadispensary.com)\n* [Wholly Hemp](http://whollyhemp.com/trees.html) \n15% discount for Ents!\n* [Weed Street Journal](http://theweedstreetjournal.com)\n\n#[wake 'n vape](/r/vapor)\n\n || \n:---:|:---:|:---:\n[\u04cd\u1e1e\u1e3c\u1e06](http://mflb.us/) | <- an [Ent favorite](http://goo.gl/Msy30) | [guide](http://goo.gl/IjnxP)\n[all vapes](http://vapes.us/) |\n[Vaporshop](http://www.vaporshop.com/mflb-vaporizer.html/) | <- best vaporizers | [vaporizer reviews](http://vaporizer.org/reviews)\n[Da Buddha](http://vaporizers.net/da-buddha-vaporizer) | [Extreme Q](http://vaporizers.net/extreme-vaporizer) | [Herbalaire](https://vaporizers.net/herbalaire-vaporizer)\n[Vapor Genie](http://vaporizers.net/vapor-genie) | [\"Volcano\"](http://vaporizers.net/volcano-vaporizer)\nMFLB owners: [msg Trees robot](http://goo.gl/o1QbQ) this text, wait 10 mins to receive flair!\n\n* Welcome to Trees.. the ultimate homegrown. Fostering enhancement of discussion, community, culture, recreation, public education, charity, economics, medicine, science, & activism. We believe the more 420 conscious & knowledgeable people.. the safer society is for all. A special community to get high with indeed. Why We Smoke. Prohibition.. WTF? Ask Trees Anything. Vaporizer technology. Funny pics. Music. Videos. World news. Gaming. Home of Good Guy Greg.\n\n* | | \n:---:|:---:|:---:\nHighness Scale: [Chrome](http://goo.gl/5yOIq) [Firefox](http://goo.gl/MMWbe) | [Weedmail](http://goo.gl/j3qoc) |\n\n | | \n:---:|:---:|:---:\nTrees-Top submissions | [all time](/r/trees/top/?t=all) | [this week](/r/trees/top/?t=week)\n[stats](http://i.imgur.com/hOvOP.png) | 2011 Census\n\n* [**Check out what's new on Trees!**](/r/trees/new)"}}, {"kind": "t5", "data": {"display_name": "circlejerk", "name": "t5_2qpol", "title": "SQUIRTING BRAVERY JUICE SINCE 2009", "url": "/r/circlejerk/", "created": 1228874252.0, "created_utc": 1228874252.0, "over18": false, "subscribers": 55573, "id": "2qpol", "description": "[JERK ALL THE THINGS!](http://www.reddit.com/r/anticirclejerk+askcirclejerk+botcirclejerk+circlejerkatheism+circlejerks+circlejerksarahpalin+ciriclejerk+cubejerk+cyclejerk+debateclub+dodecahedronjerk+dotetracontagonjerk+engineeringcirclejerk+fireflycirclejerk+fitnesscirclejerk+heptagonjerk+hexagonaljerk+hexagonjerk+hypercubejerk+iijerk+infinitecirclejerk+inglipjerk+jerk+karmachan+liberalcirclejerk+limbojerk+linejerk+linesegmentjerk+meatcirclejerk+megagonjerk+metacirclejerk+metafitnesscirclejerk+metametacirclejerk+MetametaFCJ+MetaMetaMetaFCJ+minecraftcirclejerk+mobiusjerk+objection+oblongjerk+octagonjerk+ovaljerk+paralleljerk+parallelogramjerk+pentagonjerk+philosophycirclejerk+pointjerk+polygonjerk+quantumjerk+redditleaks+RepublicOfCirclejerk+RepublicOfCirlcejerk+rhombusjerk+rmaddowcirclejerk+septagonjerk+solojerk+spacejerkers+spherejerk+squarejerk+surveyjerk+threexchromosomes+treejerk+trianglejerk+triplemetacirclejerk+whinybitchcirclejerk+moderatorjerk) (no homo)\n\n----\n\n**Circlejerk is a free speech zone.**\n\n----\n\nAll modmail must be handwritten on a piece of paper, and signed with your username. You must then take a photo of yourself holding the paper. Upload that photo to imgur and send us that link. If you don't, we're not going to read your mail. THANKS!\n\n---\n\n**Do you want to be a moderator?** \nWe are issuing a new challenge. The first person to make it to the frontpage of /r/all with a post titled **\"NigWantsKFC\"** will become an official for real moderator. Thank you and good luck!\n\n[](http://encyclopediadramatica.ch/Stop_Online_Piracy_Act)"}}, {"kind": "t5", "data": {"display_name": "starcraft", "name": "t5_2qpp6", "title": "StarCraft on reddit", "url": "/r/starcraft/", "created": 1228897434.0, "created_utc": 1228897434.0, "over18": false, "subscribers": 74149, "id": "2qpp6", "description": "#####[Rule update now in effect](http://www.reddit.com/r/starcraft/comments/n8vlg/announcement_submission_content_must_be_relevant/)\n\n***StarCraft* on reddit** ([FAQ](http://www.reddit.com/r/starcraft/comments/d1atd/starcraft_reddit_faq/))\n*****\n\n> [Create a submission](http://www.reddit.com/r/starcraft/submit)!\n\n&#13;\n> [New to /r/starcraft](http://www.reddit.com/r/starcraft/comments/i9xm2/new_to_rstarcraft/)?\n\n&nbsp;\n\n**Live streams & VODs**\n*****\n\nLists:\n\n> [Team Liquid stream list](http://www.teamliquid.net/video/streams/)\n\n&#13;\n> [WellPlayed stream list](http://wellplayed.org/channel/now_live)\n\n&#13;\n> [GameStreams stream list](http://www.gamestreams.com/live-streams/starcraft-2)\n\n&#13;\n> [Twitch.tv streams - *StarCraft: Brood War*](http://www.twitch.tv/directory/StarCraft:%20Brood%20War)\n\n&#13;\n> [Twitch.tv streams - *StarCraft II*](http://www.twitch.tv/directory/StarCraft%20II:%20Wings%20of%20Liberty)\n\n&#13;\nViewers:\n\n> [Teevox: Fast Stream Watching](http://teevox.com/sc)\n\n&#13;\n> [WellPlayed.tv](http://wellplayed.org/tv)\n\n&#13;\nVODs:\n\n> [SC2Casts - All casts and VODs in one place](http://sc2casts.com/)\n\n&#13;\n> [SC2Ratings - Events rated by the community](http://sc2ratings.com/)\n\n&#13;\n> [TwitchVODs](http://twitchvods.com/)\n\n&nbsp;\n\n**Upcoming events** ([Twitter feed](http://twitter.com/RedditSC))\n*****\n\nGeneral:\n\n> [Team Liquid *StarCraft II* BIG event tracker](http://www.teamliquid.net/events/)\n\n&#13;\n> [Team Liquid calendar](http://www.teamliquid.net/calendar/)\n\n&#13;\n> [Team Liquid tournament tracker](http://www.teamliquid.net/tournaments/)\n\nFor redditors:\n\n>**NA** - [rCraft Open](http://rcraftgaming.com/open-tournaments/) - Saturdays at 4 p.m. ET\n\n&#13;\n>**NA** - [rCraft King of the Hill (including 2v2s)](http://rcraftgaming.com/king-of-the-hill/) - Sunday through Friday at 8 p.m. ET\n\n&#13;\n>**EU** - [Community Tournament](http://www.screddit.eu/) ([Hall of Fame](http://www.screddit.eu/tournaments/)) - Stay tuned for future events.\n\n&nbsp;\n\n**General information**\n*****\n\n* [Check out the reddit ladder](http://sc2ranks.com/c/31/all/all/1/all/points/0) to see where you rank among redditors.\n\n* Search for players or add yourself to our [*StarCraft II* User Database](http://rstarcraft.info/).\n\n* Share *StarCraft II* replays at [drop.sc](http://drop.sc/) or [replayfu.com](http://replayfu.com/).\n\n* [Looking for a wallpaper](http://mrmaple.imgur.com/)? To have yours added to the collection, [message MrMaple24](http://www.reddit.com/message/compose/?to=MrMaple24).\n\n* Hide a spoiler with a mouseover by adding six hashes (######) before the line. [Example](http://www.reddit.com/r/starcraft/comments/c0leh/more_rules/c0vo4wc) | [Stance on spoilers](http://www.reddit.com/r/starcraft/comments/e0i8t/important_the_starcraft_reddit_stance_on_spoilers/)\n\n* Worried about spoilers in titles? [Black out /r/starcraft submissions from your reddit front page](http://www.reddit.com/r/starcraft/comments/ejnua/hey_rstarcraft_i_modified_a_greasemonkey_script/).\n\n* Join our [IRC channel at #starcraft on esper.net](https://chat.mibbit.com/?url=irc://irc.esper.net/starcraft).\n\n&nbsp;\n\n**Moderators remove**:\n*****\n\n* [Personal information](http://www.reddit.com/help/reddiquette/)\n\n* Serious threats\n\n* Blatant spam\n\n* [Submissions irrelevant to *StarCraft*](http://www.reddit.com/r/starcraft/comments/n8vlg/announcement_submission_content_must_be_relevant/)\n\n* Deceptive links to shock sites, malware, et cetera\n\n* [Excessive trolling](http://www.reddit.com/r/starcraft/comments/jziy0/important_two_community_polls_state_of_rstarcraft/)\n\n* [Promotional submissions or comments that are posted often and usually downvoted](http://i.imgur.com/5zYYk.png)\n\n* [Harmful or damaging \"witch hunts\"](http://www.reddit.com/r/starcraft/comments/ly60j/announcement_now_located_on_the_side_bar/)\n\n* [Same- and similar-topic submissions that exceed 10 per top 25, 20 per top 50, et cetera](http://www.reddit.com/r/starcraft/comments/ly60j/announcement_now_located_on_the_side_bar/)\n\nThe above is the only content that should be reported. Everything else will most likely be approved.\n\n&nbsp;\n\n**Related reddits**\n*****\n\n* [/r/BarCraft](http://www.reddit.com/r/BarCraft/)\n* [/r/day9](http://www.reddit.com/r/day9/)\n* [/r/Destiny](http://www.reddit.com/r/Destiny/)\n* [/r/esports](http://www.reddit.com/r/esports/)\n* [/r/sc2partners](http://www.reddit.com/r/sc2partners/)\n* [/r/SpoilerFreeSC](http://www.reddit.com/r/SpoilerFreeSC/)\n* [/r/starcraft_strategy](http://www.reddit.com/r/starcraft_strategy/)\n* [/r/starcraft2_class](http://www.reddit.com/r/starcraft2_class/)\n* [/r/StarcraftCirclejerk](http://www.reddit.com/r/StarcraftCirclejerk/)\n* [/r/StarcraftFeedback](http://www.reddit.com/r/StarcraftFeedback/)\n\nMessage us if you want your reddit here. It should have 200+ active readers to be considered."}}, {"kind": "t5", "data": {"display_name": "Minecraft", "name": "t5_2r05i", "title": "Minecraft on reddit", "url": "/r/Minecraft/", "created": 1244686767.0, "created_utc": 1244686767.0, "over18": false, "subscribers": 106906, "id": "2r05i", "description": "> 1.0!\n\n &#13;\n> [/r/Minecraft Rules](/r/Minecraft/faq#MinecraftSubredditRules)\n\n &#13;\n> [FAQ and more info (Most info is here)](/r/Minecraft/faq#MinecraftSubredditRules)\n\n &#13;\n> [/r/Minecraft on reddit.tv](http://reddit.tv/#/r/minecraft/)\n\n &#13;\n> [Table of sprite codes](/dfd3g)\n\n &#13;\n\n---\n\n**Where to find servers**:\n\n> **[Reddit Servers](http://nerd.nu/)** | IP: **c.nerd.nu** (Creative).\n\n &#13;\n> **[Find/List more servers here](/r/mcservers)**\n\n &#13;\n> [Mumble](http://mumble.sourceforge.net/) (Subreddit Voice Chat) Server: mumble.nerd.nu port 6162.\n\n &#13;\n\n---\n\n**Handy Minecraft-related Links:**\n\n> [**Official Minecraft FAQ**](/r/minecraftfaq)\n\n &#13;\n> [Official Minecraft Site](http://minecraft.net)\n\n &#13;\n> [Official Forums](http://minecraftforum.net)\n\n &#13;\n> [Notch's Blog](http://notch.tumblr.com/)\n\n &#13;\n> [Minecraft Wiki](http://minecraftwiki.net)\n\n &#13;\n> **[Minecraft Bug Reports and Suggestions](http://gsfn.us/Mojang)**\n\n &#13;\n> [(Official) #minecraft on esper.net](http://wbe002.mibbit.com/?server=irc.esper.net%3A5555&autoConnect=true&nick=esper_gvxgcu&channel=%23minecraft)\n\n &#13;\n> [(Community) #minecraft on Freenode](http://webchat.freenode.net/?channels=#minecraft)\n\n &#13;\n\n> [Other Minecraft Subreddits](/r/Minecraft/faq#OtherSubreddits)\n\n &#13;\n\n[](/n0lat)"}}, {"kind": "t5", "data": {"display_name": "gifs", "name": "t5_2qt55", "title": ".gifs", "url": "/r/gifs/", "created": 1234606607.0, "created_utc": 1234606607.0, "over18": false, "subscribers": 105784, "id": "2qt55", "description": "Links to amusing .gifs from the web!\n\n[How to make your own animated gifs?](http://www.google.com/webhp?hl=en#sclient=psy&hl=en&site=webhp&q=how+to+make+gifs)\n\nDirect image links preferred! **Imgur works best!** Avoid pages that have other extraneous material besides the gif like headers, banners, ads, etc. And please, no blogspam! \n\nWitty titles optional. nsfw when necessary; this implies the comments within will be too. Please also check out [r/nsfw_gifs](http://www.reddit.com/r/nsfw_gifs/) if you are into that. \n"}}, {"kind": "t5", "data": {"display_name": "TwoXChromosomes", "name": "t5_2r2jt", "title": "You are now doing kegels", "url": "/r/TwoXChromosomes/", "created": 1247773984.0, "created_utc": 1247773984.0, "over18": false, "subscribers": 64779, "id": "2r2jt", "description": "[](http://www.reddit.com/r/TwoXChromosomes/comments/n0390/as_suggested_heres_a_giving_page_for_twox_to/)\n\nWelcome to TwoXChromosomes, the subreddit for female-oriented discussions both serious and silly.\n\n[Anyone who engages in misogyny, misandry, homophobia, transphobia, or otherwise hateful or disrespectful commentary here will be banned. Everyone else, regardless of sex, gender, insides, outsides, or mindset is welcome.](http://www.reddit.com/r/TwoXChromosomes/comments/9283g/addressing_the_genetics_issue_you_dont_have_to_be/)\n\n**xoxo <3**\n-----------------------------------------------\n\n**New: [2XC Frequently Asked Questions](http://www.reddit.com/r/TwoXChromosomes/faq)**\n\n**[Related Links and Discussion:](http://www.reddit.com/r/TwoXChromosomes/faq#RelatedLinksDiscussions)**\n\n* [Girliness and Womanhood](http://www.reddit.com/r/TwoXChromosomes/faq#GirlinessandWomanhood)\n\n* [General Health](http://www.reddit.com/r/TwoXChromosomes/faq#GeneralHealth)\n\n* [Birth Control](http://www.reddit.com/r/TwoXChromosomes/faq#BirthControl)\n\n* [Relationships and Sex](http://www.reddit.com/r/TwoXChromosomes/faq#RelationshipsandSex)\n\n* [2X and reddit Community Links](http://www.reddit.com/r/TwoXChromosomes/faq#a2xcandredditCommunityLinks)\n\n* [LGBT Community](http://www.reddit.com/r/TwoXChromosomes/faq#LGBTCommunity)\n\n* [Sexual Assault and Domestic Violence Resources](http://www.reddit.com/r/TwoXChromosomes/faq#ResourcesRegardingSexualAssaultandDomesticViolence)\n\n* [Abortion Support and Resources](http://www.reddit.com/r/TwoXChromosomes/faq#AbortionSupport)\n\n* [Pregnancy Support and Resources](http://www.reddit.com/r/TwoXChromosomes/faq#PregnancyandBeyond)\n\n* [Eye Candy](http://www.reddit.com/r/TwoXChromosomes/faq#EyeCandy)\n\n* [**Rules**](http://www.reddit.com/r/TwoXChromosomes/faq#Rules)\n\n\n\\#reddit-twoxchromosomes on irc.freenode.net\n"}}], "after": "t5_2r2jt", "before": "t5_2qh0u"}}
|
4
|
+
exports.posts = {"kind": "Listing", "data": {"modhash": "", "children": [{"kind": "t3", "data": {"domain": "self.politics", "media_embed": {}, "levenshtein": null, "subreddit": "politics", "selftext_html": "<!-- SC_OFF --><div class=\"md\"><p>i just finished writing GoDaddy a letter stating why I&#39;m moving my small businesses 51 domains away from them, as well as my personal domains. I also pointed out that i transferred over 300 domains to them as a director of IT for a major American company.</p>\n\n<p>I&#39;m suggesting Dec 29th as move your domain away from GoDaddy day because of their support of SOPA. Who&#39;s with me?</p>\n\n<p>EDIT (Added Sources &amp; Statements)</p>\n\n<p>Source:\n&quot;Go Daddy has a long history of supporting federal legislation directed toward combating illegal conduct on the Internet. For example, our company strongly supported the Ryan Haight Online Pharmacy Consumer Protection Act of 2008, the Protect Our Children Act of 2008, and the Preventing Real Online Threats to Economic Creativity and Theft of Intellectual Property Act of 2011 (PROTECT IP). Go Daddy has always supported both government and private industry efforts to identify and disable all types of illegal activity on the Internet. It is for these reasons that I\u2019m still struggling with why some Internet companies oppose PROTECT IP and SOPA. There is no question that we need these added tools to counteract illegal foreign sites that are falling outside the jurisdiction of U.S. law enforcement. And there is clearly more that we could all be doing to adequately address the problems that exist.&quot;</p>\n\n<p><a href=\"http://www.thedomains.com/2011/11/15/here-is-godaddys-statement-in-support-of-the-stop-online-privacy-act-house-hearing-tomorrow/\">http:&#47;&#47;www.thedomains.com&#47;2011&#47;11&#47;15&#47;here-is-godaddys-statement-in-support-of-the-stop-online-privacy-act-house-hearing-tomorrow&#47;</a></p>\n\n<p>Name Cheap messaged me with a special discount code for reddit users: BYEBYEGD I&#39;m not taking any positions i&#39;m just reporting it. I asked him to give reddit users a better deal. </p>\n</div><!-- SC_ON -->", "selftext": "i just finished writing GoDaddy a letter stating why I'm moving my small businesses 51 domains away from them, as well as my personal domains. I also pointed out that i transferred over 300 domains to them as a director of IT for a major American company.\n\nI'm suggesting Dec 29th as move your domain away from GoDaddy day because of their support of SOPA. Who's with me?\n\nEDIT (Added Sources & Statements)\n\nSource:\n\"Go Daddy has a long history of supporting federal legislation directed toward combating illegal conduct on the Internet. For example, our company strongly supported the Ryan Haight Online Pharmacy Consumer Protection Act of 2008, the Protect Our Children Act of 2008, and the Preventing Real Online Threats to Economic Creativity and Theft of Intellectual Property Act of 2011 (PROTECT IP). Go Daddy has always supported both government and private industry efforts to identify and disable all types of illegal activity on the Internet. It is for these reasons that I\u2019m still struggling with why some Internet companies oppose PROTECT IP and SOPA. There is no question that we need these added tools to counteract illegal foreign sites that are falling outside the jurisdiction of U.S. law enforcement. And there is clearly more that we could all be doing to adequately address the problems that exist.\"\n\nhttp://www.thedomains.com/2011/11/15/here-is-godaddys-statement-in-support-of-the-stop-online-privacy-act-house-hearing-tomorrow/\n\nName Cheap messaged me with a special discount code for reddit users: BYEBYEGD I'm not taking any positions i'm just reporting it. I asked him to give reddit users a better deal. ", "likes": null, "saved": false, "id": "nmnie", "clicked": false, "title": "GoDaddy supports SOPA, I'm transferring 51 domains & suggesting a move your domain day", "media": null, "score": 4624, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2cneq", "author_flair_css_class": null, "downs": 8945, "is_self": true, "permalink": "/r/politics/comments/nmnie/godaddy_supports_sopa_im_transferring_51_domains/", "name": "t3_nmnie", "created": 1324590951.0, "url": "http://www.reddit.com/r/politics/comments/nmnie/godaddy_supports_sopa_im_transferring_51_domains/", "author_flair_text": null, "author": "selfprodigy", "created_utc": 1324565751.0, "num_comments": 1313, "ups": 13569}}, {"kind": "t3", "data": {"domain": "i.imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "funny", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmnmv", "clicked": false, "title": "I can't be the only one who spends their mornings like this.", "media": null, "score": 2383, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh33", "author_flair_css_class": null, "downs": 6534, "is_self": false, "permalink": "/r/funny/comments/nmnmv/i_cant_be_the_only_one_who_spends_their_mornings/", "name": "t3_nmnmv", "created": 1324591180.0, "url": "http://i.imgur.com/6rPGI.jpg", "author_flair_text": null, "author": "Everythingevil33", "created_utc": 1324565980.0, "num_comments": 741, "ups": 8917}}, {"kind": "t3", "data": {"domain": "guardian.co.uk", "media_embed": {}, "levenshtein": null, "subreddit": "worldnews", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmkwl", "clicked": false, "title": "Nigeria on alert as Shell announces worst oil spill in a decade. The oil company says up to 40,000 barrels of crude oil was spilled 75 miles off the coast of the Niger delta", "media": null, "score": 1928, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh13", "author_flair_css_class": null, "downs": 2787, "is_self": false, "permalink": "/r/worldnews/comments/nmkwl/nigeria_on_alert_as_shell_announces_worst_oil/", "name": "t3_nmkwl", "created": 1324585089.0, "url": "http://www.guardian.co.uk/environment/2011/dec/22/nigerian-shell-oil-spill", "author_flair_text": null, "author": "makanguru", "created_utc": 1324559889.0, "num_comments": 511, "ups": 4715}}, {"kind": "t3", "data": {"domain": "i.imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "pics", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmpkf", "clicked": false, "title": "Fresh Prince Holiday Reunion!", "media": null, "score": 1188, "over_18": false, "hidden": false, "thumbnail": "http://d.thumbs.redditmedia.com/iSgnz3_q2lAMrXlo.jpg", "subreddit_id": "t5_2qh0u", "author_flair_css_class": null, "downs": 981, "is_self": false, "permalink": "/r/pics/comments/nmpkf/fresh_prince_holiday_reunion/", "name": "t3_nmpkf", "created": 1324594703.0, "url": "http://i.imgur.com/jFiBP.jpg", "author_flair_text": null, "author": "pandasmacks", "created_utc": 1324569503.0, "num_comments": 293, "ups": 2169}}, {"kind": "t3", "data": {"domain": "i.imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "gaming", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmljr", "clicked": false, "title": "GOTTA GO FAT", "media": null, "score": 1241, "over_18": false, "hidden": false, "thumbnail": "http://f.thumbs.redditmedia.com/c7Tjlh_c3LbPWIkG.jpg", "subreddit_id": "t5_2qh03", "author_flair_css_class": null, "downs": 4088, "is_self": false, "permalink": "/r/gaming/comments/nmljr/gotta_go_fat/", "name": "t3_nmljr", "created": 1324586650.0, "url": "http://i.imgur.com/U1UKd.gif", "author_flair_text": null, "author": "hateboss", "created_utc": 1324561450.0, "num_comments": 151, "ups": 5329}}, {"kind": "t3", "data": {"domain": "telegraph.co.uk", "media_embed": {}, "levenshtein": null, "subreddit": "todayilearned", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmkoz", "clicked": false, "title": "TIL some mutated apples are half red, half green", "media": null, "score": 1127, "over_18": false, "hidden": false, "thumbnail": "http://f.thumbs.redditmedia.com/nkUkAcwIZ5_I8dXS.jpg", "subreddit_id": "t5_2qqjc", "author_flair_css_class": null, "downs": 2277, "is_self": false, "permalink": "/r/todayilearned/comments/nmkoz/til_some_mutated_apples_are_half_red_half_green/", "name": "t3_nmkoz", "created": 1324584536.0, "url": "http://www.telegraph.co.uk/news/newstopics/howaboutthat/6229243/Million-to-one-apple-is-half-red-half-green.html", "author_flair_text": null, "author": "Bambirapt0r", "created_utc": 1324559336.0, "num_comments": 213, "ups": 3404}}, {"kind": "t3", "data": {"domain": "torrentfreak.com", "media_embed": {}, "levenshtein": null, "subreddit": "technology", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmgjp", "clicked": false, "title": "Despite not owning a computer or even a router, a retired woman in Germany has been ordered by a court to pay compensation to a movie company", "media": null, "score": 1775, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh16", "author_flair_css_class": null, "downs": 2462, "is_self": false, "permalink": "/r/technology/comments/nmgjp/despite_not_owning_a_computer_or_even_a_router_a/", "name": "t3_nmgjp", "created": 1324571777.0, "url": "http://torrentfreak.com/retired-computerless-woman-fined-for-pirating-hooligan-movie-111222/", "author_flair_text": null, "author": "makanguru", "created_utc": 1324546577.0, "num_comments": 376, "ups": 4237}}, {"kind": "t3", "data": {"domain": "i.imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "atheism", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmkap", "clicked": false, "title": "Jesus loves you!", "media": null, "score": 984, "over_18": false, "hidden": false, "thumbnail": "http://b.thumbs.redditmedia.com/RCeWtqw6cflKhG47.jpg", "subreddit_id": "t5_2qh2p", "author_flair_css_class": null, "downs": 1804, "is_self": false, "permalink": "/r/atheism/comments/nmkap/jesus_loves_you/", "name": "t3_nmkap", "created": 1324583431.0, "url": "http://i.imgur.com/5r6nr.jpg", "author_flair_text": null, "author": "Tiger337", "created_utc": 1324558231.0, "num_comments": 248, "ups": 2788}}, {"kind": "t3", "data": {"domain": "nymag.com", "media_embed": {}, "levenshtein": null, "subreddit": "videos", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmf21", "clicked": false, "title": "Louis C.K. donated over $250,000 of the income from his self-funded show to charities (Fistula Foundation, Green Chimneys, CharityWater, Pablove Foundation and Kiva)", "media": null, "score": 2030, "over_18": false, "hidden": false, "thumbnail": "http://d.thumbs.redditmedia.com/J3dAkwXYt9LOIEnE.jpg", "subreddit_id": "t5_2qh1e", "author_flair_css_class": null, "downs": 5861, "is_self": false, "permalink": "/r/videos/comments/nmf21/louis_ck_donated_over_250000_of_the_income_from/", "name": "t3_nmf21", "created": 1324567656.0, "url": "http://nymag.com/daily/entertainment/2011/12/louis-ck-had-some-unorthodox-descriptions-of-his-charities.html", "author_flair_text": null, "author": "vickles", "created_utc": 1324542456.0, "num_comments": 574, "ups": 7891}}, {"kind": "t3", "data": {"domain": "qkme.me", "media_embed": {}, "levenshtein": null, "subreddit": "AdviceAnimals", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmm8f", "clicked": false, "title": "Successful Black Man", "media": null, "score": 714, "over_18": false, "hidden": false, "thumbnail": "http://b.thumbs.redditmedia.com/6ymJqUVApvaFF-8I.jpg", "subreddit_id": "t5_2s7tt", "author_flair_css_class": null, "downs": 1090, "is_self": false, "permalink": "/r/AdviceAnimals/comments/nmm8f/successful_black_man/", "name": "t3_nmm8f", "created": 1324588250.0, "url": "http://qkme.me/35k0qt", "author_flair_text": null, "author": "PornClerk", "created_utc": 1324563050.0, "num_comments": 42, "ups": 1804}}, {"kind": "t3", "data": {"domain": "imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "WTF", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmp7g", "clicked": false, "title": "Creepy cloud hovering over england can anyone explain?", "media": null, "score": 481, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh61", "author_flair_css_class": null, "downs": 270, "is_self": false, "permalink": "/r/WTF/comments/nmp7g/creepy_cloud_hovering_over_england_can_anyone/", "name": "t3_nmp7g", "created": 1324594084.0, "url": "http://imgur.com/fKw75", "author_flair_text": null, "author": "chriswalkerb", "created_utc": 1324568884.0, "num_comments": 162, "ups": 751}}, {"kind": "t3", "data": {"domain": "i.imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "aww", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmm70", "clicked": false, "title": "Y U hold me up for display??", "media": null, "score": 562, "over_18": false, "hidden": false, "thumbnail": "http://a.thumbs.redditmedia.com/8SddCf61ESqT5GUl.jpg", "subreddit_id": "t5_2qh1o", "author_flair_css_class": null, "downs": 526, "is_self": false, "permalink": "/r/aww/comments/nmm70/y_u_hold_me_up_for_display/", "name": "t3_nmm70", "created": 1324588170.0, "url": "http://i.imgur.com/SkliN.jpg", "author_flair_text": null, "author": "ItWillBeMine", "created_utc": 1324562970.0, "num_comments": 19, "ups": 1088}}, {"kind": "t3", "data": {"domain": "self.AskReddit", "media_embed": {}, "levenshtein": null, "subreddit": "AskReddit", "selftext_html": "<!-- SC_OFF --><div class=\"md\"><p>I was watching Horrible Bosses a few days ago and towards the end one of the characters asks a woman when her baby is due. Whoops, turns out she isn&#39;t pregnant, just over-weight! HAHAHAHA</p>\n\n<p>Did the writers think this was the first time that joke had ever been used? The 10th? 100th? It&#39;s been so overused that I can&#39;t imagine that anyone finds it funny anymore.</p>\n\n<p>So reddit, what comedy trope do you wish was escorted behind the Hollywood sign and put down?</p>\n\n<p>My two:</p>\n\n<ul>\n<li>I&#39;m not pregnant, I&#39;m just fat</li>\n<li>&quot;He&#39;s standing right behind me, isn&#39;t he?&quot;</li>\n</ul>\n</div><!-- SC_ON -->", "selftext": "I was watching Horrible Bosses a few days ago and towards the end one of the characters asks a woman when her baby is due. Whoops, turns out she isn't pregnant, just over-weight! HAHAHAHA\n\nDid the writers think this was the first time that joke had ever been used? The 10th? 100th? It's been so overused that I can't imagine that anyone finds it funny anymore.\n\nSo reddit, what comedy trope do you wish was escorted behind the Hollywood sign and put down?\n\nMy two:\n\n* I'm not pregnant, I'm just fat\n* \"He's standing right behind me, isn't he?\"", "likes": null, "saved": false, "id": "nmm1t", "clicked": false, "title": "What comedy cliche do you wish was never used again?", "media": null, "score": 478, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh1i", "author_flair_css_class": null, "downs": 370, "is_self": true, "permalink": "/r/AskReddit/comments/nmm1t/what_comedy_cliche_do_you_wish_was_never_used/", "name": "t3_nmm1t", "created": 1324587890.0, "url": "http://www.reddit.com/r/AskReddit/comments/nmm1t/what_comedy_cliche_do_you_wish_was_never_used/", "author_flair_text": null, "author": "scourge_of_carpathia", "created_utc": 1324562690.0, "num_comments": 2129, "ups": 848}}, {"kind": "t3", "data": {"domain": "physorg.com", "media_embed": {}, "levenshtein": null, "subreddit": "science", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmj5f", "clicked": false, "title": "Researchers from the University of Birmingham and Lancaster University, analysing data taken by the ATLAS experiment, have been at the centre of what is believed to be the first clear observation of a new particle at the Large Hadron Collider", "media": null, "score": 646, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_mouw", "author_flair_css_class": null, "downs": 514, "is_self": false, "permalink": "/r/science/comments/nmj5f/researchers_from_the_university_of_birmingham_and/", "name": "t3_nmj5f", "created": 1324579956.0, "url": "http://www.physorg.com/news/2011-12-cb3p-particle-large-hadron-collider.html", "author_flair_text": null, "author": "WhatTheMustard", "created_utc": 1324554756.0, "num_comments": 48, "ups": 1160}}, {"kind": "t3", "data": {"domain": "youtube.com", "media_embed": {"content": "<iframe width=\"600\" height=\"338\" src=\"http://www.youtube.com/embed/O4pdR4AZjuk?fs=1&feature=oembed\" frameborder=\"0\" allowfullscreen></iframe>", "width": 600, "scrolling": false, "height": 338}, "levenshtein": null, "subreddit": "Music", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmh8d", "clicked": false, "title": "My friend's Dad rocks! \nFilmed secretly cos he will be mad, let's get him famous without him knowing.", "media": {"oembed": {"provider_url": "http://www.youtube.com/", "description": "Secretly filmed my Dad playing otherwise he wouldn't agree to it, sorry Dad, but it's good!", "title": "Walked a Thousand Miles Blues", "url": "http://www.youtube.com/watch?v=O4pdR4AZjuk", "type": "video", "author_name": "juliancosmos", "height": 338, "width": 600, "html": "<iframe width=\"600\" height=\"338\" src=\"http://www.youtube.com/embed/O4pdR4AZjuk?fs=1&feature=oembed\" frameborder=\"0\" allowfullscreen></iframe>", "thumbnail_width": 480, "version": "1.0", "provider_name": "YouTube", "thumbnail_url": "http://i4.ytimg.com/vi/O4pdR4AZjuk/hqdefault.jpg", "thumbnail_height": 360, "author_url": "http://www.youtube.com/user/juliancosmos"}, "type": "youtube.com"}, "score": 600, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh1u", "author_flair_css_class": null, "downs": 157, "is_self": false, "permalink": "/r/Music/comments/nmh8d/my_friends_dad_rocks_filmed_secretly_cos_he_will/", "name": "t3_nmh8d", "created": 1324573923.0, "url": "http://www.youtube.com/watch?v=O4pdR4AZjuk&context=C3b8cb73ADOEgsToPDskJCjnD36KThmas7U6heGywU", "author_flair_text": null, "author": "gareewong", "created_utc": 1324548723.0, "num_comments": 102, "ups": 757}}, {"kind": "t3", "data": {"domain": "quickmeme.com", "media_embed": {}, "levenshtein": null, "subreddit": "movies", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nm510", "clicked": false, "title": "It's just that I'm Alan Rickman", "media": null, "score": 1310, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh3s", "author_flair_css_class": null, "downs": 3555, "is_self": false, "permalink": "/r/movies/comments/nm510/its_just_that_im_alan_rickman/", "name": "t3_nm510", "created": 1324549814.0, "url": "http://www.quickmeme.com/meme/35jxgd/", "author_flair_text": null, "author": "Sothotheroth", "created_utc": 1324524614.0, "num_comments": 202, "ups": 4865}}, {"kind": "t3", "data": {"domain": "reddit.com", "media_embed": {}, "levenshtein": null, "subreddit": "bestof", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmbmn", "clicked": false, "title": "Redditor shares his three darkest secrets, from least horrifying to most. And boy are they horrifying.", "media": null, "score": 765, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh3v", "author_flair_css_class": null, "downs": 929, "is_self": false, "permalink": "/r/bestof/comments/nmbmn/redditor_shares_his_three_darkest_secrets_from/", "name": "t3_nmbmn", "created": 1324560199.0, "url": "http://www.reddit.com/r/AskReddit/comments/nm9dj/whats_the_most_disgusting_secret_youve_never_told/c3a773u", "author_flair_text": null, "author": "flabbergasted1", "created_utc": 1324534999.0, "num_comments": 228, "ups": 1694}}, {"kind": "t3", "data": {"domain": "imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "pics", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmmvi", "clicked": false, "title": "Space shuttle Endeavour takeoff", "media": null, "score": 1464, "over_18": false, "hidden": false, "thumbnail": "http://c.thumbs.redditmedia.com/GRs3TRSlE8VUSmrV.jpg", "subreddit_id": "t5_2qh0u", "author_flair_css_class": null, "downs": 3510, "is_self": false, "permalink": "/r/pics/comments/nmmvi/space_shuttle_endeavour_takeoff/", "name": "t3_nmmvi", "created": 1324589679.0, "url": "http://imgur.com/MDfPp", "author_flair_text": null, "author": "jnafa", "created_utc": 1324564479.0, "num_comments": 180, "ups": 4974}}, {"kind": "t3", "data": {"domain": "i.imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "WTF", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmfv7", "clicked": false, "title": "Idiocy isn't forever, but ink is.", "media": null, "score": 1407, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh61", "author_flair_css_class": null, "downs": 6139, "is_self": false, "permalink": "/r/WTF/comments/nmfv7/idiocy_isnt_forever_but_ink_is/", "name": "t3_nmfv7", "created": 1324569750.0, "url": "http://i.imgur.com/08UgW.jpg", "author_flair_text": null, "author": "ripples2288", "created_utc": 1324544550.0, "num_comments": 565, "ups": 7546}}, {"kind": "t3", "data": {"domain": "imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "WTF", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmhzo", "clicked": false, "title": "HELLO", "media": null, "score": 1013, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh61", "author_flair_css_class": null, "downs": 4301, "is_self": false, "permalink": "/r/WTF/comments/nmhzo/hello/", "name": "t3_nmhzo", "created": 1324576408.0, "url": "http://imgur.com/dCWZa", "author_flair_text": null, "author": "Maboz", "created_utc": 1324551208.0, "num_comments": 146, "ups": 5314}}, {"kind": "t3", "data": {"domain": "thisiscolossal.com", "media_embed": {}, "levenshtein": null, "subreddit": "pics", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmozu", "clicked": false, "title": "1,000,000 toothpicks!", "media": null, "score": 1033, "over_18": false, "hidden": false, "thumbnail": "http://e.thumbs.redditmedia.com/-G9p5hQxnaxBD0FL.jpg", "subreddit_id": "t5_2qh0u", "author_flair_css_class": null, "downs": 1086, "is_self": false, "permalink": "/r/pics/comments/nmozu/1000000_toothpicks/", "name": "t3_nmozu", "created": 1324593700.0, "url": "http://www.thisiscolossal.com/wp-content/uploads/2011/12/weaver-1-600x723.jpg", "author_flair_text": null, "author": "egg_bacon", "created_utc": 1324568500.0, "num_comments": 116, "ups": 2119}}, {"kind": "t3", "data": {"domain": "i.imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "WTF", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmol4", "clicked": false, "title": "An Unlikely Friendship.", "media": null, "score": 412, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2qh61", "author_flair_css_class": null, "downs": 359, "is_self": false, "permalink": "/r/WTF/comments/nmol4/an_unlikely_friendship/", "name": "t3_nmol4", "created": 1324592978.0, "url": "http://i.imgur.com/kcGhs.jpg", "author_flair_text": null, "author": "laserfire", "created_utc": 1324567778.0, "num_comments": 86, "ups": 771}}, {"kind": "t3", "data": {"domain": "i.imgur.com", "media_embed": {}, "levenshtein": null, "subreddit": "gaming", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmlms", "clicked": false, "title": "Well, at least I won something.", "media": null, "score": 874, "over_18": false, "hidden": false, "thumbnail": "http://e.thumbs.redditmedia.com/O1VVxAb4Kg1ijnpv.jpg", "subreddit_id": "t5_2qh03", "author_flair_css_class": null, "downs": 913, "is_self": false, "permalink": "/r/gaming/comments/nmlms/well_at_least_i_won_something/", "name": "t3_nmlms", "created": 1324586878.0, "url": "http://i.imgur.com/I3M7V.png", "author_flair_text": null, "author": "vapester", "created_utc": 1324561678.0, "num_comments": 190, "ups": 1787}}, {"kind": "t3", "data": {"domain": "quickmeme.com", "media_embed": {}, "levenshtein": null, "subreddit": "AdviceAnimals", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmpkc", "clicked": false, "title": "Ignored ?", "media": null, "score": 378, "over_18": false, "hidden": false, "thumbnail": "http://d.thumbs.redditmedia.com/KCB2jrEs72gW-N0W.jpg", "subreddit_id": "t5_2s7tt", "author_flair_css_class": null, "downs": 209, "is_self": false, "permalink": "/r/AdviceAnimals/comments/nmpkc/ignored/", "name": "t3_nmpkc", "created": 1324594697.0, "url": "http://www.quickmeme.com/meme/35k18s/http://www.quickmeme.com/meme/35k18s/", "author_flair_text": null, "author": "raghavakrishna", "created_utc": 1324569497.0, "num_comments": 11, "ups": 587}}, {"kind": "t3", "data": {"domain": "qkme.me", "media_embed": {}, "levenshtein": null, "subreddit": "AdviceAnimals", "selftext_html": null, "selftext": "", "likes": null, "saved": false, "id": "nmjsq", "clicked": false, "title": "My morning agony", "media": null, "score": 671, "over_18": false, "hidden": false, "thumbnail": "http://f.thumbs.redditmedia.com/wPcY8Q-xF3wxiAJw.jpg", "subreddit_id": "t5_2s7tt", "author_flair_css_class": null, "downs": 878, "is_self": false, "permalink": "/r/AdviceAnimals/comments/nmjsq/my_morning_agony/", "name": "t3_nmjsq", "created": 1324581977.0, "url": "http://qkme.me/35k0e6?id=190730238", "author_flair_text": null, "author": "DoctorFunk", "created_utc": 1324556777.0, "num_comments": 37, "ups": 1549}}], "after": "t3_nmjsq", "before": "t3_nmnie"}}
|
5
|
+
|
6
|
+
return
|
@@ -0,0 +1,294 @@
|
|
1
|
+
modLoader.define 'adapters/reddit', (require,exports) ->
|
2
|
+
Deferred = modLoader.require('libs/deferred')
|
3
|
+
|
4
|
+
SubReddit = modLoader.require('models/sub_reddit')
|
5
|
+
Post = modLoader.require('models/post')
|
6
|
+
Comment = modLoader.require('models/comment')
|
7
|
+
|
8
|
+
exports.ERROR_TYPES = ERROR_TYPES =
|
9
|
+
NO_AUTH: 'User is not authenticated'
|
10
|
+
|
11
|
+
exports.REDDITS_SORT_TYPES = REDDITS_SORT_TYPES =
|
12
|
+
POPULAR: 'popular'
|
13
|
+
NEW: 'new'
|
14
|
+
BANNED: 'banned'
|
15
|
+
|
16
|
+
exports.POST_SORT_TYPES = POST_SORT_TYPES =
|
17
|
+
HOT: 'hot'
|
18
|
+
NEW: 'new'
|
19
|
+
TOP: 'top'
|
20
|
+
CONTROVERSIAL: 'controversial'
|
21
|
+
|
22
|
+
exports.OWN_REDDITS_TYPES = OWN_REDDITS_TYPES =
|
23
|
+
SUB: 'subscriber'
|
24
|
+
CONTRIB: 'contributor'
|
25
|
+
MOD: 'moderator'
|
26
|
+
|
27
|
+
exports.PAGINATE_TYPE = PAGINATE_TYPE =
|
28
|
+
BEFORE: 'before'
|
29
|
+
AFTER: 'after'
|
30
|
+
|
31
|
+
exports.create = (ajax, logger)->
|
32
|
+
_reqCounter = 0;
|
33
|
+
_queuedReqIds = [];
|
34
|
+
_requests = {}
|
35
|
+
_currentReqId = null;
|
36
|
+
|
37
|
+
_userSession = null
|
38
|
+
|
39
|
+
# Private Methods
|
40
|
+
_enqueueRequest = (reqId) ->
|
41
|
+
_queuedReqIds.push(reqId)
|
42
|
+
|
43
|
+
if !_currentReqId
|
44
|
+
_doNextRequest()
|
45
|
+
return
|
46
|
+
|
47
|
+
_buildRequest = (options, df) ->
|
48
|
+
request = {}
|
49
|
+
reqId = ++_reqCounter;
|
50
|
+
|
51
|
+
root = if options.isSecure then 'https://ssl.reddit.com' else 'http://www.reddit.com'
|
52
|
+
request.url = root+options.path
|
53
|
+
request.dataType = 'json'
|
54
|
+
request.data = {}
|
55
|
+
|
56
|
+
# Adds the options data to the request
|
57
|
+
if options.data
|
58
|
+
for own key,value of options.data
|
59
|
+
request.data[key] = value
|
60
|
+
|
61
|
+
# We need to mark this request as json for both post and get methods
|
62
|
+
if options.isPost
|
63
|
+
request.type = 'POST'
|
64
|
+
request.data.api_type = 'json'
|
65
|
+
else
|
66
|
+
request.type = 'GET'
|
67
|
+
request.url += '/.json'
|
68
|
+
|
69
|
+
# Authenticated request need the user session
|
70
|
+
if options.isAuth
|
71
|
+
request.data.uh = _userSession
|
72
|
+
|
73
|
+
# Basic error and success handling
|
74
|
+
request.success = (response, textStatus, xhr)->
|
75
|
+
options.success(response)
|
76
|
+
_doNextRequest()
|
77
|
+
return
|
78
|
+
|
79
|
+
request.error = (xhr, textStatus, thrown)->
|
80
|
+
options.failure({message:'network failed, '+textStatus})
|
81
|
+
_doNextRequest()
|
82
|
+
return
|
83
|
+
|
84
|
+
_requests[reqId] = request;
|
85
|
+
return reqId
|
86
|
+
|
87
|
+
_cancelRequest = (reqId) ->
|
88
|
+
return
|
89
|
+
|
90
|
+
_cancelAllRequests = ->
|
91
|
+
return
|
92
|
+
|
93
|
+
_doNextRequest = ->
|
94
|
+
_currentReqId = _queuedReqIds.shift()
|
95
|
+
return if !_currentReqId
|
96
|
+
|
97
|
+
request = _requests[_currentReqId]
|
98
|
+
if !request
|
99
|
+
logger.error('Tried process request '+_currentReqId+', but it no longer points to a valid object')
|
100
|
+
_doNextRequest()
|
101
|
+
return
|
102
|
+
|
103
|
+
ajax(request)
|
104
|
+
|
105
|
+
return;
|
106
|
+
|
107
|
+
# Converts a response containing a list of reddits
|
108
|
+
# to a manageable object
|
109
|
+
# @param {Object} Data returned from the request
|
110
|
+
_formatRedditListingToArray = (origData)->
|
111
|
+
object =
|
112
|
+
type: origData.kind
|
113
|
+
before: origData.data.before
|
114
|
+
after: origData.data.after
|
115
|
+
data: []
|
116
|
+
|
117
|
+
for item in origData.data.children
|
118
|
+
model = null
|
119
|
+
|
120
|
+
if item.kind == 't5'
|
121
|
+
model = SubReddit.create(item.data)
|
122
|
+
else if item.kind == 't3'
|
123
|
+
model = Post.create(item.data)
|
124
|
+
else if item.kind == 't1'
|
125
|
+
model = Comment.create(item.data)
|
126
|
+
|
127
|
+
object.data.push(model)
|
128
|
+
return object
|
129
|
+
|
130
|
+
# Public methodsGET
|
131
|
+
isLoggedIn = ->
|
132
|
+
return !!_userSession
|
133
|
+
|
134
|
+
userSession = (session)->
|
135
|
+
_userSession = session if session != undefined
|
136
|
+
return _userSession
|
137
|
+
|
138
|
+
|
139
|
+
# Stops the current request
|
140
|
+
abortCurrent = ->
|
141
|
+
_cancelRequest(_currentReqId) if _currentReqId
|
142
|
+
return
|
143
|
+
|
144
|
+
# Suspends all requests
|
145
|
+
abortAll = ->
|
146
|
+
_cancelAllRequests()
|
147
|
+
return
|
148
|
+
|
149
|
+
#############################
|
150
|
+
# Unauthenticated Commands
|
151
|
+
#############################
|
152
|
+
|
153
|
+
# Attempts to log the user in,
|
154
|
+
# @param user {String} user name
|
155
|
+
# @param pass {String} user password
|
156
|
+
# @return Promise
|
157
|
+
loginUser = (user,pass)->
|
158
|
+
df = Deferred.create()
|
159
|
+
options =
|
160
|
+
isSecure: true
|
161
|
+
isPost: true
|
162
|
+
path: '/api/login/'+user
|
163
|
+
data:
|
164
|
+
user: user
|
165
|
+
passwd: pass
|
166
|
+
success: (response)->
|
167
|
+
_userSession = response.uh
|
168
|
+
df.resolve()
|
169
|
+
return
|
170
|
+
failure: (reason)->
|
171
|
+
df.reject(reason)
|
172
|
+
return
|
173
|
+
|
174
|
+
reqId = _buildRequest(options, df)
|
175
|
+
_enqueueRequest(reqId)
|
176
|
+
return df.promise()
|
177
|
+
|
178
|
+
# Gets a list of reddits starting from the next
|
179
|
+
# No Auth required
|
180
|
+
# @param mod {PAGINATE_TYPE} Value representing which direction we are moving in
|
181
|
+
# @param target {String} identifier to be combined with the pagination type for getting a
|
182
|
+
# new page
|
183
|
+
# @param type {REDDITS_SORT_TYPES} type of the items to select
|
184
|
+
# @return Promise
|
185
|
+
listAllSubReddits = (mod, target, type)->
|
186
|
+
df = Deferred.create()
|
187
|
+
options =
|
188
|
+
path: '/reddits/'+type
|
189
|
+
data:
|
190
|
+
count: 25
|
191
|
+
success: (response)->
|
192
|
+
reddits = _formatRedditListingToArray(response)
|
193
|
+
df.resolve(reddits)
|
194
|
+
return
|
195
|
+
failure: (reason)->
|
196
|
+
df.reject(reason)
|
197
|
+
return
|
198
|
+
# Add the before/after targets
|
199
|
+
options.data[mod] = target
|
200
|
+
|
201
|
+
reqId = _buildRequest(options,df)
|
202
|
+
# TODO remove this line when done with dummy data
|
203
|
+
#options.success(DummyData.subReddits)
|
204
|
+
_enqueueRequest(reqId)
|
205
|
+
return df.promise()
|
206
|
+
|
207
|
+
# Attempts to get a list of posts for the sub reddit provided@_postScroller
|
208
|
+
# No auth required
|
209
|
+
# @param mod {PAGINATE_TYPE} Value representing which direction we are moving in
|
210
|
+
# @param target {String} identifier to be combined with the pagination type for getting a
|
211
|
+
# new page
|
212
|
+
# @param subReddit {SubReddit} object defining this sub reddit
|
213
|
+
# @param type {POST_SORT_TYPES} specifies which type of query to make
|
214
|
+
# @return promise
|
215
|
+
listSubRedditPost = (mod, target, subReddit, type) =>
|
216
|
+
df = Deferred.create()
|
217
|
+
options =
|
218
|
+
isAuth: if isLoggedIn() then true else false
|
219
|
+
isPost: if isLoggedIn() then true else false
|
220
|
+
path: subReddit.url()+type
|
221
|
+
data:
|
222
|
+
count: 25
|
223
|
+
success: (response) ->
|
224
|
+
posts = _formatRedditListingToArray(response)
|
225
|
+
df.resolve(posts)
|
226
|
+
return
|
227
|
+
failure: (reason) ->
|
228
|
+
df.reject(reason)
|
229
|
+
return
|
230
|
+
# Add the before/after targets
|
231
|
+
options.data[mod] = target
|
232
|
+
|
233
|
+
reqId = _buildRequest(options,df)
|
234
|
+
# TODO remove this line when done with dummy data
|
235
|
+
#options.success(DummyData.posts)
|
236
|
+
_enqueueRequest(reqId)
|
237
|
+
return df.promise()
|
238
|
+
|
239
|
+
|
240
|
+
#############################
|
241
|
+
# Requires authentication
|
242
|
+
#############################
|
243
|
+
|
244
|
+
# Gets a list of the user's subscribed sub reddits
|
245
|
+
# Requires Authentication
|
246
|
+
# @param mod {PAGINATE_TYPE} Value representing which direction we are moving in
|
247
|
+
# @param target {String} identifier to be combined with the pagination type for getting a
|
248
|
+
# new page
|
249
|
+
# @param type {OWN_REDDITS_TYPES}
|
250
|
+
# @return Promise
|
251
|
+
listUserSubReddits = (mod, target, type)->
|
252
|
+
df = Deferred.create()
|
253
|
+
# Fail the operation off the bat if the user is not logged in.
|
254
|
+
if (!isLoggedIn())
|
255
|
+
df.reject({code:ERROR_TYPES.NO_AUTH})
|
256
|
+
return df.promise()
|
257
|
+
|
258
|
+
options =
|
259
|
+
isPost: true
|
260
|
+
isAuth: true
|
261
|
+
path: '/reddits/mine/'+type
|
262
|
+
data:
|
263
|
+
count: 25
|
264
|
+
success: (response)->
|
265
|
+
reddits = _formatRedditListingToArray(response)
|
266
|
+
df.resolve(reddits)
|
267
|
+
return
|
268
|
+
failure: (reason)->
|
269
|
+
df.reject(reason)
|
270
|
+
return
|
271
|
+
# Add the before/after targets
|
272
|
+
options.data[mod] = target
|
273
|
+
|
274
|
+
reqId = _buildRequest(options,df)
|
275
|
+
_enqueueRequest(reqId)
|
276
|
+
return df.promise()
|
277
|
+
|
278
|
+
|
279
|
+
return {
|
280
|
+
# Properties
|
281
|
+
userSession: userSession
|
282
|
+
# Unauthenticated
|
283
|
+
loginUser: loginUser
|
284
|
+
listAllSubReddits: listAllSubReddits
|
285
|
+
listSubRedditPost: listSubRedditPost
|
286
|
+
#Authenticated
|
287
|
+
listUserSubReddits: listUserSubReddits
|
288
|
+
# Utils
|
289
|
+
isLoggedIn: isLoggedIn
|
290
|
+
abortCurrent: abortCurrent
|
291
|
+
abortAll: abortAll
|
292
|
+
}
|
293
|
+
|
294
|
+
return
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#= require touch
|
2
|
+
#= require jq.mobi.min
|
3
|
+
#= require jq.web.min
|
4
|
+
#= require jq.ui.min
|
5
|
+
#= require phonegap-1.1.0
|
6
|
+
#= require ICanHaz.min
|
7
|
+
|
8
|
+
#= require libs/mod_loader
|
9
|
+
#= require libs/deferred
|
10
|
+
#= require libs/3rdparty
|
11
|
+
#= require libs/logger
|
12
|
+
#= require helpers/properties
|
13
|
+
#= require models/comment
|
14
|
+
#= require models/post
|
15
|
+
#= require models/sub_reddit
|
16
|
+
#= require adapters/reddit
|
17
|
+
#= require widgets/posts
|
18
|
+
#= require widgets/post_detail
|
19
|
+
#= require widgets/subreddits
|
20
|
+
#= require controllers/nav
|
21
|
+
#= require controllers/subreddit_posts
|
22
|
+
#= require controllers/app
|
23
|
+
#= require main
|
@@ -0,0 +1,69 @@
|
|
1
|
+
|
2
|
+
modLoader.define 'controllers/app', (require,exports) ->
|
3
|
+
_3rdparty = modLoader.require('libs/3rdparty')
|
4
|
+
ich = _3rdparty.ich
|
5
|
+
$ = _3rdparty.$
|
6
|
+
|
7
|
+
Properties = modLoader.require 'helpers/properties'
|
8
|
+
RedditAdapter = modLoader.require 'adapters/reddit'
|
9
|
+
|
10
|
+
SubRedditModel = modLoader.require 'models/sub_reddit'
|
11
|
+
|
12
|
+
SubRedditPostsController = modLoader.require 'controllers/subreddit_posts'
|
13
|
+
NavController = modLoader.require 'controllers/nav'
|
14
|
+
|
15
|
+
class AppController
|
16
|
+
constructor: (options)->
|
17
|
+
@_reddit = options.reddit
|
18
|
+
@_currentPage = null
|
19
|
+
@_pages = {}
|
20
|
+
@_navView = null
|
21
|
+
return
|
22
|
+
|
23
|
+
start: ->
|
24
|
+
@_initAppView()
|
25
|
+
|
26
|
+
@_initPages()
|
27
|
+
|
28
|
+
# load the starting view
|
29
|
+
@_loadLastView()
|
30
|
+
return
|
31
|
+
|
32
|
+
_initAppView: ->
|
33
|
+
# add the nav bar
|
34
|
+
@_navView = NavController.create({reddit: @_reddit, controller: @})
|
35
|
+
@_navView.attachTo($('#navbar .subreddits'))
|
36
|
+
return
|
37
|
+
|
38
|
+
_initPages: ->
|
39
|
+
_pages = @_pages
|
40
|
+
_pages['subreddit-posts'] = SubRedditPostsController.create({reddit: @_reddit, controller: @})
|
41
|
+
_pages['subreddit-posts'].attachTo($('#subreddit-posts'))
|
42
|
+
return
|
43
|
+
|
44
|
+
_loadLastView: ->
|
45
|
+
# TODO switch view based on some setting
|
46
|
+
if @_currentPage
|
47
|
+
@_currentPage.hide()
|
48
|
+
|
49
|
+
@_currentPage = @_pages['subreddit-posts']
|
50
|
+
@_currentPage.show(SubRedditModel.create({url:'/',title:'Front Page'}))
|
51
|
+
return
|
52
|
+
|
53
|
+
storeSubReddits: (subs) ->
|
54
|
+
@_subs = {}
|
55
|
+
for sub in subs.data
|
56
|
+
@_subs[sub.id()] = sub
|
57
|
+
return
|
58
|
+
|
59
|
+
showSubRedditPosts: (id)->
|
60
|
+
sub = @_subs[id]
|
61
|
+
@_currentPage.show(sub)
|
62
|
+
return
|
63
|
+
|
64
|
+
showPosts: ()->
|
65
|
+
return
|
66
|
+
|
67
|
+
exports.create = (options)->
|
68
|
+
return new AppController options
|
69
|
+
return
|
@@ -0,0 +1,55 @@
|
|
1
|
+
modLoader.define 'controllers/nav', (require, exports) ->
|
2
|
+
ich = modLoader.require('libs/3rdparty').ich
|
3
|
+
$ = modLoader.require('libs/3rdparty').$
|
4
|
+
|
5
|
+
RedditAdapter = modLoader.require 'adapters/reddit'
|
6
|
+
|
7
|
+
SubRedditsWidget = modLoader.require 'widgets/subreddits'
|
8
|
+
|
9
|
+
class NavController
|
10
|
+
constructor: (options)->
|
11
|
+
@_reddit = options.reddit
|
12
|
+
@_controller = options.controller
|
13
|
+
return
|
14
|
+
|
15
|
+
attachTo: (container)->
|
16
|
+
@_refs =
|
17
|
+
container: container
|
18
|
+
|
19
|
+
@_loadSubReddits(@_refs['container'])
|
20
|
+
return
|
21
|
+
|
22
|
+
_loadSubReddits: (container)->
|
23
|
+
@_navScroll.destroy() if @_navScroll?
|
24
|
+
@_navScroll = null;
|
25
|
+
|
26
|
+
promise = null
|
27
|
+
if @_reddit.isLoggedIn()
|
28
|
+
promise = @_reddit.listUserSubReddits(RedditAdapter.PAGINATE_TYPE.AFTER, null, RedditAdapter.REDDITS_SORT_TYPES.POPULAR)
|
29
|
+
else
|
30
|
+
promise = @_reddit.listAllSubReddits(RedditAdapter.PAGINATE_TYPE.AFTER, null, RedditAdapter.REDDITS_SORT_TYPES.POPULAR)
|
31
|
+
|
32
|
+
promise.done (subs) =>
|
33
|
+
@_controller.storeSubReddits(subs)
|
34
|
+
|
35
|
+
subReddits = SubRedditsWidget.create
|
36
|
+
subReddits: subs
|
37
|
+
controller: @_controller
|
38
|
+
|
39
|
+
subReddits.appendTo(container)
|
40
|
+
options =
|
41
|
+
verticalScroll: false #vertical scrolling
|
42
|
+
horizontalScroll: true #horizontal scrolling
|
43
|
+
scrollBars: false #display scrollbars
|
44
|
+
|
45
|
+
@_navScroll = $('#subreddit-wrapper').scroller(options)
|
46
|
+
return
|
47
|
+
|
48
|
+
promise.fail (error)->
|
49
|
+
container.append ich.error_inline {error: 'Failed to load subreddits :('}
|
50
|
+
return
|
51
|
+
|
52
|
+
exports.create = (options)->
|
53
|
+
return new NavController(options)
|
54
|
+
|
55
|
+
return
|