Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
function getFlatArray(multiArray){ | |
let flatArray = []; | |
for(var item of multiArray) { | |
if(item instanceof Array){ | |
flatArray.push(...getFlatArray(item)) | |
}else { | |
flatArray.push(item); | |
} | |
} | |
return flatArray; |
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"jest": true | |
}, | |
"plugins": ["react", "jsx-a11y", "import"], | |
"extends": "airbnb", | |
"rules": { | |
"react/jsx-filename-extension": [ |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
package com.jelies.spring3tomcat7.config.quartz; | |
import org.quartz.spi.TriggerFiredBundle; | |
import org.springframework.beans.factory.config.AutowireCapableBeanFactory; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.ApplicationContextAware; | |
import org.springframework.scheduling.quartz.SpringBeanJobFactory; | |
/** | |
* This JobFactory autowires automatically the created quartz bean with spring @Autowired dependencies. |
version: '3' | |
services: | |
zookeeper: | |
image: wurstmeister/zookeeper | |
ports: | |
- "2181:2181" | |
kafka: | |
image: wurstmeister/kafka | |
ports: |