- https://alexharri.com/blog/jsdoc-as-an-alternative-typescript-syntax
- https://dev.to/samuel-braun/boost-your-javascript-with-jsdoc-typing-3hb3
Here's how you can do it for common primitive types:
/* | |
# `node-engine-strict.js` | |
A script that ensures your project runs with a Node.js version that satisfies | |
the `engines.node` field in your `package.json`. | |
It works by checking for a compatible version installed via **NVM** (Node | |
Version Manager), and will fall back to the system-installed Node.js if it's | |
compatible. If neither is suitable, the script exits with an error. |
Here's how you can do it for common primitive types:
#!/usr/bin/env bash | |
#=========================================================================== | |
# Works only with the official image available in the Mac App Store. | |
# Make sure you download the official installer before running this script. | |
#=========================================================================== | |
# Change this at your desire. Sometimes this works out of the box, sometimes not. | |
# Default size: ~16 GB | |
DISK_SIZE="15361m" |
#!/bin/bash | |
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine | |
# Used to provide DDNS service from anywhere | |
# DNS redord needs to be pre-created on Cloudflare | |
# Proxy - uncomment and provide details if using a proxy | |
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport> | |
# Cloudflare zone is the zone which holds the record |
#!/usr/bin/env bash | |
#=========================================================================== | |
# Works only with the official image available in the Mac App Store. | |
# Make sure you download the official installer before running this script. | |
#=========================================================================== | |
# Change this at your desire. Sometimes this works out of the box, sometimes not. | |
# Default size: ~13.5 GB | |
DISK_SIZE="13000m" |
#!/usr/bin/env bash | |
#=========================================================================== | |
# Works only with the official image available in the Mac App Store. | |
# Make sure you download the official installer before running this script. | |
#=========================================================================== | |
hdiutil create -o /tmp/Catalina.cdr -size 9000m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction | |
hdiutil detach "/Volumes/Install macOS Catalina" |
vicare_outside_temperature: | |
friendly_name: "Aussentemperatur" | |
unit_of_measurement: '°C' | |
value_template: "{{ state_attr('climate.vicare_heating', 'outside_temperature') }}" | |
vicare_desired_temperature: | |
friendly_name: "Zieltemperatur" | |
unit_of_measurement: '°C' | |
value_template: "{{ state_attr('climate.vicare_heating', 'temperature') }}" |
#include <Arduino.h> | |
#include <WiFi.h> | |
#include <driver/dac.h> | |
const int dataPin = 4; // Blinkt pin 16 | |
const int clockPin = 5; // blinkt pin 18 | |
const int numLEDs = 8; | |
uint8_t pixels[numLEDs * 3]; | |
void spi_out(uint8_t n) { |