This file contains 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
You are an AI being used in a restaurant recommendation system. | |
The input is a menu, extract the cocktails from the menu and return them as a list of JSON objects. | |
Only extract drinks, not food. Cocktails will contain at least one alcoholic ingredient. Mocktails will contain a juice. | |
Extract the name of the cocktail, its description, and it's ingredients. If there are no cocktails, return an empty list, []. | |
DO NOT include the string "Output" in the result, return only valid JSON. | |
Here is an example: | |
Input: | |
Bellini | |
prosecco and peach nectar juice |
This file contains 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
using System.IO; | |
using TallComponents.PDF; | |
using TallComponents.PDF.Forms.Fields; | |
using TallComponents.PDF.JavaScript; | |
Console.WriteLine(System.IO.Directory.GetCurrentDirectory()); | |
using (FileStream inFile = new FileStream(@"./nIVD_eSTAR_40.pdf", FileMode.Open, FileAccess.Read)) | |
{ | |
Document document = new Document(inFile); |
This file contains 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
using System.IO; | |
using TallComponents.PDF; | |
using TallComponents.PDF.Forms.Fields; | |
using TallComponents.PDF.JavaScript; | |
Console.WriteLine(System.IO.Directory.GetCurrentDirectory()); | |
using (FileStream inFile = new FileStream(@"./nIVD_eSTAR_40.pdf", FileMode.Open, FileAccess.Read)) | |
{ | |
Document document = new Document(inFile); |
This file contains 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
Use the following pieces of context to answer the users question. | |
If you don't know the answer, just say that you don't know, don't try to make up an answer. | |
ALWAYS return a "SOURCES" part in your answer. | |
The "SOURCES" part should be a reference to the source of the document from which you got your answer. | |
Example of your response should be: | |
``` | |
The answer is foo | |
SOURCES: xyz |
This file contains 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 Pet = IDog | ICat | ILizard; | |
interface IPet { | |
type: string; | |
name: string; | |
} | |
interface IDog extends IPet { | |
type: 'dog'; | |
} |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE policymap [ | |
<!ELEMENT policymap (policy)+> | |
<!ELEMENT policy (#PCDATA)> | |
<!ATTLIST policy domain (delegate|coder|filter|path|resource) #IMPLIED> | |
<!ATTLIST policy name CDATA #IMPLIED> | |
<!ATTLIST policy rights CDATA #IMPLIED> | |
<!ATTLIST policy pattern CDATA #IMPLIED> | |
<!ATTLIST policy value CDATA #IMPLIED> | |
]> |
This file contains 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
const fs = require('fs') | |
async function fileExists(path: string, flag: string): Promise<boolean> { | |
return new Promise<boolean>((resolve, reject) => { | |
fs.access(path, fs.F_OK, (err) => { | |
if(err) { | |
resolve(false); // no file exists | |
}else{ | |
resolve(true); | |
} | |
}); |
This file contains 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
FROM ubuntu:focal-20210921 | |
WORKDIR /app | |
# Ensures tzinfo doesn't ask for region info. | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -y \ | |
unzip curl \ | |
dumb-init \ |
This file contains 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
mysql> select "2eef3ed2-50a1-4566-9e7b-183fba8a60be" = 2; | |
+--------------------------------------------+ | |
| "2eef3ed2-50a1-4566-9e7b-183fba8a60be" = 2 | | |
+--------------------------------------------+ | |
| 1 | | |
+--------------------------------------------+ | |
1 row in set, 1 warning (0.00 sec) |
This file contains 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
server { | |
server_name wiki.setfive.com; | |
listen 443 ssl; | |
ssl_certificate /etc/httpd/ssl/setfive-ssl.chained.crt; | |
ssl_certificate_key /etc/httpd/ssl/setfive-ssl.key; | |
ssl_session_cache shared:le_nginx_SSL:1m; | |
ssl_session_timeout 1440m; |
NewerOlder