Git Product home page Git Product logo

blog-comments's Introduction

blog-comments's People

Contributors

crimx avatar

Watchers

 avatar  avatar  avatar

blog-comments's Issues

about

关于本博客及作者 | CRIMX BLOG

CRIMX 的博客,主要记录 Web 前端相关的一些内容,偶尔涉及其它方面。

https://blog.crimx.com/about

/2017/07/15/element-onresize/

巧妙监测元素尺寸变化 | CRIMX BLOG

在往下读之前不妨先想一下,你会怎么实现?如何知道元素的尺寸发生变化了? 相信很多人第一反应是 resize 事件,但这个只是 document view 变化才会触发。 然后就是轮询,反复查询值变化了没有。开销不是一般的大,但像这样的库(比如这个 七年前的 )现在还有人用。 最后便是 这个 ,号称 event based…

https://blog.crimx.com/2017/07/15/element-onresize/

/2018/06/22/select-cursor-word/

选中鼠标附近的文字 | CRIMX BLOG

最近终于抽空给 Saladict 实现了鼠标悬浮取词功能,使用了较为简洁的实现方式,这里分享一下原理以及坑的处理。 初尝试 这个需求其实很早就被人提 issue 了,当时做了一番搜索,最后尝试了 document.caretPositionFromPoint / document.caretRangeFromPoint ,效果不太理想。 如果看 mdn…

https://blog.crimx.com/2018/06/22/select-cursor-word/

/2019/06/19/搭建-karma-mocha-chai-测试-typescript-项目/

搭建 Karma+Mocha+Chai 测试 TypeScript 项目 | CRIMX BLOG

测试是软件开发中重要的一环,有了测试项目开发起来大脑负担减少,心里踏实,许多没想到的边界条件也能一一揪出。Karma+Mocha+Chai 是经过时间考验的经典测试组合,具有较高的灵活性,非常值得研究学习。本文将从零开始搭建,同时配合 TypeScript 进行测试。

https://blog.crimx.com/2019/06/19/%E6%90%AD%E5%BB%BA-karma-mocha-chai-%E6%B5%8B%E8%AF%95-typescript-%E9%A1%B9%E7%9B%AE/

/2019/04/18/搭建-gatsby-博客一:为什么选-gatsby/

搭建 Gatsby 博客一:为什么选 Gatsby | CRIMX BLOG

Gatsby 是一个 React 建站框架。在使用 Gatsby 搭建了一个小博客后,非常喜欢其管理数据的方式。然而,尽管上手可以非常快,对于刚开始用 Gatsby 的人来说,理解其基本**是个小门槛。官方提供了非常详细的教程,甚至有点过于基础了,本文面向有 React 基础,没有使用过 Gatsby 和 GraphQL 的读者分享一份笔记。

https://blog.crimx.com/2019/04/18/%E6%90%AD%E5%BB%BA-gatsby-%E5%8D%9A%E5%AE%A2%E4%B8%80%EF%BC%9A%E4%B8%BA%E4%BB%80%E4%B9%88%E9%80%89-gatsby/

/2019/09/22/真·复用组件-react-hooks-结合-rxjs-封装异步逻辑/

真·复用组件 - React hooks 结合 RxJS 封装异步逻辑 | CRIMX BLOG

本文聊聊 React hooks 如何改变旧有的开发思路,以及如何利用 hooks 结合 RxJS 将异步逻辑封装到组件中,从而轻松复用功能更复杂的组件。

https://blog.crimx.com/2019/09/22/%E7%9C%9F%C2%B7%E5%A4%8D%E7%94%A8%E7%BB%84%E4%BB%B6-react-hooks-%E7%BB%93%E5%90%88-rxjs-%E5%B0%81%E8%A3%85%E5%BC%82%E6%AD%A5%E9%80%BB%E8%BE%91/

/2017/07/06/manachers-algorithm/

Manacher 马拉车算法 | CRIMX BLOG

马拉车算法可以在线性时间复杂度内求出一个字符串的最长回文字串。其核心**跟 KMP 相似,即反复利用已掌握的情况。 视频推荐看这个,觉得是最清晰易懂的: 整体思路 这个算法的主要思路是维护一个跟原串 str 一样长的数组 lens。lens i 表示以 str i…

https://blog.crimx.com/2017/07/06/manachers-algorithm/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.