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 / README.md
Last active Jul 27, 2019
Golang: what's a slice?
View README.md

What's In a Slice?

Running this script:

$ go run main.go
As slice: [147 801]
As intSlice: {start:0xc000014260 len:2 cap:4}
s[0] = 147
s[1] = 801
@dhermes
dhermes / root_cluster_conditioning.ipynb
Last active Jun 21, 2019
Condition Number of Cluster of Roots of Polynomial
View root_cluster_conditioning.ipynb
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
Last active May 29, 2019
"Bad" Diff in bossylobster-blog
View README.md

"Bad" Diff in bossylobster-blog

This is a diff one top of a [commit][1] in my blog (at dhermes.github.io). This was created by running PUBLISH=True nox -s html from the same [commit][2] in bossylobster-blog that generated the diff, but without my intervention.

Viewing the [latest][3] commit in dhermes.github.io, we don't see any instances of &amp;lt or <span class="o">&amp;, so it appears that [updating the requirements][4] has resolved the issue.

@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/
You can’t perform that action at this time.