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
...<properties> <org.mapstruct.version>1.3.0.Final</org.mapstruct.version></properties>...<dependencies> <dependency> <groupId>org.mapstruct</groupId> <artifactId>mapstruct</artifactId> <version>${org.mapstruct.version}</version> </dependency></dependencies>...<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <!-- or newer version --> <configuration> <source>1.8</source> <!-- depending on your project --> <target>1.8</target> <!-- depending on your project --> <annotationProcessorPaths> <path> <groupId>org.mapstruct</groupId> <artifactId>mapstruct-processor</artifactId> <version>${org.mapstruct.version}</version> </path> <!-- other annotation processors --> |
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
spring.h2.console.enabled=true | |
spring.h2.console.path=/h2-console |
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 {MongoClient} = require( "mongodb"); | |
(async () => { | |
const client = new MongoClient(); | |
const url = 'mongodb://localhost:27017/test'; | |
const db = await client.connect(url); | |
console.log(await db.admin().listDatabases()); | |
await db.close(); | |
})(); |
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
"Async Anonymous Call": { | |
"prefix": "asaw", | |
"body": [ | |
"(async () => {", | |
" const ret = await ${1:methodName}", | |
" ${2}", | |
"})();" | |
], | |
"description": "Async Anonymous Call" | |
} |
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
module.exports = { | |
parser: 'babel-eslint', | |
env: { | |
browser: true, | |
commonjs: true, | |
es6: true, | |
node: true, | |
jest: true, | |
}, | |
extends: ['eslint:recommended', 'plugin:react/recommended'], |
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
{ | |
"presets": ["env"], | |
"plugins": ["transform-object-rest-spread"] | |
} |
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
create procedure insert_into_b | |
@numInserts int | |
as | |
begin | |
while @numInserts > 0 | |
begin | |
insert into b (id) | |
select id from a | |
set @numInserts = @numInserts - 1 | |
end |
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
"Require Node Module": { | |
"prefix": "creq", | |
"body": ["const ${1:module} = require('${1:module}');"], | |
"description": "Require Node Module" | |
}, | |
"Require Local File Node Module": { | |
"prefix": "cfreq", | |
"body": ["const ${2:module} = require('.${1:file}');"], | |
"description": "Require Node Module" | |
}, |
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 { combineReducers } from 'redux'; | |
export default combineReducers({ | |
default: (state ={}, action) => state | |
}) |
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
if (module.hot) { | |
module.hot.accept('./App', _ => { | |
const App = require('./App').default; | |
ReactDOM.render( | |
<App />, | |
document.getElementById('root') | |
); | |
}) | |
} |
NewerOlder