Skip to content

Instantly share code, notes, and snippets.

not ok 1 admintools should produce some html
TypeError: Cannot read property 'setProperty' of undefined
at Element.styleConstant (node_modules/d3/d3.js:751:17)
at node_modules/d3/d3.js:962:16
at d3_selection_each (node_modules/d3/d3.js:968:30)
at Array.d3_selectionPrototype.each (node_modules/d3/d3.js:961:12)
at Array.d3_selectionPrototype.style (node_modules/d3/d3.js:744:17)
at init (lib/client/chart.js:9:785)
at Object.dataUpdate (lib/client/index.js:9:67903)
at Context.<anonymous> (tests/admintools.test.js:207:12)
@PieterGit
PieterGit / gist:9ee059ef3038c99bda28733d780e327d
Created January 5, 2018 07:15
gpio readall, pi3 with pi hat attached
# gpio readall
+-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| | | 3.3v | | | 1 || 2 | | | 5v | | |
| 2 | 8 | SDA.1 | ALT0 | 1 | 3 || 4 | | | 5v | | |
| 3 | 9 | SCL.1 | ALT0 | 1 | 5 || 6 | | | 0v | | |
| 4 | 7 | GPIO. 7 | IN | 1 | 7 || 8 | 0 | IN | TxD | 15 | 14 |
| | | 0v | | | 9 || 10 | 1 | IN | RxD | 16 | 15 |
| 17 | 0 | GPIO. 0 | IN | 1 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |
@PieterGit
PieterGit / gist:15fe2b476ea8225eacd624cd73d65c6d
Created January 5, 2018 12:58
gpio readall on pi zero w with PI hat attached
# gpio readall
+-----+-----+---------+------+---+-Pi ZeroW-+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| | | 3.3v | | | 1 || 2 | | | 5v | | |
| 2 | 8 | SDA.1 | ALT0 | 1 | 3 || 4 | | | 5v | | |
| 3 | 9 | SCL.1 | ALT0 | 1 | 5 || 6 | | | 0v | | |
| 4 | 7 | GPIO. 7 | OUT | 0 | 7 || 8 | 0 | IN | TxD | 15 | 14 |
| | | 0v | | | 9 || 10 | 1 | IN | RxD | 16 | 15 |
| 17 | 0 | GPIO. 0 | IN | 1 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |