Min's Blog


  • Home

  • Archives

  • Tags

  • Categories

React 学习笔记

Posted on 2020-03-20 | In Programming

React 学习笔记

Notes for Front-End Web Development with React Course

Notes for React Documentation

环境配置

Setting up Git and Node

Install Yarn (Optional)

Yarn 是一个类似npm的包管理框架,具体安装步骤请参考此处。

Read more »

Maven 学习笔记

Posted on 2020-03-20 | In Programming

参考文章:maven到底是个啥玩意~

What is Maven?

Maven 是 Apache 下的一个纯 Java 开发的开源项目,简单来说是一个项目管理工具,核心功能是合理叙述项目间的依赖关系。

Maven java项目结构

simple
 —pom.xml    核心配置,项目根下
 —src
  —main      
    —java    java源码目录
    —resources  java配置文件目录
  —test
   —java    测试源码目录
   —resources  测试配置目录

图中有一个target目录,是因为将该java项目进行了编译,src/main/java下的源代码就会编译成.class文件放入target目录中,target就是输出目录。

Read more »

ANTLR4 学习

Posted on 2020-03-20 | In Programming

##5.1 Deriving Grammars from Language Samples

Proper grammar design mirrors functional decomposition or top-down design
in the programming world.

  • 第一步:找到 start rule
    例如,“a comma-separated-value (CSV) file is a sequence of
    rows terminated by newlines.”
    file : «sequence of rows that are terminated by newlines» ;
  • 逐步向下 by describing the elements identified on the right side of the start rule.
    依然以CSV为例:
    file : «sequence of rows that are terminated by newlines» ;
    row : «sequence of fields separated by commas» ;
    field : «number or string» ;
Read more »

ANTLR4 学习

Posted on 2020-03-20 | In Programming

#Chapter 2 The Big Picture
##2.1 Let’s Get Meta!

  • interpreter
    if an application computes or “executes” sentences, we call that
    application an interpreter. Examples include calculators, configuration file
    readers, and Python interpreters.
  • translator
    If we’re converting sentences from one language to another, we call that application a translator. Examples include Java to C# converters and compilers.
    Read more »

Multithreading in Java

Posted on 2020-01-01 | In Programming

Multithreading in java is a process of executing multiple threads simultaneously.

Life Cycle

  1. New
  2. Runnable
  3. Running
  4. Non-Runnable (Blocked)
  5. Terminated
Read more »

java---source-1-5-中不支持-try-with-resources--解决方法

Posted on 2020-01-01 | In Programming

报错:

1
2
Error:(19, 13) java: -source 1.5 中不支持 try-with-resources
(请使用 -source 7 或更高版本以启用 try-with-resources)

在网上查阅解决方法

  1. File - Project Structure -Project - Language Level 更改为8
    无法解决。
  2. pom.xml 添加dependency
    无法解决。
    1
    2
    3
    4
    <properties>
    <maven.compiler.source>8</maven.compiler.source>
    <maven.compiler.target>8</maven.compiler.target>
    </properties>
  3. File - Project Structure -Modules- Language Level 更改为8
    解决。

更改git-bash-初始目录

Posted on 2020-01-01 | In Programming
1
2
3
cd ~
touch .bashrc
echo "cd ~/PATH/" >> .bashrc

信息来源:https://stackoverflow.com/questions/7017143/how-to-default-to-other-directory-instead-of-home-directory

<i class="fa fa-angle-left"></i>12
Min Zhu

Min Zhu

Think of nothing things, think of wind.

17 posts
4 categories
22 tags
GitHub Linkedin
© 2020 Min Zhu
Powered by Hexo
Theme - NexT.Gemini