Skip to content

Instantly share code, notes, and snippets.

Created June 30, 2016 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/61a3db29a93fa11149d80d9f3cf441ec to your computer and use it in GitHub Desktop.
Save anonymous/61a3db29a93fa11149d80d9f3cf441ec to your computer and use it in GitHub Desktop.
Best Hacker News stories, sorted by score to comment ratio
(18/0) C++17, All Final Features from Oulu in a Few Slides (12004911)
(26/0) Escape Tunnel, Dug by Hand, Is Found at Holocaust Massacre Site (12003975)
(36/2) Chatbot lawyer overturns 160,000 parking tickets (11992806)
(215/12) Wide and Deep Learning: Better Together with TensorFlow (12003281)
(85/5) Prometheus and Kubernetes up and running (11987702)
(32/2) True Fakes on Location: World-Building, Hollywood-Style (12005190)
(26/2) An Indispensable Guide to Early American Murder (11994953)
(217/17) Knuth reenacts his first Stanford lecture: The Analysis of Algorithms [video] (12002614)
(184/15) High Performance Browser Networking (11999649)
(36/3) Michael Herr, 1940–2016 (11992732)
(114/10) Common Language Server Protocol (11988446)
(240/22) Making open source data more available (12004442)
(32/3) Projects at Kestrel Institute (11998002)
(32/3) Three Ways to Build an Artificial Kidney (12001132)
(21/2) Why you shouldn't share links on Facebook (12002444)
(39/4) How to find the biggest prime numbers (11990055)
(28/3) Chronic fatigue syndrome is in your gut, not your head (11999204)
(28/3) War and Planets: Astronomical Tables in the History of Science (11994839)
(27/3) What k-pop can teach us about design (11994735)
(81/9) Elastic Network Adapter – High Performance Network Interface for EC2 (11995866)
(62/7) Hashcat v3.00 released (12006612)
(239/27) Ten Year Old Girl Gets Accepted as Paris Innovation Fellow (12005058)
(84/10) Visualize Algorithms based on Backpropagation (12002677)
(1138/136) The Daredevil Camera (12004866)
(56/7) Botan: Crypto and TLS for C++11 (12004861)
(37/5) Memcpy (and friends) with NULL pointers (12002746)
(75/11) StartEncrypt considered harmful today (12007906)
(136/20) Introducing MLFE: ML-Flavoured Erlang (11992773)
(79/12) The Fixable Problem with Serverless (12001691)
(46/7) Exploring and exploiting Lenovo firmware secrets (12001871)
(89/14) Elie Wiesel Visits Disneyland (11994248)
(245/40) From Losing Money to a Profit Margin in 5 Months (12000311)
(121/20) PulseAudio 9.0 released (11997996)
(46/8) Deep Learning to Break Semantic Image CAPTCHAs [pdf] (12001964)
(28/5) IBM Openblockchain (11995314)
(109/20) The Oracle of Arithmetic (11995049)
(87/16) A Natural Language User Interface is just a User Interface (12000854)
(59/11) BlindBox: Deep Packet Inspection Over Encrypted Traffic [pdf] (12002305)
(48/9) Shifting Incomes for American Jobs (11999452)
(26/5) Automatic Portrait Segmentation for Image Stylization [pdf] (11995440)
(52/10) Iran has tried to suppress a video game about their Islamic revolution (12004677)
(275/54) Lossless compression with Brotli (12001839)
(80/16) Learning a Manifold of Fonts (2014) (11991451)
(79/16) Show HN: Instant alerts for applications in distress (11994985)
(54/11) Non-beneficial treatments at the end of life: a review on extent of the problem (11990269)
(49/10) Getting Started with C# (11989188)
(115/24) Learn JavaScript and artificial intelligence in a fun, interactive way (12007765)
(33/7) Someone Can Change Your Facebook Credentials by Just Sending in a Fake Passport (11995491)
(126/27) Jepsen: Crate 0.54.9 version divergence (11997212)
(23/5) Web font preloading for HTML5 games (12001164)
(430/94) D3 v4.0.0 released (11995332)
(49/11) Changes to Evernote’s Pricing Plans (11994739)
(71/16) Project Triforce: Run AFL on Everything (11988657)
(576/130) Languages Which Almost Became CSS (11994405)
(114/26) Beamforming in PulseAudio (12001090)
(84/20) LiquidPiston: Efficient rotary engine (11995735)
(95/23) Goa: Design-First API Generation (12004218)
(112/28) Fewer Than 1000 Brits Googled “What Is the EU?” After Referendum (11995297)
(150/38) How to implement a programming language in JavaScript (11998581)
(23/6) Android N is Nougat (12009512)
(183/48) Extracting Qualcomm's KeyMaster Keys – Breaking Android Full Disk Encryption (12007923)
(49/13) Why you shouldn’t share private links on Facebook (12007700)
(75/20) Free robot lawyer has a 64% success rate (12007832)
(52/14) Extreme Methods for Breaking Bad Habits (12008269)
(103/29) There are now more Americans working for online-only outlets than newspapers (11988913)
(134/38) A year of Windows kernel font fuzzing #1: the results (12005062)
(21/6) Universal Basic Income – Poll Results from IGM Economic Experts Panel (12009562)
(157/45) Judge Says IP Address Doesn't Prove Anything in Piracy Case (11999948)
(38/11) Costly Mistakes Made by Startups (11988315)
(137/40) Alvin Toffler, Author of ‘Future Shock,’ Dies at 87 (12004470)
(36/11) Nothing but radio silence from DigitalOcean while 38k sites remain down (12005494)
(212/65) This Week In Servo 69 (11992368)
(83/26) Control Groups (cgroups) for the Web? (11998210)
(49/16) Parellagram – Dynamic Image Resizing with Go (12007598)
(535/178) How to Compromise the Enterprise Endpoint (11998774)
(63/21) Two Spreadsheets, Microsoft Access, and a Pulitzer Prize for Public Service (11988520)
(69/23) “I have a copy of a Terrorism Blacklist. Should it be shared?” (11995599)
(66/22) Student Builds Daphne Oram’s Unfinished ‘Mini-Oramics’ (12001721)
(327/110) Burnout and Mental Health (11989203)
(103/35) NRA complaint takes down Surge's 38,000 websites (12009313)
(79/27) Barium-144 Nucleus Is Surprisingly Pear Shaped (11989649)
(193/66) GitHub's 2015 Transparency Report (11996031)
(38/13) Can the European Union Learn from Switzerland? (2014) (11991942)
(35/12) Google: Symantec antivirus flaws are 'as bad as it gets' (12002384)
(32/11) Evidence for Abundance (12002623)
(84/29) The Tyranny of the Clock – Ivan Sutherland (2012) [pdf] (11995966)
(104/36) What is Symbolic Computation? (12001485)
(148/53) Ask HN: Best place to learn GPU programing? (11999892)
(53/19) Move Loot shuts down, sells customer list to Handy (12005354)
(245/88) AWS Asia Pacific (Mumbai) Region (11991489)
(112/41) How I welcomed an immigrant family with a Linux laptop (11992578)
(124/46) Introducing Worldwide SMS Messaging (12008112)
(35/13) Midas – Enriched contact information for email lists (11997530)
(118/44) Common definitions in chip design and production (12000169)
(53/20) Englebart's Violin (2012) (11997761)
(464/176) Exercise Releases Brain-Healthy Protein (11995637)
(487/198) Ebay posts every character a user types into the password box (12000820)
(41/17) Bernie Sanders: Democrats Need to Wake Up (11999270)
(359/149) WireGuard: next generation in-kernel modern VPN (11994265)
(265/110) Startup incorporation checklist (11994645)
(324/135) What happens when you try to publish a failure to replicate in 2015/2016 (11999104)
(33/14) Zeit.world: free global DNS (12005756)
(40/17) Snowden’s Favorite Cloud Service Now Has a Group Chat App (12008892)
(298/127) My condolences, you’re now the maintainer of a popular open source project (12000746)
(46/20) Show HN: Chatible – Anonymously Chat with Strangers in Facebook Messenger (12004367)
(89/39) Show HN: Monkberry – a JavaScript library for building web user interfaces (12000893)
(73/32) Friends don't let friends do Java (11999589)
(230/101) The Moral Economy of Tech (11991647)
(68/30) The Godzilla of Solar Ovens (12004295)
(65/29) Show HN: Telegram bot with filters to read Hacker News (11991870)
(385/172) NSA tracking cellphone locations worldwide, Snowden documents show (2013) (11992358)
(60/27) Universal rendering with SwiftShader, now open source (12003045)
(317/143) 10-Year Exercise Periods Make Sense (11988344)
(145/67) Google Calendar is down (12008365)
(91/43) How China Took Center Stage in Bitcoin’s Civil War (12007376)
(94/45) Identifying North American Phone Switches (11994428)
(159/77) There Is No Handbook for Being a Writer (11993339)
(100/49) Winklevoss Bitcoin Trust (12004604)
(66/33) Kleiner Perkins has raised two new funds totaling $1.4B (12005221)
(460/233) “Should you encrypt or compress first?” (11994286)
(230/118) Amazon Elastic File System – Production-Ready in Three Regions (11999429)
(194/100) Ways to maximize your cognitive potential (12008024)
(208/113) Show HN: “OK Google” – Explore Google Now voice commands (12000264)
(77/42) Mise en abyme (12005869)
(77/42) Show HN: Improved passive TCP/IP geolocation (11993451)
(153/84) How Amazon Triggered a Robot Arms Race (12000858)
(58/32) CP/M development environment setup (12000635)
(34/19) S&P strips UK of last top-notch credit rating after Brexit vote (11988753)
(94/53) Ask HN: Did anyone's life ever gotten more comfortable after accepting funding? (12000118)
(577/327) Investing Returns on the S&P500 (12001320)
(382/218) Why Google Stores Billions of Lines of Code in a Single Repository (11991479)
(42/24) Human Connectome Project Updates (12005282)
(47/27) Clandestine black hole may represent new population (11992644)
(106/62) The warp drive will have to wait (12007877)
(105/62) The link between language and cognition is a red herring (12007716)
(66/39) Neglected channels could add Wi-Fi capacity (11994390)
(240/142) Dunning-Kruger and other memes (2015) (11990183)
(30/18) Airbnb and house-sharing firms reduced New York housing stock by 10% – study (11988523)
(117/71) Start multi-tasking with your virtual reality headset (11999847)
(198/123) Poll: What Programming Language Do You Use for Server Side Web Development? (11994452)
(289/184) Huge helium discovery 'a life-saving find' (11992431)
(91/58) Facebook uses location to suggest new friends (11992599)
(249/161) Ōryōki Web Browser (12003657)
(140/92) Reusing Abandoned Big-Box Superstores Across America (11992882)
(45/30) Iris Automation (YC S16) gives drones situational awareness to fly autonomously (11990142)
(66/45) How the Internet Changes Our Thoughts and Behaviors for the Worse (2011) (11993604)
(291/201) To Compete Better, States Are Trying to Curb Noncompete Pacts (11997815)
(278/194) Simple Ways of Reducing the Cognitive Load in Code (11992684)
(75/55) Ask HN: How to reconcile “teach everyone to code” and “only hire the top 1%”? (11990896)
(19/14) Accessing the Information Assurance Website (12005099)
(127/94) Palantir Buyback Plan Shows Need for New Silicon Valley Pay System (12003870)
(150/112) Facebook to Change News Feed to Focus on Friends and Family (12006392)
(248/195) Spanish authorities raid Google offices over tax (12007940)
(296/244) Bluetooth 5 will quadruple the range, double the speed (11991167)
(231/191) Dwarf Fortress Development (11998433)
(142/120) Happy Tau Day (11992553)
(30/26) Why this CEO is worth almost $1 billion but lives in a trailer park (12000706)
(202/176) AI fighter pilot wins in combat simulation (11993366)
(50/44) What to Make of Finnegans Wake? (2012) (12003739)
(85/75) Review of ‘Chaos Monkeys’, Silicon Valley tell-all (12003912)
(224/199) Bushido: Way of Total Bullshit (11990721)
(47/42) Birchbox Cuts About 12% of Staff (11997992)
(66/59) Human or Machine: Can You Tell Who Wrote These Poems? (11988822)
(48/43) FAQ from Guccifer 2.0 (12008965)
(60/54) Google Cloud outage brings down Layer (11999525)
(55/50) To study possibly racist algorithms, professors have to sue the US (12002668)
(91/83) Show HN: Wallarm – Protect your web apps or APIs with fast Nginx-based instances (12002485)
(92/85) Zend Framework 3 Released (11996832)
(120/120) Ethereum Protocol Developer Holds $115k Worth of DAO Tokens (12005855)
(37/37) MSI SteelSeries Keyboard LED Controller for Linux (12006795)
(22/22) GitHub is eating Jira (11989605)
(52/54) Percentage of salary spent on rent near technology companies in SF (11997123)
(74/79) Doctors issue warning about effects of LED streetlights on health (11992946)
(60/66) Eggs Don’t Cause Heart Attacks – Sugar Does (11994491)
(297/327) We built voice modulation to mask gender in technical interviews (12002673)
(84/95) The rational exuberance of 5G (12007395)
(292/335) Volkswagen's U.S. diesel emissions settlement to cost $15B (11990152)
(112/130) Amazon Has Swallowed Downtown Seattle (12001427)
(54/63) Voters may be asked to tax SF tech companies (11995055)
(102/121) What media companies don’t want you to know about ad blockers (12006957)
(107/127) Lending Club plans layoffs, discloses loans to former CEO and family members (11995904)
(75/90) Today’s Renters Are Worse Off Than Their Parents (12005158)
(103/128) Ask HN: How do I stop myself being toxic? (12000694)
(111/138) The Brexit Possibility (11994799)
(42/53) Rm -rf / in Windows Subsystem for Linux reveals sharp set of teeth (12006285)
(73/95) Hacked: Private Messages From Dating Site ‘Muslim Match’ (12008234)
(51/68) Apple could block iPhone camera at cinemas, concerts (12000574)
(129/183) Ask HN: What is your best advice for a developer to write better code? (12001925)
(113/164) Airbnb Is Suing San Francisco to Block Rental Rules (11990451)
(34/51) Airbnb Is Said to Be Seeking Funding Valuing It at $30B (11996151)
(103/157) Urbit Is Building a 'Virtual Galaxy' for Bitcoin Nodes (12003142)
(105/164) Half Blamed the EU for Their Problems, Blame Facebook for Yours (12000847)
(63/109) Extra Mass on Bike Wheels Is Worse than on Frames (11989422)
(52/94) Hillary Clinton Announces Tech Plan (12001859)
(103/216) Globalization’s losers are revolting (11987981)
(37/82) Elections are bad for democracy (12002172)
(43/98) Brexit: Berlin eyes Britain’s tech talent (11992464)
(41/99) Reality Check: Have Leave campaigners changed their minds? (11992455)
(42/105) California Hits the Brakes on High-Speed Rail (11996355)
(241/630) Ask HN: Examples of reliable software you enjoy using (11995816)
require 'json'
require 'open-uri'
story_ids = JSON.parse(open("https://hacker-news.firebaseio.com/v0/beststories.json").read)
stories = Hash.new
story_ids.map do |story_id|
Thread.new do
url = "https://hacker-news.firebaseio.com/v0/item/#{story_id}.json"
stories[story_id] = JSON.parse(open(url).read)
end
end.map(&:join)
require 'ostruct'
class Item < OpenStruct
def <=>(other)
other.score_to_comment_ratio <=> score_to_comment_ratio
end
def score_to_comment_ratio
score.to_f / descendants.to_f
end
end
items = stories.map { |x, data| Item.new(data) }
items.sort.each do |item|
puts "(#{item.score}/#{item.descendants}) #{item.title} (#{item.id})"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment