-
CTRL + A
— Move to the beginning of the line -
CTRL + E
— Move to the end of the line -
CTRL + [left arrow]
— Move one word backward (on some systems this is ALT + B) -
CTRL + [right arrow]
— Move one word forward (on some systems this is ALT + F) -
CTRL + U
— (bash) Clear the characters on the line before the current cursor position -
CTRL + U
—(zsh) If you're using the zsh, this will clear the entire line -
CTRL + K
— Clear the characters on the line after the current cursor position -
ESC + [backspace]
— Delete the word in front of the cursor
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
TypeDoc - To generated documentation from typescript code | |
https://typedoc.org/ |
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
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |
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
#!/usr/bin/env sh | |
STATUS_COMPLETED="COMPLETE" | |
STATUS_IN_PROGRESS="IN_PROGRESS" | |
IMPORT_STATUS="IN_PROGRESS" | |
#Clear the distribution directory | |
rm -rf dis | |
mkdir dist && mkdir dist/input && mkdir dist/output | |
#Move to the new lex directory and merge all intents and slot types into single file | |
gomplate --input-dir=src/lex/slottypes/ --output-dir=dist/input/slottypes --datasource config=iac/resources/env/$ENVIRONMENT/config.json |
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
export class Logger { | |
logError(): void { | |
console.error('Error',...args); | |
}, | |
logInfo(): void { | |
console.info('Info',...args); | |
}, | |
logWarn(): void { | |
console.info('Warning',...args); |
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 AWS = require('aws-sdk'); | |
//In the test file | |
const mockDynamodbGetItem = jest.fn(); | |
const mockS3GetObject = jest.fn(); | |
//mock aws sdk | |
jest.mock('aws-sdk', () => { | |
return { |
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 express = require('express'); | |
const graphqlHTTP = require('express-graphql'); | |
const schema = require('./schema/schema'); | |
const mongoose = require('mongoose'); | |
const app = express(); | |
const MongoClient = require('mongodb').MongoClient; | |
const uri = ""; | |
mongoose.connection.once('open', () => { | |
console.log('connected to database') |