- Install Bitwarden from App Store
- Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"- Install Xcode Command Line Tools
-
xcode-select --install
-
| # This snippet is used as an example for the Prompt Engineering Tips article | |
| # The code was partially generated, and NOT PRODUCTION READY at any level. It's written in a way that shows the point | |
| # of each tip, and the prompts are actually bad (even though they are functional, and for a prompt engineering tips | |
| # article; lol) | |
| # | |
| # It should be seen as a pseudocode, and not as a final implementation, production code will require carefully | |
| # SOP modeling, and a much more detailed process | |
| # | |
| # The goal is to give you a high-level perspective of the Tips detailed in the article, for readers who need to see | |
| # "the whole picture" to understand the concept |
| import mimetypes | |
| import os | |
| import markdownify | |
| import requests | |
| mimetypes.init() | |
| class MediumConverter(markdownify.MarkdownConverter): |
| package protoencoder | |
| import ( | |
| "github.com/Shopify/sarama" | |
| "google.golang.org/protobuf/proto" | |
| ) | |
| type encoder struct { | |
| msg proto.Message | |
| } |
| package bitly | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "net/http" | |
| ) | |
| const BaseURL = "https://api-ssl.bitly.com/v4" |
| { | |
| "heapster-2016.09.23": { | |
| "aliases": { | |
| "heapster-cpu-2016.09.23": { }, | |
| "heapster-events-2016.09.23": { }, | |
| "heapster-filesystem-2016.09.23": { }, | |
| "heapster-general-2016.09.23": { }, | |
| "heapster-memory-2016.09.23": { }, | |
| "heapster-network-2016.09.23": { } | |
| }, |
| ackage main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net/http" | |
| ) | |
| func hello(w http.ResponseWriter, r *http.Request) { | |
| io.WriteString(w, "Hello world!") |
| package leveledlogger | |
| import ( | |
| "github.com/go-kit/kit/log" | |
| ) | |
| type LogLevel int | |
| const ( | |
| Off LogLevel = iota |
| #!/bin/bash | |
| res_organize() { | |
| res_dir=$1 | |
| res_suffix=$2 | |
| if [ ! -d "./${res_dir}" ]; then | |
| mkdir ./${res_dir} | |
| fi; |