This gist provides links to resources I’ve created on Azure Integration Services.
These repositories provide sample projects that are simple to deploy with the Azure Developer CLI (azd).
This gist provides links to resources I’ve created on Azure Integration Services.
These repositories provide sample projects that are simple to deploy with the Azure Developer CLI (azd).
| import openai | |
| class ChatGPT: | |
| """ A very simple wrapper around OpenAI's ChatGPT API. Makes it easy to create custom messages & chat. """ | |
| def __init__(self, model="gpt-3.5-turbo", completion_hparams=None): | |
| self.model = model | |
| self.completion_hparams = completion_hparams or {} | |
| self.history = [] | |
| self._messages = [] |
| FROM rust:alpine | |
| RUN apk add --no-cache \ | |
| bash \ | |
| binutils-gold \ | |
| ca-certificates \ | |
| clang \ | |
| curl \ | |
| g++ \ | |
| git \ |
| import $ivy.`org.http4s::http4s-dsl:0.18.13` | |
| import $ivy.`org.http4s::http4s-blaze-server:0.18.13` | |
| import cats.effect._ | |
| import org.http4s._ | |
| import org.http4s.dsl.io._ | |
| import org.http4s.server.blaze._ | |
| val response = "This is the response" | |
| val port = 8000 |
| Black=0,0,0 | |
| Red=255,100,0 | |
| Green=183,234,17 | |
| Yellow=234,206,28 | |
| Blue=65,105,225 | |
| Magenta=237,157,185 | |
| Cyan=0,191,191 | |
| White=255,255,255 | |
| BoldBlack=64,64,64 | |
| BoldRed=255,100,0 |
| if (process.send) { | |
| process.send("Hello"); | |
| } | |
| process.on('message', message => { | |
| console.log('message from parent:', message); | |
| }); |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
Examples of getting certificates from Let's Encrypt working on Apache, NGINX and Node.js servers.
I chose to use the manual method, you have to make a file available to verify you own the domain. Follow the commands from running
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt| /** | |
| * VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units | |
| * | |
| * To overcome this, create media queries that target the width, height, and orientation of iOS devices. | |
| * It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing | |
| * the height of element `.foo` —which is a full width and height cover image. | |
| * | |
| * iOS Resolution Quick Reference: http://www.iosres.com/ | |
| */ | |
| # typically you'd add this at the end of eg .bashrc | |
| # setup ssh-agent | |
| SSH_ENV=$HOME/.ssh/environment | |
| # start the ssh-agent | |
| function start_agent { | |
| echo "Initializing new SSH agent..." | |
| # spawn ssh-agent | |
| /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" |