jq is useful to slice, filter, map and transform structured json data.
brew install jq
NetworkManager supports WiFi powersaving but the function is rather undocumented.
From the source code: wifi.powersave can have the following value:
I get asked pretty regularly what my opinion is on merge commits vs rebasing vs squashing. I've typed up this response so many times that I've decided to just put it in a gist so I can reference it whenever it comes up again.
I use merge, squash, rebase all situationally. I believe they all have their merits but their usage depends on the context. I think anyone who says any particular strategy is the right answer 100% of the time is wrong, but I think there is considerable acceptable leeway in when you use each. What follows is my personal and professional opinion:
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<div id="graph"> | |
<h1>Connecting Two Points with a Line in D3.js</h1> | |
</div> | |
/** | |
* Table component that accepts column and row definitions in its content to be registered to the table. | |
*/ | |
@Component({ | |
selector: 'mat-dynamic-table', | |
templateUrl: './mat-dynamic-table.component.html', | |
styleUrls: ['./mat-dynamic-table.component.scss'], | |
changeDetection: ChangeDetectionStrategy.OnPush | |
}) | |
export class MatDynamicTableComponent<T> implements OnInit, OnChanges, AfterContentInit { |
In response to a question on Twitter by @everybody_kurts:
“Hi @mbostock, I was looking at your stacked area chart at https://observablehq.com/@d3/stacked-area-chart. At the end of the file, you import swatches from "@d3/color-legend". I tried finding this on npmjs but to no avail. Is this exclusive to @observablehq only?”
This shows how to use the swatches
function from the @d3/color-legend notebook in a plain HTML page. The example data for the swatches (the color scale and margin) is copied from the @d3/stacked-area-chart notebook.
license: gpl-3.0 |
Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.