Using selection.property(local, function(d) { … })
to set a local
Forked from mbostock's block: Local Variables
Using selection.property(local, function(d) { … })
to set a local
Forked from mbostock's block: Local Variables
license: mit |
I hereby claim:
To claim this, I am signing this object:
var fsPromises = require('fs').promises | |
var dsv = require('d3-dsv'); | |
var download = require('download'); | |
async function all(){ | |
let data = dsv.csvParse(await fsPromises.readFile("data.csv", { encoding: "utf8" })) | |
for(let entry of data) { | |
console.log(entry.url, entry.id) |
Q: What is human life expectancy in the United States? | |
A: Human life expectancy in the United States is 78 years. | |
Q: Who was president of the United States in 1955? | |
A: Dwight D. Eisenhower was president of the United States in 1955. | |
Q: What party did he belong to? | |
A: He belonged to the Republican Party. | |
Q: Who was president of the United States before George W. Bush? |
[ | |
{ | |
"id":"8447d084.7e9fb", | |
"type":"tab", | |
"label":"Flow 1", | |
"disabled":false, | |
"info":"" | |
}, | |
{ | |
"id":"5ab61f98.c68d3", |
Serial | |
- https://openwrt.org/toh/tp-link/re450#serial | |
- https://forum.openwrt.org/t/tp-link-re450-brick-after-trying-to-return-the-original-firmware/10563/13 | |
- https://forum.openwrt.org/t/help-please-110-re450-bricked/7641/12 | |
Tftp | |
- https://forum.freifunk.net/t/router-recovery-tftp-pushbutton-und-ttl-serial-recovery/8691 | |
- https://community.tp-link.com/en/home/forum/topic/81462?page=1 | |
- https://mikepalmer.net/tp-link-archer-c7-ac1750-v2-tftp-recovery/ |
#!/bin/sh | |
maxTemp="+64" | |
while true; do | |
currTemp=$(sensors | awk '/junction/ {print $2}' | cut -d"." -f1) | |
if [[ $currTemp > $maxTemp ]]; then | |
shutdown now | |
echo "too high" | |
fi |
wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-1.6.tar.gz | |
tar xvfz jq-1.6.tar.gz | |
cd jq-1.6/ | |
autoreconf -vfi | |
modules/oniguruma | |
autoreconf -vfi | |
cd ../.. | |
./configure --with-oniguruma=builtin | |
make -j8 | |
sudo make install |
jq -ncM "$(cat ./input.jq)" | ./e3dc -splitrequests | jq -cM "$(cat ./output.jq)" | jq '.result.DB_HISTORY_DATA + {"date":{".sv": "timestamp"}}' | curl -X POST -d @- https://XXXX.europe-west1.firebasedatabase.app/history.json | |
sources: | |
- https://knx-user-forum.de/forum/%C3%B6ffentlicher-bereich/knx-eib-forum/diy-do-it-yourself/1614158-neue-library-f%C3%BCr-rscp-kommunikation-mit-e3dc-speicher-inkl-kommandozeilen-utility |