- Add your project logo.
- Write a short introduction to the project.
- If you are using badges, add them here.
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 { createTestClient } from "apollo-server-testing"; | |
import { ApolloServer } from "apollo-server"; | |
import { | |
createResolvers, | |
typeDefs, | |
createContext, | |
Context, | |
CreateContextOptions, | |
} from "./server"; | |
import { DocumentNode } from "graphql"; |
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 React from "react"; | |
import { ErrorBoundary } from "./error-boundary"; | |
export const App = () => { | |
return ( | |
<React.StrictMode> | |
<ErrorBoundary report={console.error}> | |
<h1>Example</h1> | |
</ErrorBoundary> | |
</React.StrictMode> |
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 { spawn } from "child_process"; | |
import terminate from "terminate"; | |
export interface RunCliCommandOptions { | |
cwd?: string; | |
} | |
export const runCliCommand = ( | |
command: string, | |
options: RunCliCommandOptions = { cwd: process.cwd() } |
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 chalk from "chalk"; | |
const containsInOrder = (received: string[], expected: string[]) => { | |
let lastIndex = 0; | |
const lastOccuranceMap: { [key: string]: number } = {}; | |
for (let e of expected) { | |
const index = received.indexOf(e); | |
// Not present at all |
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 React from "react"; | |
import styled from "styled-components"; | |
import { Box } "./some-styled-system"; | |
import { useBreakpoints } from "./use-breakpoints"; | |
// Very contrived example | |
const ColoredBox = styled.div<{ isRed: Boolean; isBlue: boolean }>` | |
width: 100px; | |
height: 100px; |
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 Ninject.Modules; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Web; | |
using System.Web.Http; | |
using System.Web.Http.Dependencies; | |
// A small Library to configure Ninject (A Dependency Injection Library) with a WebAPI Application. |
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 Ninject; | |
using Ninject.Modules; | |
using Ninject.Web.Common; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Web; | |
using System.Web.Mvc; |