Reference for How to Write an Open Source JavaScript Library
The purpose of this document is to serve as a reference for:
How to Write an Open Source JavaScript Library course by Kent C. Dodds
Watch the series at egghead.io, if you haven't.
| import asyncio | |
| from datetime import timedelta | |
| from typing import List | |
| from temporalio import activity, workflow | |
| from temporalio.client import Client | |
| from temporalio.worker import Worker | |
| @activity.defn |
| from itertools import product | |
| phi = frozenset() | |
| y = frozenset({''}) | |
| syms = O, l = frozenset({'0'}), frozenset({'1'}) | |
| AND, CONS, KSTAR, NOT, OR = 'and cons * not or'.split() |
The purpose of this document is to serve as a reference for:
How to Write an Open Source JavaScript Library course by Kent C. Dodds
Watch the series at egghead.io, if you haven't.
| class PaginationMixin(object): | |
| def paginate(self, order_by=None, order_dir=None, limit=None, cursor=None, page=None): | |
| assert not page or not cursor, 'should not combine cusor and page' | |
| # convert arguments | |
| if isinstance(order_by, str): | |
| order_by = getattr(self._primary_entity.expr._identity_class, order_by) | |
| # check arguments |
2019-06-03
Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.
This grammar allows you to parse command lines for program execution into their various components - specifically: environment variables, the executable itself and any arguments passed to the executable.
It will take an input like the following:
ENV_X=true ENV_Y="yes please" ./test/my_exec arg1 -f1 "arg with spaces" 'another arg' --flag2 yet\ another\ arg --flag=10| #!/bin/bash | |
| usage="$(basename "$0") [-h] [-i] -- program that uses ffmpeg to convert mac screencapture .mov to a compressed mp4 for sharing | |
| where: | |
| -h show this help text | |
| -i (required) the mov file to convert to mp4 | |
| dependencies: | |
| Requires ffmpeg to be installed and available in the user's PATH. |