React Native dimensions are unitless & represent density-independent pixels (abstract pixels, representing a physical distance on the device)
WARNING: DP (or DiP) not DPI
DP units keep _things roughly the same physical size
| #!/usr/bin/env bash | |
| # setup-github-ssh.sh — macOS/Ubuntu. Creates (if needed) an ed25519 key, loads it, and registers it with GitHub via gh (if available). | |
| set -euo pipefail | |
| KEY="${HOME}/.ssh/id_ed25519" | |
| PUB="${KEY}.pub" | |
| EMAIL="${GIT_EMAIL:-}" # optional: export GIT_EMAIL="you@example.com" to tag the key comment | |
| TITLE="${HOSTNAME:-$(hostname)} $(date +%Y-%m-%d)" | |
| OS="$(uname -s || true)" |
React Native dimensions are unitless & represent density-independent pixels (abstract pixels, representing a physical distance on the device)
WARNING: DP (or DiP) not DPI
DP units keep _things roughly the same physical size
| #!/bin/bash | |
| if [ ! -f "package.json" ]; then | |
| echo "No package.json. Run this at your project root." | |
| exit 1 | |
| fi | |
| echo -n "Command not found: " | |
| read command |
| -- http://hints.macworld.com/article.php?story=20111208191312748 | |
| set appname to "1Password" -------------------------- Set this to the App you want to look at | |
| set winstuff to "defaultval" | |
| set menustuff to "defaultval" | |
| tell application appname | |
| activate | |
| end tell |
Always beware that in English, the use of a past participle as an adjective is ambiguous between transitive and intransitive verbs (and perhaps between active and passive voice). isRecovered might mean that the object has been recovered by something else, or it might mean that the object has recovered. If your object represents a patient at a hospital, does "isRecovered" mean that the patient is fit and well, or that someone has fetched the patient back from the X-ray department? wasRecovered might therefore be better for the latter.
Like this but with attributes/adjectives https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/
If the property/method is a boolean, use isVal() or hasVal().
let is just an expression and akin to a function!
let greeting = hello
let greeting = "hi"; /* shadowed */
let scoped = {
My flavour/fork of the an OSX setup guide