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 mcr.microsoft.com/devcontainers/javascript-node:1-20-bullseye | |
# [Optional] Uncomment this section to install additional OS packages. | |
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | |
# && apt-get -y install --no-install-recommends <your-package-list-here> | |
# [Optional] Uncomment if you want to install an additional version of node using nvm | |
# ARG EXTRA_NODE_VERSION=10 | |
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}" |
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
# ========================================================================== | |
# Copyright (C) 2017-2024 NotesSensei ( https://www.wissel.net/ ) | |
# All rights reserved. | |
# ========================================================================== | |
# Licensed under the Apache License, Version 2.0 (the "License"). You may | |
# not use this file except in compliance with the License. You may obtain a | |
# copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>. | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
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
import java.io.IOException; | |
import java.io.InputStream; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.Channels; | |
import java.nio.channels.ReadableByteChannel; | |
import io.vertx.core.AsyncResult; | |
import io.vertx.core.Context; | |
import io.vertx.core.Future; | |
import io.vertx.core.Handler; |
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"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | |
xmlns:w="http://schemas.xmlsoap.org/wsdl/" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:tns="urn:enterprise.soap.sforce.com" | |
xmlns:fns="urn:fault.enterprise.soap.sforce.com" | |
xmlns:ens="urn:sobject.enterprise.soap.sforce.com" | |
exclude-result-prefixes="xs" |
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
import chai, { expect } from 'chai'; | |
import chaiAsPromised from 'chai-as-promised'; | |
import sinon from 'sinon'; | |
import { afterEach } from 'mocha'; | |
chai.use(chaiAsPromised); | |
const urlToResultMapping = new Map<string, any>(); |
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
package com.example.starter; | |
import static org.junit.jupiter.api.Assertions.assertEquals; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import org.junit.jupiter.api.BeforeEach; | |
import org.junit.jupiter.api.Test; | |
public class TestMain { |
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 strict'; | |
module.exports = { | |
spec: ['test/**/*.spec.ts'], | |
}; |
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
html { | |
font-family: 'Futura', Roboto, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
} | |
body { | |
margin: 0; | |
font-family: 'Futura', 'Jetbrains Mono', Roboto, 'Segoe UI', Tahoma, Geneva, | |
Verdana, sans-serif; | |
background: white; | |
} |
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 Nano = require("nano"); | |
const { Writable, Transform } = require("stream"); | |
const exportOneDb = (couchDBURL, resultCallback) => { | |
const nano = Nano(couchDBURL); | |
nano | |
.listAsStream({ include_docs: true }) | |
.on("error", (e) => console.error("error", e)) | |
.pipe(lineSplitter()) | |
.pipe(jsonMaker()) |
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
package com.notessensei.demo; | |
import static org.junit.jupiter.api.Assertions.*; | |
import java.util.stream.Stream; | |
import com.hcl.tests.UnitTest; | |
import org.junit.jupiter.api.AfterEach; | |
import org.junit.jupiter.api.Assertions; | |
import org.junit.jupiter.api.BeforeEach; | |
import org.junit.jupiter.params.ParameterizedTest; | |
import org.junit.jupiter.params.provider.Arguments; |
NewerOlder