Skip to content

Instantly share code, notes, and snippets.

Danny Hermes dhermes

Block or report user

Report or block dhermes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dhermes
dhermes / .gitignore
Last active Mar 25, 2019
`json-schema-to-typescript` debugging
View .gitignore
node_modules/
@dhermes
dhermes / grid.pdf
Last active Mar 14, 2019
Square grid with `matplotlib`
View grid.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhermes
dhermes / README.md
Created Mar 7, 2019
Understanding `export =`
View README.md

This is based on the [export = and import = require()][1] section in the modules page of the TypeScript handbook.

> const exportEquals = require('./exportEquals');
undefined
> exportEquals(2)
20
> exportEquals.MARKER
'HELLO'
@dhermes
dhermes / .gitignore
Last active Feb 22, 2019
Understanding `await` / `async` with `request-promise-native`
View .gitignore
node_modules/
@dhermes
dhermes / .gitignore
Last active Feb 22, 2019
`config.ts` and `tslint` warnings
View .gitignore
node_modules/
@dhermes
dhermes / .gitignore
Last active Feb 21, 2019
Understanding @types/basic-auth
View .gitignore
node_modules/
@dhermes
dhermes / .gitignore
Last active Feb 15, 2019
Testing AVA process isolation
View .gitignore
node_modules/
@dhermes
dhermes / .gitignore
Last active Feb 6, 2019
sinon / async WAT
View .gitignore
node_modules/
dist/
@dhermes
dhermes / README.md
Last active Jan 18, 2019
Examples of tail recursion, but Python fails at it
View README.md

To see the different call patterns:

================================================================================
factorial_recursive:
BEGIN: (5)
  BEGIN: (4)
    BEGIN: (3)
      BEGIN: (2)
        BEGIN: (1)
@dhermes
dhermes / Dockerfile1
Last active Jan 5, 2019
Difference between CMD and ENTRYPOINT in Dockerfile
View Dockerfile1
FROM python:3.7-alpine
WORKDIR /app
COPY run.py run.py
ENTRYPOINT ["python3.7", "run.py"]
You can’t perform that action at this time.