Skip to content

Instantly share code, notes, and snippets.

View YazidLee's full-sized avatar

Yazid Lee YazidLee

View GitHub Profile
@YazidLee
YazidLee / Spring-refresh-overview.mmd
Last active January 28, 2022 04:14
[Spring 启动概览-时序图] #Spring #源码
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@YazidLee
YazidLee / admonition.md
Last active October 1, 2021 15:49
[Hugo Shortcodes] 个人博客中常用shortcodes #blog #shortcodes

可收缩、展开的容器,type 可以取值为 note, abstract, info, tip, success, question, warning, failure, danger, bug, example, quote, open:

{{< admonition type=note  title="标题" open=true >}}
<!-- 这里是内容 -->
{{< /admonition >}}
@YazidLee
YazidLee / ThreadLocalHash.java
Last active October 1, 2021 15:41
[ThreadLocal Hash] ThreadLocalMap中Entry的hashcode生成方式 #Java
/**
* ThreadLocals rely on per-thread linear-probe hash maps attached
* to each thread (Thread.threadLocals and
* inheritableThreadLocals). The ThreadLocal objects act as keys,
* searched via threadLocalHashCode. This is a custom hash code
* (useful only within ThreadLocalMaps) that eliminates collisions
* in the common case where consecutively constructed ThreadLocals
* are used by the same threads, while remaining well-behaved in
* less common cases.
*/