var s = "JavaScript syntax highlighting";
alert(s);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type PGTypeID string | |
// ConvertToTypeID converts the PGTypeID to the typeid.TypeID. | |
func (p PGTypeID) ConvertToTypeID() (typeid.TypeID, error) { | |
str := string(p) | |
if !strings.HasPrefix(str, "(") || !strings.HasSuffix(str, ")") { | |
return typeid.Nil, errors.New("invalid type id format") | |
} | |
// Remove the surrounding parentheses and replace the comma with an underscore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AWS SECRETS MANAGER command line -- pull secret from cli and apply to kubernetes secret | |
# This takes a secret, which probably would have more than one key-value pair, and converts it to an env file. | |
# This is useful for CI/CD pipelines that use Kubernetes | |
aws secretsmanager get-secret-value --secret-id $SECRET_ID --profile $AWS_PROFILE --output json | jq '.SecretString' | jq fromjson | jq -r "to_entries|map(\"\(.key)=\(.value|tostring)\")|.[]" >> .env | |
# Example to take output and apply or update a kubernetes secret | |
kubectl create secret generic $SECRET_NAME --from-env-file=.env --dry-run=client -o yaml | kubectl apply -f - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="card"> | |
<div class="card-body"> | |
<h5>My second SMART on FHIR page!</h5> | |
<h1 id='pt_name'>...</h1> | |
<h3>BMI: <span id="bmi">[calculating...]</span> kg/m<sup>2</sup></h3> | |
<table class="table"> | |
<tr> | |
<th> | |
<h2>Weight List</h2> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.