gradle config

gradle aliyun mirror

新建文件 ${user_home}/.gradle/init.gradle ,内容如下

allprojects {
  repositories {
    def ALIYUN_REPOSITORY_URL = 'http://maven.aliyun.com/nexus/content/groups/public'
      def ALIYUN_JCENTER_URL = 'http://maven.aliyun.com/nexus/content/repositories/jcenter'
      all { ArtifactRepository repo ->
        if(repo instanceof MavenArtifactRepository){
          def url = repo.url.toString()
            if (url.startsWith('https://repo1.maven.org/maven2')) {
              project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_REPOSITORY_URL."
              remove repo
            }
          if (url.startsWith('https://jcenter.bintray.com/')) {
            project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_JCENTER_URL."
            remove repo
          }
        }
      }
    maven {
      url ALIYUN_REPOSITORY_URL
      url ALIYUN_JCENTER_URL
    }
  }
}

SpringBoot Sample Config

jdbc

spring.main.web-application-type=none
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/realtime?characterEncoding=UTF-8&serverTimezone=UTC&autoReconnect=true&failOverReadOnly=false
spring.datasource.username=root
spring.datasource.password=
spring.datasource.tomcat.initial-size=1
spring.datasource.tomcat.max-active=5
spring.datasource.tomcat.max-idle=5
spring.datasource.tomcat.min-idle=1

Caddy Config

Caddy Config for ReactJS

inew.local {
    root d:/work/project/study/wuhan-screen-develop/build
    rewrite {
        to {path} {path}/ /index.html
    }
}

inew.local/boss30/api {
    proxy / http://inew.unovo.com {
        header_upstream Host {proxy_host}
    }
}

Use JS Create Animation

Use JS Create Animation

https://github.com/HenrikJoreteg/create-keyframe-animation
https://www.jianshu.com/p/b7b347c9783e
https://www.npmjs.com/package/react-keyframes
https://github.com/web-animations/web-animations-js.git

chrome插件备忘

必备

  • Proxy SwitchyOmega
  • Markdown Preview
  • User-Agent Switcher for Chrome
  • Charset
  • Redirector

开发

  • LiveReload
  • Moesif Origin & CORS Changer
  • React Developer Tools
  • Redux DevTools
  • User JavaScript and CSS
  • Vue.js devtools

跨域插件配置

如果想要携带cookie需要配置 Access-Control-Allow-Origin

  • Access-Control-Allow-Origin: http://localhost:8080
  • Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
  • Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH
  • Access-Control-Allow-Credentials: true
www.000webhost.com