Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
Created December 31, 2017 01:49
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 xuwei-k/fef263458cb52b76f3f1cdbbba58184a to your computer and use it in GitHub Desktop.
Save xuwei-k/fef263458cb52b76f3f1cdbbba58184a to your computer and use it in GitHub Desktop.
(1 to 30).flatMap{ n => scala.io.Source.fromFile(n + ".html").getLines.filter(_.contains("link-gray-dark no-underline h4 js-navigation-open")).map(_.replaceAllLiterally(""" <a href="""","").replaceAllLiterally("""" class="link-gray-dark no-underline h4 js-navigation-open">""","")) }.sorted.foreach(x => println("- " + x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment