Change name of imported type (aliasing)
The goal is to make code more productive and clean in cases where multiple classes with same name must be used in code. It should relief a developers frustration in that
https://www.sitepoint.com/using-java-bean-validation-method-parameters-return-values/ | |
https://github.com/eugenp/tutorials |
package com.ntst.services.mobile.util; | |
import javax.annotation.PostConstruct; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.stereotype.Component; | |
/** | |
* <p> |
/* eslint-disable import/no-extraneous-dependencies, prefer-template */ | |
// const validateBoolOption = (name, value, defaultValue) => { | |
// if (typeof value === 'undefined') { | |
// value = defaultValue; | |
// } | |
// if (typeof value !== 'boolean') { | |
// throw new Error(`Preset react-app: '${name}' option must be a boolean.`); | |
// } |
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
"http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd"> | |
<!-- | |
Checkstyle configuration that checks the sun coding conventions from: | |
- the Java Language Specification at | |
http://java.sun.com/docs/books/jls/second_edition/html/index.html |
Please visit https://asistencia.in/blogs/1-mysql-5-5-installation-guide
Thank you
import { createConstAndAction, createFetchTypesAndFuncs } from './utils'; | |
export const { PRODUCTS, products } = createFetchTypesAndFuncs('products'); | |
export const { LOAD_PRODUCTS, loadProducts } = createConstAndAction('LOAD_PRODUCTS'); | |
// these actions is for pull-to-load-more | |
export const { LOAD_MORE_PRODUCTS, loadMoreProducts } = createConstAndAction('LOAD_MORE_PRODUCTS'); |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |