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
Server is up on port 3000 | |
(node:5931) UnhandledPromiseRejectionWarning: Error: Bad Request | |
at Request.http [as _callback] (node_modules/@sendgrid/client/src/classes/client.js:124:25) | |
at Request.self.callback (node_modules/request/request.js:185:22) | |
at emitTwo (events.js:126:13) | |
at Request.emit (events.js:214:7) | |
at Request.<anonymous> (node_modules/request/request.js:1161:10) | |
at emitOne (events.js:116:13) | |
at Request.emit (events.js:211:7) | |
at IncomingMessage.<anonymous> (node_modules/request/request.js:1083:12) |
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
pipeline { | |
agent { label 'master' } | |
options { | |
buildDiscarder(logRotator(numToKeepStr: '1', artifactNumToKeepStr: '1', daysToKeepStr: '5')) | |
} | |
stages { | |
stage ('build') { | |
agent { | |
docker { | |
image 'nginx:alpine' |
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
plugins { | |
id 'com.android.application' | |
id 'kotlin-android' | |
id 'kotlin-kapt' | |
id 'androidx.navigation.safeargs.kotlin' | |
} | |
android { | |
compileSdkVersion 29 | |
buildToolsVersion "29.0.3" |
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 React, { useState } from 'react' | |
import { EventDashboard } from '../../features/events/eventsDashboard/EventDashboard' | |
import {NavBar} from '../../features/nav/NavBar'; | |
import {Container} from 'semantic-ui-react' | |
import { Router } from 'react-router-dom'; | |
import { HomePage } from '../../features/home/HomePage'; | |
import { EventDetailedPage } from '../../features/events/eventDetailed/EventDetailedPage'; | |
import { EventForm } from '../../features/events/eventsForm/EventForm'; | |
function App() { |
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 { Component, OnInit } from '@angular/core'; | |
declare var jQuery: any; | |
declare var $: any; | |
declare var google: any; | |
declare var StickySidebar: any; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', |
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
To create an SNS notification after a Step Function execution using AWS CDK in TypeScript, you can follow these steps: | |
Import the necessary AWS CDK libraries: | |
typescript | |
import * as cdk from 'aws-cdk-lib'; | |
import * as sns from 'aws-cdk-lib/aws-sns'; | |
import * as subs from 'aws-cdk-lib/aws-sns-subscriptions'; | |
import * as stepfunctions from 'aws-cdk-lib/aws-stepfunctions'; |
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
@Component | |
public class PaginationInterceptor implements HandlerInterceptor { | |
@Autowired | |
private PaginationService paginationService; | |
@Autowired | |
private ProductRepository productRepository; | |
@Override | |
public void postHandle(HttpServletRequest request, HttpServletResponse response, |