I’m spending my weekend moving the HTML version of my book, How I Sold My Business: A Personal Diary, over to this website. I had it on a separate website, but I’m trying to simplify my life, and I also like the idea of having all of my content searchable on this site.
If you happen to be looking for the free, HTML version of my book on Scala and functional programming, I’m currently in the process of moving it to this website. That way you (and I) can search it more easily, along with several hundred other pages I’ve written about programming in Scala. The first page of the content is available here: Learning Functional Programming in Scala.
If you like “works in progress,” I’m currently in the process of moving the HTML version of my new book to this website (alvinalexander.com). You can find the first page here at Learning Functional Programming in Scala.
(The motivation for moving it here is that I want to a) make my life easier, and b) make it so I can find my own content by just searching this website.)
If you ever want to write your own book as an Amazon Kindle book, here’s the Kindle “supported formats” page.
I haven’t done any HTML5-specific web programming in a while, so although I know many of the HTML5 tags, I don’t know them all. Here’s a link to the HTML Element Reference page on w3schools.com.
If you ever need some good ScalaJ-HTTP examples, see the test files in the project, including this HttpBinTest.scala file. That file currently shows a number of good ScalaJ-HTTP examples, including GET, POST, redirect examples with Scala.
See that page for a full list of examples, but for my own use, here are a few of them.
As a quick note, if you ever want to created a dotted border that has some RGB opacity to it, I just used the following CSS code to style some hyperlinks, and I can confirm that it works:
In this post I share the contents of a custom TextMate command I just created that uses
sed to convert markdown content in the TextMate editor to a “pretty printer” version of HTML:
#!/bin/sh PATH=$PATH:/usr/local/bin # note: 'sed -E' gives you the advanced regex's # use pandoc to convert from markdown to html, # then use sed to clean up the resulting html pandoc -f markdown -t html |\ sed -Ee "/<p|<h2|<h3|<h4|<aside|<div|<ul|<ol/i\\ \\"
You can try to use a command like
tidy to clean the HTML, but the version of
tidy I have does not know about HTML5 tags. The TextMate Markdown plugin also doesn’t work the way I want it. Besides that, I’m trying to learn more about writing TextMate commands anyway.
As an important note, when you set this up as a TextMate command and then run it, it will convert the TextMate editor contents from markdown to HTML.
(In a related note, serenity.de is also a good resource for TextMate command and bundle documentation.)
In summary, this code shows:
* How to execute a Unix shell command from TextMate
* Specifically, how to execute a
sed command from TextMate
* How to use modern regular expressions with
* How to search for multiple regex search patterns with
Markdown FAQ: How do I create comments in Markdown? Especially comments that won’t appear in the generated output.
Part 1 of my answer is that technically there is no way — or at least no standard way — to create comments in Markdown documents, other than to use HTML comments like this: