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 Nov 8, 2019
Brief Tour of Golang `html/template`
View README.md

How Do Golang HTML Templates Work?

$ go run main.go
Above
(enabled=NO) Hello World!
Below
@dhermes
dhermes / .gitignore
Last active Nov 5, 2019
Angle Between Two Planar Vectors
View .gitignore
.nox/
__pycache__/
.DS_Store
@dhermes
dhermes / README.md
Last active Oct 29, 2019
Forwarding args with `npm`
View README.md

Forwarding args with npm

No Flags Directly to npm run

$ npm run foo

> @ foo .../npm-script-flag-forwarding
> ./info.sh && npm run bar --custom1=cheese
@dhermes
dhermes / .gitignore
Last active Oct 23, 2019
Benchmarking Benefits of "Passing Along" a Promise
View .gitignore
node_modules/
@dhermes
dhermes / .gitignore
Last active Oct 18, 2019
Benchmarking `_.each` vs. For Loop
View .gitignore
node_modules/
@dhermes
dhermes / .gitignore
Last active Oct 8, 2019
Benchmarking `_.compact` vs. Branching
View .gitignore
node_modules/
@dhermes
dhermes / .coveragerc
Last active Sep 24, 2019
Testing out Coverage.py In-flight Save
View .coveragerc
[run]
branch = True
concurrency = multiprocessing
data_file = coverage-report.bin
parallel = True
[html]
directory = htmlcov
@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.
You can’t perform that action at this time.