Calling nvm use automatically in a directory with a .nvmrc file
Put this into your $HOME/.zshrc to call nvm use automatically whenever you enter a directory that contains an .nvmrc file with a string telling nvm which node to use:
Calling nvm use automatically in a directory with a .nvmrc file
Put this into your $HOME/.zshrc to call nvm use automatically whenever you enter a directory that contains an .nvmrc file with a string telling nvm which node to use:
You can render UML diagrams using Mermaid. For example, this will produce a sequence diagram:
sequenceDiagram
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!| const clusterUrls = ['http://127.0.0.1:9000', 'https://badserver.fail']; | |
| (async () => { | |
| const healthCheckPromises = clusterUrls.map((clusterUrl) => checkServerHealth(clusterUrl)); | |
| const results = await Promise.allSettled(healthCheckPromises); | |
| return results; | |
| })(); | |
| /** |
classDiagram
class Organization
class Team
Team: +int organizationId
Team: +array LabelsText
class User
User: +int teamId
class Repo
Repo: +int organizationId| /* eslint-disable no-debugger, no-console */ | |
| process.env.GRPC_VERBOSITY = 'DEBUG'; | |
| process.env.GRPC_TRACE = 'all'; | |
| const { | |
| GoogleAdsApi, | |
| services: { KeywordSeed }, | |
| } = require('google-ads-api'); // package v5.2.0 = Google Ads API to v7 | |
| const Env = require('../../config/env.js'); |
| const { | |
| GoogleAdsClient, | |
| GenerateKeywordIdeasRequest, | |
| KeywordSeed, | |
| } = require('google-ads-node'); // v2.0.4 | |
| const { StringValue } = require('google-protobuf/google/protobuf/wrappers_pb'); // v3.14.0 | |
| (async () => { | |
| // Client | |
| const oGoogleAdsClient = new GoogleAdsClient({ |
| #!/bin/bash | |
| omxplayer --loop --vol -1300 -o asla /home/pi/twinkle-long.mp3 | |
| # omxplayer --loop --vol -1300 -o asla /home/pi/twinkle-long.mp3 & |
| const MIDI_OFFSET = 1; | |
| const BANK_MIN = 1; | |
| const BANK_MAX = 30; | |
| const PRESETS_PER_BANK = 12; // CC# 10-21, Presets A-L | |
| const PRESET_MIN = 10; // Control Change # - Preset A | |
| const PRESET_MAX = 21;// Control Change # - Preset L | |
| const CONTROL_CHANGE_VALUE = 1; // Control Change Value - (1 = On Press) | |
| function getBank(incomingProgramChange) { | |
| return Math.floor(incomingProgramChange / PRESETS_PER_BANK) + MIDI_OFFSET; |
| // ArduinoJson - arduinojson.org | |
| // Copyright Benoit Blanchon 2014-2020 | |
| // MIT License | |
| // | |
| // This example shows how to deserialize a JSON document with ArduinoJson. | |
| #include <iostream> | |
| #include "ArduinoJson.h" | |
| int main() { |