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
| 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 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
| 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 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
| 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 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 Pet = IDog | ICat | ILizard; | |
| interface IPet { | |
| type: string; | |
| name: string; | |
| } | |
| interface IDog extends IPet { | |
| type: 'dog'; | |
| } |
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
| <?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 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
| 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 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
| 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 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
| 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 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
| 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; |
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
| package com.setfive.demo.apiheaderdemo.filter; | |
| import com.setfive.demo.apiheaderdemo.entity.ApiKey; | |
| import com.setfive.demo.apiheaderdemo.repository.ApiKeyRepository; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.stereotype.Component; | |
| import org.springframework.stereotype.Service; | |
| import org.springframework.web.filter.GenericFilterBean; | |
| import javax.servlet.FilterChain; |