原创 上三角 css
.dot-top { font-size: 0; line-height: 0; border-width: 10px; border-color: #1c1c52; border-top-width: 0; bor
原创 batch change commit author
#!/bin/sh git filter-branch --env-filter ' OLD_EMAIL="[email protected]" CORRECT_NAME="Your Correct Name" COR
原创 linear-gradient mixin
@mixin gradientAnimation($start, $end, $transTime) { background-size: 100%; background-image: $start; position: re
原创 pngquant 圖片壓縮工具
for i in *.png; do pngquant --force --quality=40-100 --strip --skip-if-larger \ --verbose $i done
原创 craco with saas-loader
全局 scss 變量和函數 const sassResourcesLoader = require('craco-sass-resources-loader'); const path = require('path'); module.
原创 Nginx with ssl
目前nginx需要pcre支持,另外如果要https需要加入http_stub_status和http_ssl yum -y install pcre-devel openssl openssl-devel ./configure --pr
原创 簡單的散列函數-djb2,sdbm,lose lose
cse.yorku.ca/~oz/hash.html
原创 Vscode中前端比較好用的插件
"dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "prisma.vscode-graphql", "zaczero.bootstrap-v4-snippets"
原创 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 s
原创 Nginx配置BrowserRouter跟隨react-router
之前有發現,當我們使用react-router的時候,如果是HashRouter一般不會出現任何問題,當我們使用BrowserRouter的時候,打包部署的時候,往往無法進行刷新。 我們在Nginx上面將uri進行try_files到ind
原创 跳錶c++
昨天面試,考查了跳錶,事後實現了一下 struct Node { int val; Node *right, *down; Node(int val): val(val), right(NULL), down(NUL
原创 evalRPN 逆波蘭算術
#include <iostream> #include <cstring> #include <vector> #include <unordered_map> #include <stack> using namespace std;
原创 二分區間
#include <iostream> using namespace std; int lower_bound(int* a, int n, int x) { int l = 0, r = n - 1; while(l < r)
原创 from acwing 從算法數量推算算法複雜度
www.acwing.com/blog/content/32