xdotool search --name "Zoom Meeting ID:"
This will exit non-zero if no meeting matching this name is found. "Zoom Meeting ID:"
This window exists regardless of sharing or not sharing, in my tests.
# Additional Fish completions for Jujutsu | |
# https://gist.github.com/bnjmnt4n/9f47082b8b6e6ed2b2a805a1516090c8 | |
# TODO: passthru other args? E.g.. --at-operation, --repository | |
function __jj | |
command jj --ignore-working-copy --color=never --quiet $argv 2> /dev/null | |
end | |
# Aliases | |
# Based on https://github.com/fish-shell/fish-shell/blob/cd71359c42f633d9d71a63591ae16d150407a2b2/share/completions/git.fish#L625. |
#!/usr/bin/env bash | |
set -euo pipefail | |
echo ":: Renaming local master to main" | |
git branch -m master main || true | |
git fetch origin | |
git remote set-head origin -a | |
if git remote show upstream >/dev/null 2>&1; then |
#!/usr/bin/env python3 | |
# Updated: 2018-10-17 | |
import re, sys, os | |
""" | |
Converts the Nix profile SH script to a Fish-compatible profile using a | |
simple line-by-line replace algorithm. | |
""" |
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
When coding financial calculations, it's common to have a variety of numeric values such as Quantity, Price, Amount and so on. In quant finance, these usually refer to the Price observed in the market, a Quantity of shares. A Quantity of shares all traded at a given Price in a given currency will give you an Amount of that currency (the total value of the trade).
It's simple and fun exercise to write the functions you'd need to perform all the correct ways of combining Price, Quantity and Amount. There are a couple of things that don't work as you might expect (e.g., multiplication is ok but you need to think about division semantics.).
Many Haskell tutorials encourage the coder to wrap Double and Int in newtypes like this, so the compiler can help by detecting incorrect combinations of the different types, and so the code documents itself better. e.g.
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
[...] each glyph has its own monosyllabic name, designed to be pronounced quickly in combination with another glyph to form a rune name. As languages are often read-aloud, this saves the programmer from having to say "dollar sign, question mark"--"bucwut" is much more compact.
– [Hoon documentation][0]
symbol | pronounciation |
---|---|
| | bar |
$ | buc |
#! /usr/local/bin/fish | |
if test -n "$HOME" ; | |
set -xg NIX_LINK "$HOME/.nix-profile" | |
# Set the default profile. | |
if not test -L "$NIX_LINK" ; | |
echo "creating $NIX_LINK" >&2 | |
set -l _NIX_DEF_LINK /nix/var/nix/profiles/default | |
/nix/store/cdybb3hbbxf6k84c165075y7vkv24vm2-coreutils-8.23/bin/ln -s "$_NIX_DEF_LINK" "$NIX_LINK" | |
end |