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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Grid + Flex Layout</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <style> | |
| body { | |
| display: grid; | |
| grid-template-rows: auto 1fr auto; |
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
| // 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 | |
| // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
| // License for the specific language governing permissions and limitations under |
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 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 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 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 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.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 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 strict'; | |
| module.exports = { | |
| spec: ['test/**/*.spec.ts'], | |
| }; |
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
| 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 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.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; |
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.notessensei.legacy.sync_async; | |
| import java.util.concurrent.ExecutionException; | |
| import java.util.concurrent.atomic.AtomicBoolean; | |
| import io.vertx.core.AbstractVerticle; | |
| import io.vertx.core.Future; | |
| import io.vertx.core.Promise; | |
| import io.vertx.core.Vertx; | |
| import io.vertx.core.eventbus.Message; |
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 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()) |
NewerOlder