Skip to content

Instantly share code, notes, and snippets.

View fritx's full-sized avatar
🐢
slow but safe..

Fritz Lin fritx

🐢
slow but safe..
View GitHub Profile
mongo:
image: mongo:3.2.11
volumes:
- /data/db/mongo
ports:
- "27017:27017"
redis:
image: redis
volumes:
@zhanzengyu
zhanzengyu / google扩展程序
Last active February 3, 2017 06:11
google有用的一些扩展程序,让你的逼格更高,姿势更帅
1. Momentum:新建tab桌面壁纸效果
2. Isometric Contributions:让你在github上的commit记录以三维立体的方式进行展示。
3. Avatars for Github:让你github主页上的动态不只显示用户id,还显示用户头像。一目了然。
4. Octotree:让你浏览github上的开源项目时可以直接在Chrome侧边栏像打开文件夹一样查看别人的项目。一目了然。
5. Transit:google浏览器划词翻译,遇到不懂的可以划一下,提高英语水平。
@qzm
qzm / mvvm.html
Last active June 14, 2019 10:15
mvvm 框架的实现
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>MVVM</title>
<script src="mvvm.js"></script>
</head>
@FMCorz
FMCorz / store.js
Last active August 4, 2022 10:01
Fallback on cache when Axios reports a network error
import Axios from 'axios';
import { setupCache } from 'axios-cache-adapter';
import exclude from 'axios-cache-adapter/src/exclude';
// Define the cache adapter.
const cacheAdapter = setupCache({
clearOnStale: false,
});
const getKey = cacheAdapter.config.key;
@pgilad
pgilad / Instructions.md
Last active September 15, 2025 12:12
Generate SSL Certificate for use with Webpack Dev Server (OSX)

Generate private key

$ openssl genrsa -out private.key 4096

Generate a Certificate Signing Request

openssl req -new -sha256 \

2.6 Internal Change: Reverting nextTick to Always Use Microtask

The Original Problem

When Vue detects data mutation, it asynchronously defer DOM updates to the next "tick" so that multiple mutations trigger only one update cycle. In versions before 2.5, Vue has been deferring updates using what is known as the "Microtask" (as explained in this blog post).

This works fine in most situations, but we discovered an edge case:

  1. Given two nested elements, "outer" and "inner";
  2. "inner" has a click event handler which triggers an update