19

  • Python Socratica Video
    • using the Pydoc module you can review documentation
    • This command (python -m pydoc <++>) searches for the following:
      • modules (math)
      • classes (tuple)
      • functions (pow)
    • Pydoc commands:
    • pydoc -k <keyword>
      • Search for a keyword in the synopsis lines of all available modules.
    • pydoc -n <hostname>
      • Start an HTTP server with the given hostname (default: localhost).
    • pydoc -p <port>
      • Start an HTTP server on the given port on the local machine. Port number 0 can be used to get an arbitrary unused port.
    • pydoc -b
      • Start an HTTP server on an arbitrary unused port and open a Web browser to interactively browse documentation. This option can be used in combination with -n and/or - p•
    • pydoc -W <name> ...
      • Write out the HTML documentation for a module to a file in the current directory. If contains a '\' it is treated as a filename; if it names a directory, documentation is written for all the contents.
      • If contains a '' it is treated as a filename; if it names a directory, documentation is written for all the contents.
  • CSS
    • idea of replacing some tags with different appearances:
a.tag[data-ref="star" i]::before {
    content: "⭐";
    visibility: visible;
    border-radius: 2px;
    padding: 2px;
    background: var(--blue);
    box-shadow: 0 0 4px var(--blue);
}

a.tag[data-ref="star" i] {
    visibility: hidden;
    width: 24px;
    white-space: nowrap;
}