Skip to content

Instantly share code, notes, and snippets.

View lllyin's full-sized avatar
🙉
so handsome

lyin lllyin

🙉
so handsome
  • shenzhen,china
View GitHub Profile
@lllyin
lllyin / nsmb.conf
Created May 8, 2022 16:15 — forked from jbfriedrich/nsmb.conf
macOS 11.2 NSMB configuration
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29
#------------------------------------------------------------------------------
# SMB configuration for macOS 11.3 <-> Synology
#------------------------------------------------------------------------------
# Additional information:
# -----------------------
# https://support.apple.com/de-de/HT211927
# https://support.apple.com/en-us/HT208209
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
# https://photographylife.com/afp-vs-nfs-vs-smb-performance
@lllyin
lllyin / 利维坦PC脚手架耗时分析及优化.md
Last active December 11, 2019 14:19
利维坦PC脚手架耗时分析及优化

脚手架耗时分析及优化

未参与分析的

  • html-webpack-pldugin

优化结果

耗时已是跑了多次项目的大概均值。热重启场景均是只增删一两个字符串。

@lllyin
lllyin / mini-store.ts
Last active September 10, 2020 16:02
mini-store
import { parseJSON } from 'utils/tools/parseJSON';
import { IOPtions, ISubscribe } from './Types';
/**
* mini store
* 微型数据管理的仓库库
*
* 必要的说明:
* - 1. 订阅 subscribe: 只有先订阅后,set或update才能触发订阅函数,未订阅前的set和update是不会触发订阅函数的。
*
@lllyin
lllyin / miniHistory.tsx
Last active July 2, 2019 09:55
miniHistory
import React, { Component } from 'react';
import wxUtils from 'utils/wxUtils';
import history from './history';
const { push, ...rest } = history;
/**
* 用于兼容在小程序内跳转的一套API
* 接口参数与history API一致
*/
// tslint:disable-next-line: no-any
@lllyin
lllyin / rxjs.ts
Created June 3, 2019 02:26
rxjs之ajax
import { ajax } from 'rxjs/ajax';
import { map, tap, catchError } from 'rxjs/operators';
import { Subject, of } from 'rxjs';
function request(url){
const subject = new Subject<any>();
setTimeout(() => {
if(localStorage.getItem(url)){