Note that https://hello
is a valid URL according to the new URL()
constructor. Should maybe check if value
contains at least one dot.
import z from "zod";
export const zodUrlOrLocalhost = z.string().refine(
def iterate_dict(d, path="", level=0): | |
for key, value in d.items(): | |
new_path = f"{path}.{key}" if path else key | |
if isinstance(value, dict): | |
yield new_path | |
yield from iterate_dict(value, new_path, level+1) | |
else: | |
yield new_path | |
with open(filename, 'r') as f: |
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine
# Install Node.js - we use Node.js 20 here, pick another version if you like that
RUN apk update \
&& apk add --no-cache curl \
&& curl -sL https://deb.nodesource.com/setup_20.x \
&& apk add --no-cache nodejs npm build-base
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm
PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force
Add-PoshGitToProfile -AllHosts
[alias] | |
st = status | |
[push] | |
autosetupremote = true | |
# Fixes contrasts issues on Powershell terminals with blue background | |
[color "status"] | |
changed = red bold | |
untracked = red bold | |
added = green bold |