Skip to content

Instantly share code, notes, and snippets.

View clintharrison's full-sized avatar

Clint Harrison clintharrison

  • New York, NY
  • 22:33 (UTC -04:00)
View GitHub Profile
{
"title": "clint's karabiner caps lock",
"rules": [
{
"description": "caps lock if-alone esc, otherwise ctrl, shift-caps for original behavior",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
exports_files(["pusher_template.sh"])
from pex.fetcher import PyPIFetcher
from pex.interpreter import PythonInterpreter
from pex.package import WheelPackage
from pex.resolvable import Resolvable
from pex.resolver import resolve
from pex.resolver_options import ResolverOptionsBuilder
def main():
requirement = "bcrypt==3.1.7"
platform = "macosx_10.13-x86_64-cp-36-cp36m"
"""Generate reStructuredText from Stardoc protobuf input.
The default Stardoc documentation renderer creates Markdown files with a significant amount of embedded HTML.
This raw HTML can't be published to Confluence with the Sphinx Confluence builder, but Markdown table support
is very primitive, and it doesn't support multi-line content in cells.
As a result, we instead build up a reStructuredText document, which has better table support, from the "source" protobuf
messages output by Stardoc. This is the "native" format of Sphinx, but is slightly less pleasant for humans to write.
"""
from __future__ import print_function