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
import { resolve } from "node:path"; | |
import { readAllFiles } from "./readAllFiles.ts"; | |
/** | |
* Glob - ExperimentalWarning --disable-warning=ExperimentalWarning NODE_OPTIONS= | |
* Typescript --experimental-transform-types --no-experimental-strip-types. import type | |
* Test | |
*/ | |
export const folder = resolve(import.meta.dirname, process.env.ROOT_FOLDER!); |
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
{ | |
"name1": "file1" | |
} |
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.example.demo; | |
import eu.rekawek.toxiproxy.Proxy; | |
import eu.rekawek.toxiproxy.ToxiproxyClient; | |
import eu.rekawek.toxiproxy.model.ToxicDirection; | |
import org.junit.jupiter.api.*; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.http.MediaType; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<div id="body"> | |
<header>Header</header> | |
<nav>Menu</nav> | |
<main>Main</main> |
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
import d, { Document, EnvelopeDefinition, Recipients, SignHere, Signer, Tabs } from "docusign-esign"; | |
import fs from "fs"; | |
import path from "path"; | |
import { getContractInformationFromRequest } from "../contract/getContractInformation"; | |
import { generateContractWithoutEOF } from "../contract/generateContractPdf"; | |
import { API_ACCOUNT_ID, PROD_API, INTEGRATION_KEY, USER_ID } from "./config"; | |
import { convertContractToBast64 } from "../utils/pdf"; | |
import { generateContractDocumentFileName } from "../contract/generateContractDocumentFileName"; | |
import { generateCarbonCopies } from "./generateCarbonCopies"; |
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
POST person-manu-v3/_search | |
{ | |
"size": 0, | |
"aggs": { | |
"group_by_year": { | |
"date_histogram": { | |
"field": "registered", | |
"calendar_interval": "1y" | |
}, |
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
[ | |
"{{repeat(3, 3)}}", | |
{ | |
"isActive": "{{bool()}}", | |
"balance": "{{floating(1000, 4000, 2, \"$0,0.00\")}}", | |
"picture": "http://placehold.it/32x32", | |
"age": "{{integer(20, 40)}}", | |
"eyeColor": "{{random(\"blue\", \"brown\", \"green\")}}", | |
"name": "{{firstName()}} {{surname()}}", | |
"gender": "{{gender()}}", |
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
import { Client } from "@elastic/elasticsearch" | |
import { readFileSync } from "fs" | |
(async function(){ | |
const pipeLineName = "asn-demo-node-js"; | |
const documents: any = [{ | |
path: "./dummy.pdf", | |
name: "Manu" |
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
import "bulma/css/bulma.css"; | |
import { useEffect, useState } from "react"; | |
type Person = { | |
name: string; | |
height: string; | |
mass: string; | |
hair_color: string; | |
skin_color: string; | |
eye_color: string; |
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
import React, { ReactElement, useContext, useEffect } from 'react'; | |
import { useHistory } from 'react-router'; | |
import './ErrorBoundaries.scss'; | |
import { useT } from 'talkr'; | |
const ErrorStatusContext = React.createContext((e: string) => { | |
//this is intentional | |
}); | |
// How to use it => const throwError = useAsyncError(); throwError(" |
NewerOlder