Skip to content

Instantly share code, notes, and snippets.

View ClausClaus's full-sized avatar
😁
Happy coding

ClausClaus

😁
Happy coding
View GitHub Profile
@ClausClaus
ClausClaus / important.md
Last active April 5, 2020 14:34 — forked from stettix/things-i-believe.md
Things I believe

Important

  • 系统设计

    • 更好的系统通常是更小,更简单的系统
    • 要设计健康的系统,请分而治之。将问题分成较小的部分
    • 分而治之的工作是递归的:将系统分为更简单的子系统和组件的层次结构
    • 告诉您的应用过去的工作尤为重要,因此请确保其可审核
  • 技术

    • 当心炒作或时髦的技术,随着时间的流逝,计算机科学和工程学的基础不会发生太大变化
@ClausClaus
ClausClaus / animatedScrollTo.js
Created November 22, 2018 13:28 — forked from joshbeckman/animatedScrollTo.js
ScrollTo animation using pure javascript and no jquery
document.getElementsByTagName('button')[0].onclick = function () {
scrollTo(document.body, 0, 1250);
}
function scrollTo(element, to, duration) {
var start = element.scrollTop,
change = to - start,
currentTime = 0,
increment = 20;
@ClausClaus
ClausClaus / phpstorm-auto-semicolon-macro.txt
Created October 7, 2017 01:23 — forked from umidjons/phpstorm-auto-semicolon-macro.txt
PhpStorm: Record Auto semicolon macro and bind shortcut to it
Record Auto semicolon macro and bind shortcut to it:
1. Edit -> Macros -> Start Macro Recording
2. In the editor go to the end of line by pressing End
3. put semicolon ';'
4. Edit -> Macros -> Stop Macro Recording
5. Give a name, for example 'Auto semicolon'
6. Open settings (Ctrl + Alt + s), select Keymap
7. Expand Macros node
8. Select 'Auto semicolon', in the context menu choose Add Keyboard Shortcut
9. Set Ctrl + ; as First keystroke