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 { | |
Body, | |
Controller, | |
Delete, | |
Get, | |
Param, | |
Patch, | |
Post, | |
Query, | |
} from '@nestjs/common'; |
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 { Module } from '@nestjs/common'; | |
import { TypeOrmModule } from '@nestjs/typeorm'; | |
import { TasksModule } from './tasks/tasks.module'; | |
@Module({ | |
imports: [ | |
TasksModule, | |
TypeOrmModule.forRoot({ | |
type: 'postgres', | |
host: 'localhost', |
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 { ValidationPipe } from '@nestjs/common'; | |
import { NestFactory } from '@nestjs/core'; | |
import { AppModule } from './app.module'; | |
async function bootstrap() { | |
const app = await NestFactory.create(AppModule); | |
app.useGlobalPipes( | |
new ValidationPipe({ | |
validationError: { | |
value: true, |
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
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh |
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
<link href="https://fonts.googleapis.com/css?family=Space+Mono:400,700&display=swap" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css?family=Space+Mono:400,700&display=swap" rel="preload" as="font"> |
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
<link rel="dns-prefetch" href="//static.hotjar.com"> | |
<link rel="dns-prefetch" href="//www.google-analytics.com"> | |
<link rel="dns-prefetch" href="//fonts.googleapis.com"> | |
<link rel="dns-prefetch" href="//fonts.gstatic.com"> |
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 GifContainer = ({ classes, content }) => { | |
return ( | |
<img | |
src={content} | |
alt="Demo Gif File" | |
className={classes.FullWidth} | |
loading="lazy" | |
/> | |
); | |
}; |
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 { grpc } from "@improbable-eng/grpc-web"; | |
import { BookService } from "./Book_pb_service"; | |
parseGetBookMessage = message => { | |
// parse the binary response back to appropriate type described in the proto | |
const book = { | |
isbn: message.getIsbn(), | |
title: message.getTitle(), | |
author: message.getAuthor() | |
}; |
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
/** | |
* @fileoverview | |
* @enhanceable | |
* @suppress {messageConventions} JS Compiler reports an error if a variable or | |
* field starts with 'MSG_' and isn't a translatable message. | |
* @public | |
*/ | |
// GENERATED CODE -- DO NOT EDIT! | |
/* eslint-disable */ |
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
syntax = "proto3"; | |
package com.book; | |
message Book { | |
int64 isbn = 1; | |
string title = 2; | |
string author = 3; | |
} |
NewerOlder