FROM openjdk:11-slim-bullseye
# install:
# - ca-certificates required by OpenJDK 11
# - git for VaultSpeed to perform a git deployment
RUN apt-get update -y && \
apt-get dist-upgrade -y && \ | .PHONY: download-scripts add-folder | |
| GIST_URL = https://gist.githubusercontent.com/johnoscott/f5d5110ddec85cb04729fe8ef982eeb8/raw | |
| download-scripts: | |
| curl -sL $(GIST_URL)/setup-macbook-client.sh -o setup-macbook-client.sh | |
| curl -sL $(GIST_URL)/add-sync-folder.sh -o add-sync-folder.sh | |
| chmod +x setup-macbook-client.sh add-sync-folder.sh | |
| @echo "Scripts downloaded" |
| # -------------------------------------------------------------- | |
| # Customer Support Ticket Classification System | |
| # -------------------------------------------------------------- | |
| import instructor | |
| from pydantic import BaseModel, Field | |
| from openai import OpenAI | |
| from enum import Enum | |
| from typing import List |
| |
| # https://hub.docker.com/_/postgres | |
| # Usage: | |
| # $ docker compose up | |
| # NOTE: version not required as of compose spec v | |
| # version: '3.7' | |
| # docker run --name basic-postgres --rm \ | |
| # -e POSTGRES_USER=postgres \ |
If you use
create-react-app, #5136 (released with the 2.0) implements a--use-pnpoption that allows you to easily create a new project using PnP! In this case, just usecreate-react-app --use-pnptogether with Yarn 1.12, and you're good to go! 👍
Plug'n'Play is a new initiative from Yarn that aims to remove the need for node_modules. It's already available, and has proved being effective even on large-scale infrastructures. This document describes in a few steps how to quickly get started with it. Spoiler alert: it's quite easy 🙂
First, download a package manager that supports it. Yarn 1.12 already does, so that's what we're going to use! To install it, just follow the instructions on our website: https://yarnpkg.com/en/docs/install
If everything is ok, running
yarn --versionshould give youv1.12.1or higher. If you don't get this result maybe a
From Gatsby docs
CodeSandbox uses the same URL compression schema used by the Babel REPL to embed the local code example in a URL.
This is than passed to the (awesome) define api to generate a sandbox on the fly.
| /** @OnlyCurrentDoc */ | |
| const startDate = new Date("2021-06-16") | |
| // so the first one is D2:K2 | |
| function MarkEmptyCellsInYesterdayRowWithHyphen() { | |
| const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Group 2 - B"); | |
| // Activates the sheet | |
| SpreadsheetApp.setActiveSheet(sheet); | |
| const today = new Date() |