See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
import React, { PureComponent } from 'react'; | |
import Radar from '@bit/recharts.recharts.radar'; | |
import RadarChart from '@bit/recharts.recharts.radar-chart'; | |
import PolarGrid from '@bit/recharts.recharts.polar-grid'; | |
import PolarAngleAxis from '@bit/recharts.recharts.polar-angle-axis'; | |
import PolarRadiusAxis from '@bit/recharts.recharts.polar-radius-axis'; | |
const data = [ | |
{ | |
subject: 'Devops', A: 120, B: 110, fullMark: 150, |
public static class CacheFactory | |
{ | |
/// <summary> | |
/// This is a thread-safe, lazy singleton. See http://www.yoda.arachsys.com/csharp/singleton.html | |
/// for more details about its implementation. | |
/// </summary> | |
public static DataCacheFactory Instance | |
{ | |
get { return Nested.CacheFactory; } | |
} |
'use strict'; | |
import { WriteStream, createWriteStream } from "fs"; | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf-8'); | |
let inputString: string = ''; | |
let inputLines: string[] = []; | |
let currentLine: number = 0; |
'use strict'; | |
const fs = require('fs'); | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf-8'); | |
let inputString = ''; | |
let currentLine = 0; |
{ | |
"terminal.integrated.fontFamily": "MesloLGS NF", | |
"editor.codeLensFontFamily": "Fira Code", | |
"editor.fontFamily": "Cascadia Code Light, Fira Code, Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"maven.terminal.useJavaHome": true, | |
"editor.suggestSelection": "first", | |
"vsintellicode.modify.editor.suggestSelection": "choseToUpdateConfiguration", | |
"files.exclude": { | |
"**/.classpath": true, |
{ | |
"terminal.integrated.fontFamily": "MesloLGS NF", | |
"editor.codeLensFontFamily": "Fira Code", | |
"editor.fontFamily": "Cascadia Code Light, Fira Code, Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"maven.terminal.useJavaHome": true, | |
"editor.suggestSelection": "first", | |
"vsintellicode.modify.editor.suggestSelection": "choseToUpdateConfiguration", | |
"files.exclude": { | |
"**/.classpath": true, |
const { resolve } = require('path') | |
const root = resolve(__dirname, '..') | |
module.exports = { | |
rootDir: root, | |
displayName: 'eslint', | |
runner: 'jest-runner-eslint', | |
testMatch: ['<rootDir>/src/**/*.js', '<rootDir>/config/*.js'], | |
} |
export type MockType<T> = { | |
[P in keyof T]?: jest.Mock<unknown>; | |
}; | |
const mockKnexConnection : () => MockType<Knex<any, unknown>> | |
= jest.fn(() => ({ | |
destroy: jest.fn(() => { console.log }), | |
raw: jest.fn((query) => { | |
return new Promise<any>( (res) => { | |
res(query) |