Created
April 9, 2013 05:17
-
-
Save ricardobeat/5343140 to your computer and use it in GitHub Desktop.
HN's favorite tech talks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>HN's favorite tech talks</title> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<h1>HN's favorite tech talks</h1> | |
<ul> | |
<li> | |
<strong><a target="_blank" href="http://blip.tv/clojure/michael-fogus-the-macronomicon-5970233">Oh, blip. (404)</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://blog.fogus.me/2011/11/15/the-macronomicon-slides/">fogus: The Macronomicon Slides</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://boingboing.net/2011/12/28/linguistics-turing-completene.html">http://boingboing.net/2011/12/28/linguistics-turing-completene.html</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://businessofsoftware.org/2010/06/don-norman-at-business-of-software-2009/">Don Norman at Business of Software 2009 | Business of Software</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://channel9.msdn.com/Events/GoingNative/GoingNative-2012/Keynote-Bjarne-Stroustrup-Cpp11-Style">Day 1 Keynote - Bjarne Stroustrup: C++11 Style | GoingNative 2012 | Channel 9</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://channel9.msdn.com/Shows/Going+Deep/Expert-to-Expert-Rich-Hickey-and-Brian-Beckman-Inside-Clojure">Expert to Expert: Rich Hickey and Brian Beckman - Inside Clojure | Going Deep | Channel 9</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://en.wikipedia.org/wiki/Leonard_Susskind">Leonard Susskind - Wikipedia, the free encyclopedia</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://en.wikipedia.org/wiki/Sketchpad">Sketchpad - Wikipedia, the free encyclopedia</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://en.wikipedia.org/wiki/The_Mother_of_All_Demos">The Mother of All Demos - Wikipedia, the free encyclopedia</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://io9.com/watch-a-series-of-seven-brilliant-lectures-by-richard-f-5894600">Watch a series of seven brilliant lectures by Richard Feynman</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://libarynth.org/selfgol">selfgol [the libarynth]</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://mollyrocket.com/9438">mollyrocket.com - API Design</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://github.com/PharkMillups/killer-talks">PharkMillups/killer-talks · GitHub</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://skillsmatter.com/podcast/java-jee/radical-simplicity/js-2051">Skills Matter : The London Clojure Community:Radical Simplic</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://stufftohelpyouout.blogspot.com/2009/07/great-talk-on-ruby-object-model.html">Sthyo: Great Talk on the Ruby Object Model</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.destroyallsoftware.com/talks/wat">http://www.destroyallsoftware.com/talks/wat</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/0JXhJyTo5V8/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=0JXhJyTo5V8">The Macronomicon - Michael Fogus - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/0SARbwvhupQ/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=0SARbwvhupQ">Google I/O 2009 - The Myth of the Genius Programmer - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/3kEfedtQVOY/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=3kEfedtQVOY">28c3: The Science of Insecurity - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/bx3KuE7UjGA/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=bx3KuE7UjGA">MINIX 3: a Modular, Self-Healing POSIX-compatible Operating System - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/EGeN2IC7N0Q/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=EGeN2IC7N0Q">Ian Piumarta - To trap a better mouse - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/o9pEzgHorH0/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=o9pEzgHorH0">Stop Writing Classes - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/oKg1hTOQXoY/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=oKg1hTOQXoY">Alan Kay at OOPSLA 1997 - The computer revolution hasnt happened yet - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/RlkCdM_f3p4/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=RlkCdM_f3p4">Building a Website To Scale - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/TgmA48fILq8/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=TgmA48fILq8">Dtrace Review - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/yL_-1d9OSdk/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=yL_-1d9OSdk">Chicken chicken chicken - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/ZTC_RxWN_xo/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=ZTC_RxWN_xo">Secret History of Silicon Valley - YouTube</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://vimeo.com/10260548">Alan Kay: How Simply and Understandably Could The "Personal Computing Experience" Be Programmed? on Vimeo</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://vimeo.com/36579366">Bret Victor - Inventing on Principle on Vimeo</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://vimeo.com/5047563">ART && CODE Symposium: Hackety Hack, why the lucky stiff on Vimeo</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://vimeo.com/7088524">Jason Scott: The Atomic Level of Porn on Vimeo</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://vimeo.com/9270320">Greg Wilson - What We Actually Know About Software Development, and Why We Believe It's True on Vimeo</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://vpri.org/html/writings.php">Viewpoints Research Institute</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.confreaks.com/videos/1071-cascadiaruby2012-therapeutic-refactoring">http://www.confreaks.com/videos/1071-cascadiaruby2012-therapeutic-refactoring</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.confreaks.com/videos/759-rubymidwest2011-keynote-architecture-the-lost-years">http://www.confreaks.com/videos/759-rubymidwest2011-keynote-architecture-the-lost-years</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.dailymotion.com/video/xf88b5_jean-pierre-serre-writing-mathemati_tech">Jean-Pierre Serre - Writing mathematics badly (Part 1/3) - Vidéo Dailymotion</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hickey">Are We There Yet?</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.infoq.com/presentations/click-crash-course-modern-hardware">A Crash Course in Modern Hardware</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.infoq.com/presentations/miniKanren">Relational Programming in miniKanren</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.infoq.com/presentations/Simple-Made-Easy">Simple Made Easy</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.infoq.com/presentations/Thinking-Parallel-Programming">How to Think about Parallel Programming: Not!</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.infoq.com/presentations/Value-Identity-State-Rich-Hickey">Persistent Data Structures and Managed References</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.infoq.com/presentations/We-Really-Dont-Know-How-To-Compute">We Really Don't Know How To Compute!</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.mvcconf.com/videos">mvcConf - the Virtual ASP.Net MVC Conference</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.slideshare.net/fogus/the-macronomicon-10171952">The Macronomicon</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.slideshare.net/sriprasanna/introduction-to-cluster-computing-and-map-reduce-from-google">Introduction to Cluster Computing and Map Reduce (from Google)</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.tele-task.de/archive/lecture/overview/5819/">http://www.tele-task.de/archive/lecture/overview/5819/</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.tele-task.de/archive/video/flash/14029/">http://www.tele-task.de/archive/video/flash/14029/</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://www.w3.org/DesignIssues/Principles.html">http://www.w3.org/DesignIssues/Principles.html</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/4LG-RtcSYUQ/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=4LG-RtcSYUQ">Dynamic Languages Wizards Series - Panel on Runtime - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/4XpnKHJAok8/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=4XpnKHJAok8">Tech Talk: Linus Torvalds on git - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/5WXYw4J4QOU/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=5WXYw4J4QOU">Designing a Beautiful REST+JSON API - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/a1zDuOPkMSw/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=a1zDuOPkMSw">Hamming, "You and Your Research" (June 6, 1995) - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/aAb7hSCtvGw/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=aAb7hSCtvGw">How To Design A Good API and Why it Matters - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/agw-wlHGi0E/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=agw-wlHGi0E">Dynamic Languages Wizards Series - Panel on Language Design - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/_ahvzDzKdB0/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=_ahvzDzKdB0">Growing a Language, by Guy Steele - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/at7viw2KXak/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=at7viw2KXak">Dynamic Languages Wizards Series - Panel on Compilation - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/bx3KuE7UjGA/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=bx3KuE7UjGA">MINIX 3: a Modular, Self-Healing POSIX-compatible Operating System - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/cidchWg74Y4/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=cidchWg74Y4">Simplicity Ain't Easy - Stuart Halloway - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/EjaGktVQdNg/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=EjaGktVQdNg">"A Universe From Nothing" - Lawrence Krauss, Richard Dawkins - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/et8xNAc2ic8/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=et8xNAc2ic8">dotJS 2012 - Brian Leroux - WTFJS - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/hQVTIJBZook/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=hQVTIJBZook">JavaScript: The Good Parts - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/HxaD_trXwRE/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=HxaD_trXwRE">Lexical Scanning in Go - Rob Pike - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/j3mhkYbznBk/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=j3mhkYbznBk">Richard Feynman - The.Character of Physical Law - Part 1 The Law of Gravitation (full version) - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/KTJs-0EInW8/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=KTJs-0EInW8">Stanford Seminar - Google's Steve Yegge on GROK - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/kXEgk1Hdze0/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=kXEgk1Hdze0">Gary Bernhardt WAT - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/M7kEpw1tn50/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=M7kEpw1tn50">Encryption and HUGE numbers - Numberphile - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/mOZqRJzE8xg/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=mOZqRJzE8xg">Ivan Sutherland's Sketchpad - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/neI_Pj558CY/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=neI_Pj558CY">Baruco 2012 Keynote: The Top 10 Ways To Scam The Modern American Programmer, by Zed A. Shaw - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/nG66hIhUdEU/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=nG66hIhUdEU">Google I/O 2008 - Can We Get There from Here? - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/NGFhc8R_uO4/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=NGFhc8R_uO4">Indistinguishable From Magic: Manufacturing Modern Computer Chips - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/Nii1n8PYLrc/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=Nii1n8PYLrc">RailsConf 2011, Richard Gabriel & Guy Steele, "50 in 50" - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/NP9AIUT9nos/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=NP9AIUT9nos">Real Software Engineering by Glenn Vanderburg - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/OB-bdWKwXsU/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=OB-bdWKwXsU&playnext=1&list=PL20BE5B552A8ED54D&feature=results_video">Going Native 2012 Keynote Stroustrup - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/oCZMoY3q2uM/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=oCZMoY3q2uM">A New Way to look at Networking - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/oKg1hTOQXoY/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=oKg1hTOQXoY">Alan Kay at OOPSLA 1997 - The computer revolution hasnt happened yet - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/Own-89vxYF8/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=Own-89vxYF8">On the Road to Computer Literacy - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/PUv66718DII/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=PUv66718DII">Bret Victor - Inventing on Principle - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/qlzM3zcd-lk/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=qlzM3zcd-lk">Human Computation - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/tx082gDwGcM/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=tx082gDwGcM">Human Computation - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/v7nfN4bOOQI/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=v7nfN4bOOQI">ToorCon 2006 - Andrew "weev" Wbeelso - Mischa Spiegelmock - Lovin The LOLs - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/Vt8jyPqsmxE/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=Vt8jyPqsmxE">Extracting Energy from the Turing Tarpit - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/vUf75_MlOnw/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=vUf75_MlOnw">EHSM 2012 09 - backscatter - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/yJDv-zdhzMY/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=yJDv-zdhzMY">The Mother of All Demos, presented by Douglas Engelbart (1968) - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/yjPBkvYh-ss/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=yjPBkvYh-ss">Cluster Computing and MapReduce Lecture 1 - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/YX3iRjKj7C0/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=YX3iRjKj7C0">RailsConf 09: Robert Martin, "What Killed Smalltalk Could K - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/ZAf9HK16F-A/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=ZAf9HK16F-A">The Bad Touch(1) -- Damian Conway - YouTube</a></strong> | |
</li><li> | |
<img src="http://img.youtube.com/vi/ZDR433b0HJY/1.jpg" /> | |
<strong><a target="_blank" href="http://www.youtube.com/watch?v=ZDR433b0HJY">Introduction to Git with Scott Chacon of GitHub - YouTube</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://youtu.be/lQAV3bPOYHo">LXJS 2012 - James Halliday - Harnessing The Awesome Power Of Streams - YouTube</a></strong> | |
</li><li> | |
<strong><a target="_blank" href="http://yuiblog.com/crockford/">Crockford on JavaScript: A Public Lecture Series at Yahoo!</a></strong> | |
</li> | |
</ul> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: "Helvetica Neue", sans-serif; | |
color: #333; | |
} | |
h1 { | |
margin: 20px 10px; | |
color: #f77; | |
} | |
ul { | |
margin: 0; | |
padding: 0; | |
} | |
li { | |
margin: 5px 0; | |
position: relative; | |
list-style: none; | |
} | |
li:hover { | |
background: #f0f0f0; | |
} | |
li img { | |
max-width: 60px; | |
max-height: 60px; | |
top: 10px; | |
left: 10px; | |
position: absolute; | |
} | |
li a { | |
display: block; | |
color: #444; | |
padding: 20px 10px 20px 80px; | |
background: #f3f3f3; | |
border-bottom: 1px solid #eee; | |
text-decoration: none; | |
} | |
li a:hover { | |
background: #fcc; | |
} | |
li a:visited { | |
color: #999; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs = require 'fs' | |
request = require 'request' | |
async = require 'async' | |
urls = fs.readFileSync('talks.txt').toString().split(/\n/) | |
titles = [] | |
count = 0 | |
getTitle = (talk, callback) -> | |
request.get talk, (err, res, body) -> | |
console.log "#{++count} of #{urls.length}" | |
title = body?.match(/<title>(.*)<\/title>/)?[1] | |
title ?= talk | |
callback null, title | |
async.map urls, getTitle, (err, titles) -> | |
talks = titles.map (title, i) -> | |
url = urls[i] | |
if matches = url.match(/youtube.com\/watch\?v=([^&]+)/) | |
image = "http://img.youtube.com/vi/#{matches[1]}/1.jpg" | |
return { title, url, image } | |
printMD(talks) | |
printMD = (talks) -> | |
content = '' | |
for talk in talks | |
content += """ | |
<li> | |
#{["<img src=\"#{talk.image}\" />" if talk.image]} | |
<strong><a href="#{talk.url}" target="_blank">#{talk.title}</a></strong> | |
</li> | |
""" | |
output = """ | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>HN's favorite talks</title> | |
</head> | |
<body> | |
#{content} | |
</body> | |
</html> | |
""" | |
console.log output | |
fs.writeFile 'talks.html', output.toString(), -> console.log "written to talks.html" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment