scutuyu

涂宇的博客


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

  • 搜索

markdown+gravizo画UML类图

发表于 2018-04-28   |   更新于 2018-05-14 | 分类于 Markdown , 画图 , UML类图

1. 将请求参数进行url编码
2. 不需要编码使用<>将网址括起来

本文不对plantUML的语法进行解释,直接戳。

对url进行编码

需要编码的字符如下

1
2
3
abstract class AbstractList;
interface List;
List <|.. AbstractList;

使用在线编码网站提供的服务,直接戳

阅读全文 »

LinkedList

发表于 2018-04-28   |   更新于 2018-05-09 | 分类于 JDK , Collections , List

1. java中LinkedList是单链表实现还是双链表实现?
2. java中LinkedList节点元素的结构是怎样的?
3. java中LinkedList的get(int index)方法是如何实现的?以及add()方法是如何实现的?

阅读全文 »

macOS系统使用hexo创建文章时自动用喜爱的编辑器打开

发表于 2018-04-26   |   更新于 2018-04-28

在博客根目录下找到scripts文件夹,如果没有就创建该文件夹,在scripts文件夹中创建open.js,内容如下:

1
2
3
4
5
var spawn = require('child_process').spawn;

hexo.on('new', function(data){
spawn('open', ['-a', '/Applications/Visual\ Studio\ Code.app', data.path]);
});

当我们在博客根目录下使用终端新建文件时会使用VScode编辑器打开该文章,可以方便地进行编辑

1
hexo new article_name

参考链接

hexo new 后同步打开文章编辑器www.jianshu.com/p/4487d767e651
Nodejs进阶:如何玩转子进程(child_process)www.cnblogs.com/chyingp/p/node-learning-guide-child_process.html

hashMap

发表于 2018-04-26   |   更新于 2018-07-25 | 分类于 JDK , Collections , Map

概要

关于HashMap的几个基本问题:

  1. hashMap的工作原理?
  2. hashMap可以接收key为null的键值对吗?hashTable可以接收key为null的键值对吗?
  3. hashMap的负载因子是做什么的?
  4. hashMap在JDK7和JDK8中的区别是什么?
  5. 简述HashMap的put方法的过程
  6. 简述HashMap的get方法的过程
  7. 什么时候会使用HashMap?他有什么特点?
  8. 你知道HashMap的工作原理吗?
  9. 你知道get和put的原理吗?equals()和hashCode()的都有什么作用?
  10. 你知道hash的实现吗?为什么要这样实现?
  11. 如果HashMap的大小超过了负载因子(load factor)定义的容量,怎么办?
阅读全文 »

Hello World

发表于 2017-08-27   |   更新于 2018-05-07

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

blog框架hexo,主题框架NexT

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

阅读全文 »
1…89
涂宇

涂宇

List is short, I use Python.

85 日志
31 分类
75 标签
© 2019 涂宇
由 Hexo 强力驱动
|
主题 — NexT.Mist v5.1.2