
获得徽章 21
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇沸点
今天虽然是周二,但是一大早就收到了惊喜,来自丈母娘的 2万买电脑专款
。下面截图是丈母娘转给我老婆的转账记录,老婆让我挑选电脑了
。
我自己一直用 2018 年款的 15 寸 Mac,之前电池鼓包了,就自己 DIY 换了个电池,发了个朋友圈玩玩。没想到丈母娘看到后就说要生日给重买一个新 Mac 。
哎,从小到大过生日就是一碗长寿面,第一次收到这么贵重的礼物~~
![[流泪]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_6.dde0d83.png)
![[坏笑]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_41.2751fc1.png)
我自己一直用 2018 年款的 15 寸 Mac,之前电池鼓包了,就自己 DIY 换了个电池,发了个朋友圈玩玩。没想到丈母娘看到后就说要生日给重买一个新 Mac 。
哎,从小到大过生日就是一碗长寿面,第一次收到这么贵重的礼物~~
展开

212
54
赞了这篇文章
赞了这篇文章
前端屎山代码过滤器, 谁用谁知道
```powershell
Get-ChildItem -Recurse -Include *.vue,*.ts,*.js,*.jsx,*.tsx |
Where-Object {
$_.FullName -notmatch '\\node_modules\\' -and
$_.FullName -notmatch '\\static\\' -and
$_.FullName -notmatch '\\dist\\' -and
$_.FullName -notmatch '\\public\\'
} |
ForEach-Object {
[PSCustomObject]@{
File = $_.FullName;
Lines = (Get-Content $_.FullName | Measure-Object -Line).Lines
}
} |
Sort-Object -Property Lines -Descending |
Select-Object -First 10
```
```shell
find . -type f \( -name "*.vue" -o -name "*.ts" -o -name "*.js" -o -name "*.jsx" -o -name "*.tsx" \) \
-not -path "*/node_modules/*" -not -path "*/static/*" -not -path "*/dist/*" -not -path "*/public/*" \
-exec wc -l {} + | sort -rn | head -n 10
```
```powershell
Get-ChildItem -Recurse -Include *.vue,*.ts,*.js,*.jsx,*.tsx |
Where-Object {
$_.FullName -notmatch '\\node_modules\\' -and
$_.FullName -notmatch '\\static\\' -and
$_.FullName -notmatch '\\dist\\' -and
$_.FullName -notmatch '\\public\\'
} |
ForEach-Object {
[PSCustomObject]@{
File = $_.FullName;
Lines = (Get-Content $_.FullName | Measure-Object -Line).Lines
}
} |
Sort-Object -Property Lines -Descending |
Select-Object -First 10
```
```shell
find . -type f \( -name "*.vue" -o -name "*.ts" -o -name "*.js" -o -name "*.jsx" -o -name "*.tsx" \) \
-not -path "*/node_modules/*" -not -path "*/static/*" -not -path "*/dist/*" -not -path "*/public/*" \
-exec wc -l {} + | sort -rn | head -n 10
```
展开

1
1
赞了这篇文章
赞了这篇文章