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, { useEffect, useState } from 'react'; | |
import ApolloClient from 'apollo-client'; | |
import { ApolloProvider } from 'react-apollo'; | |
import { split } from 'apollo-link'; | |
import { HttpLink } from 'apollo-link-http'; | |
import { WebSocketLink } from 'apollo-link-ws'; | |
import { getMainDefinition } from 'apollo-utilities'; | |
import { InMemoryCache } from 'apollo-cache-inmemory'; | |
import { ApolloProvider as ApolloHooksProvider } from 'react-apollo-hooks'; | |
import { setContext } from 'apollo-link-context'; |
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
minikube dashboard |
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 mongoose = requier("mongoose") | |
const { ObjectId } = mongoose.Schema | |
const postSchema = new mongoose.Schema({ | |
text: String, | |
image: String, | |
likes: [{type: ObjectId, ref: "user"}], | |
comments: [ | |
{ | |
text: String, |
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 Document, { Head, Main, NextScript } from 'next/document' | |
// Import styled components ServerStyleSheet | |
import { ServerStyleSheet } from 'styled-components'; | |
import { getServerSideToken, getUserScript } from '../auth'; | |
export default class MyDocument extends Document { | |
static async getInitialProps(ctx) { | |
const sheet = new ServerStyleSheet(); | |
const page = ctx.renderPage((App) => (props) => | |
sheet.collectStyles(<App {...props} />), |
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
name: "my hello action" | |
description: "say hello with GitHub Actions" | |
inputs: | |
firstGreeting: | |
description: "who would you like to greet in the console" | |
required: true | |
default: "Hubot" |
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
name: "Docker Actions" | |
on: [push] | |
jobs: | |
action: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v1 |
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
name: "my hello action" | |
description: "say hello with GitHub Actions" | |
inputs: | |
firstGreeting: | |
description: "who would you like to greet in the console" | |
required: true | |
default: "Hubot" |
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 main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
// Access Inputs as environment vars |
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
name: Docker Actions | |
on: [push] | |
jobs: | |
action: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 |
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 golang:latest | |
WORKDIR /go/src/hello | |
COPY . . | |
RUN go get -d -v ./... | |
RUN go install -v ./... | |
CMD ["hello"] |
NewerOlder