This documentation was automatically generated by a Python script.
Note that unless otherwise specified, all columns are nullable.
This documentation was automatically generated by a Python script.
Note that unless otherwise specified, all columns are nullable.
These are research notes from my exploration of NYC-DB data.
See the NYC-DB schema document for details on the schema.
A nice description of the ACRIS dataset is available in the fitnr/acris-download README. Also useful are the ACRIS Document Control Codes (PDF).
I found that querying some of the tables in this dataset took a long time so I filed aepyornis/nyc-db#56.
By and large, TypeScript is an incredible tool that I'm very grateful for, but sometimes it really makes me want to tear my hair out.
TypeScript 3.1 introduced a breaking change involving narrowing functions that I have no idea how to work around.
Here's one attempt to make an unconstrained generic into something that's vaguely constrained: I want to define a type T in which we don't know what properties it has, but we want to make sure that any properties it does have are booleans.
type ObjWithBooleanValues = {| import inspect | |
| from typing import Type, Any, Callable | |
| import graphene | |
| from graphql import ResolveInfo | |
| class AnnoQuery: | |
| ''' | |
| Base class for defining a GraphQL query schema and resolvers that relies | |
| on type annotations rather than more verbose (and un-type-checkable) | |
| Graphene definitions. |
| version: '3' | |
| services: | |
| app: | |
| image: jhpyle/docassemble | |
| # https://docassemble.org/docs/docker.html#tocAnchor-1-10-3 | |
| volumes: | |
| - ./backup:/usr/share/docassemble/backup | |
| ports: | |
| - 80:80 | |
| stop_grace_period: 1m |
| FROM python:3.6 | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt |
The following output was generated by the find-usa-class-usage.js script in 18F/uswds-crawler.
| Class | Usage |
|---|---|
| usa-grid | 75% |
| usa-width-one-half | 54% |
| usa-button | 51% |
| usa-unstyled-list | 45% |
| usa-width-one-third | 45% |
| usa-footer | 42% |
| #! /bin/bash | |
| set -e | |
| sed -ri 's/github\.com\/18F\/code-of-conduct\/blob\/master\/code-of-conduct\.md/18f\.gsa\.gov\/code-of-conduct\//' CONTRIBUTING.md | |
| git checkout -b coc-fix | |
| git add CONTRIBUTING.md |
| # coding=utf-8 | |
| ''' | |
| I wrote this hacky script to migrate my Wordpress content from 2014 | |
| to Hugo posts. It requires: | |
| * Python 2.7. | |
| * A trivial Django 1.8 project with the 'the-real-django-wordpress' | |
| app/package installed (it's on PyPI). It's assumed that the project |
I purchased three Amtel ATMega328p MCUs from Amazon. The product was advertised as coming "w/ Arduino UNO Bootloader", which I thought nothing of because I was going to overwrite the bootloader with my own programs.
However, I did not anticipate the fact that these units would actually come with their fuses set to the Arduino UNO defaults: most notably, they configured the unit to be driven by an external clock, which disabled the chip's internal 1 Mhz oscillator. This made it impossible to communicate with the chip via avrdude, as the chip was eternally waiting for an external clock to drive it.
Fortunately, after much searching and experimentation, I found a modified ArduinoISP script by a david.prentice that modified the default ArduinoISP to emit a slow clock signal on the Arduino's digital pin #3. Once I connected this to my MCU's XTAL1 clock input, `avrdu