13 Matching Annotations
  1. Feb 2020
    1. Make your own automatic blogroll This is the script I use to generate a blogroll from my OPML: #! /usr/bin/env python3 """ Parse OPML into markdown. """ import sys import re from xml.etree import ElementTree def main(fname): with open(fname, 'r', encoding='utf8') as fp: tree = ElementTree.parse(fp) for cat_node in tree.find('body').findall('outline'): print("\n## {}\n".format(cat_node.get('title'))) for node in cat_node.findall('outline'): name = node.attrib.get('text') feedurl = node.attrib.get('xmlUrl') url = node.attrib.get('htmlUrl') print("* [{}]({}) ([feed]({}))".format(name, url, feedurl)) if __name__ == "__main__": main(*sys.argv[1:])

      This is an awesome little script that may come in handy.

  2. Dec 2019
  3. Oct 2019
    1. MDX is a superset of Markdown. It allows you to write JSX inside markdown. This includes importing and rendering React components!
  4. May 2019
  5. Nov 2018
  6. Mar 2018
    1. As of this writing, Markdown has no syntax for specifying the dimensions of an image; if this is important to you, you can simply use regular HTML <img> tags.

      markdown 目前的语法不支持设置图片大小, 但可以通过一般的HTML 标签实现

  7. Jun 2016
    1. Hartl’s Tenth Rule of Typesetting Any sufficiently complicated typesetting system contains an ad hoc, informally specified, bug-ridden, slow implementation of half of LATEX.

      Sounds like Norman’s Law.

  8. Jan 2015
  9. Oct 2013
    1. Modern science has proved that the fundamental traits of every individual are indelibly stamped in the shape of his body, head, face and hands—an X-ray by which you can read the characteristics of any person on sight.

      Ma première annotation partagée publiquement!

  10. Sep 2013