会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Steve Yu
喜欢猫咪,阳光和你
博客园
首页
新随笔
联系
订阅
管理
2022年3月25日
batch change commit author
摘要: #!/bin/sh git filter-branch --env-filter ' OLD_EMAIL="your-old-email@example.com" CORRECT_NAME="Your Correct Name" CORRECT_EMAIL="your-correct-email@e
阅读全文
posted @ 2022-03-25 15:53 SteveYu
阅读(52)
评论(0)
推荐(0)
2022年3月24日
上三角 css
摘要: .dot-top { font-size: 0; line-height: 0; border-width: 10px; border-color: #1c1c52; border-top-width: 0; border-style: dashed; border-bottom-style: so
阅读全文
posted @ 2022-03-24 18:24 SteveYu
阅读(109)
评论(0)
推荐(0)
2022年3月11日
linear-gradient mixin
摘要: @mixin gradientAnimation($start, $end, $transTime) { background-size: 100%; background-image: $start; position: relative; z-index: 100; &:before { bac
阅读全文
posted @ 2022-03-11 15:55 SteveYu
阅读(44)
评论(0)
推荐(0)
2022年3月6日
pngquant 图片压缩工具
摘要: for i in *.png; do pngquant --force --quality=40-100 --strip --skip-if-larger \ --verbose $i done
阅读全文
posted @ 2022-03-06 22:10 SteveYu
阅读(56)
评论(0)
推荐(0)
2022年2月23日
craco with saas-loader
摘要: 全局 scss 变量和函数 const sassResourcesLoader = require('craco-sass-resources-loader'); const path = require('path'); module.exports = { plugins: [ { plugin
阅读全文
posted @ 2022-02-23 13:01 SteveYu
阅读(117)
评论(0)
推荐(0)
2021年10月7日
Nginx with ssl
摘要: 目前nginx需要pcre支持,另外如果要https需要加入http_stub_status和http_ssl yum -y install pcre-devel openssl openssl-devel ./configure --prefix=/usr/local/nginx --with-h
阅读全文
posted @ 2021-10-07 01:11 SteveYu
阅读(121)
评论(0)
推荐(0)
2021年8月31日
bloom filter
摘要: #include <stdio.h> #include <stdlib.h> void set_bitmap(char* b, unsigned int i) { b[i / 8] |= 1 << (i & 7); } void unset_bitmap(char* b, unsigned int
阅读全文
posted @ 2021-08-31 00:23 SteveYu
阅读(72)
评论(0)
推荐(0)
2021年8月30日
简单的散列函数-djb2,sdbm,lose lose
摘要: cse.yorku.ca/~oz/hash.html
阅读全文
posted @ 2021-08-30 23:26 SteveYu
阅读(106)
评论(0)
推荐(0)
2021年7月7日
zsh theme
摘要: ZSH_THEME="takashiyoshida"
阅读全文
posted @ 2021-07-07 21:19 SteveYu
阅读(88)
评论(0)
推荐(0)
2021年7月6日
Vscode中前端比较好用的插件
摘要: "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "prisma.vscode-graphql", "zaczero.bootstrap-v4-snippets"
阅读全文
posted @ 2021-07-06 10:36 SteveYu
阅读(214)
评论(0)
推荐(0)
2021年6月23日
Mac重新修改terminal显示git分支(show git branch prompt)
摘要: # Enabling and setting git info var to be used in prompt config. autoload -Uz vcs_info zstyle ':vcs_info:*' enable git svn # This line obtains informa
阅读全文
posted @ 2021-06-23 16:14 SteveYu
阅读(263)
评论(0)
推荐(0)
2021年6月22日
vim配置
摘要: 可选补全配置 https://segmentfault.com/a/1190000016330814 plus美化(必选) https://github.com/chxuan/vimplus
阅读全文
posted @ 2021-06-22 17:56 SteveYu
阅读(46)
评论(0)
推荐(0)
2021年5月29日
git rebase
摘要: 当我们想一个分支完全接在另外一个分支之后,我们可以使用rebase 第一步,主分支如下main0 main1 main2 第二步,进行branch一个分支,在这个分支上添加一点conflict 第三步,在main分支下添加两个conflict 我们想要将feature上修改接到main之后,使用gi
阅读全文
posted @ 2021-05-29 04:16 SteveYu
阅读(174)
评论(0)
推荐(0)
2021年5月23日
mongodb的docker-compose.yml
摘要: 之前有看一个个人开发者的MERN Stack技术栈,而我习惯在我的MacBook不装数据库,理由是卸载起来比较麻烦,所以类似MySQL、MongoDB都是使用Docker-Compose进行安装 MongoDB的配置如下 version: '3.8' services: mongodb: image
阅读全文
posted @ 2021-05-23 21:49 SteveYu
阅读(591)
评论(0)
推荐(0)
Nginx配置BrowserRouter跟随react-router
摘要: 之前有发现,当我们使用react-router的时候,如果是HashRouter一般不会出现任何问题,当我们使用BrowserRouter的时候,打包部署的时候,往往无法进行刷新。 我们在Nginx上面将uri进行try_files到index.html,即可跟随uri在react-router上进
阅读全文
posted @ 2021-05-23 21:01 SteveYu
阅读(828)
评论(0)
推荐(0)
下一页
公告