lukathis.github.io's People
lukathis.github.io's Issues
算法汇总
https://www.xuchi.pro/Algo-Content/
算法学习内容汇总,题目来源leetcode。
Git Operations
https://www.xuchi.pro/git-operations/
Split 1 commit into 2
Sometimes, we mistakely commit multiple files in one single commit while it actually did 2 things.
In this case, if we only hope to cherry-pick part of them to another branch, we have to split this commit into 2.
To realize this, we can use rebase command with the interactive mode.
The overall logic is just reoccur the whole change journey and you can arrange the stages as you want.
Here’re steps which can also be found here:
Break a previous commit into multiple commits https://stackoverflow.com/questions/6217156/break-a-previous-commit-into-multiple-commits
Start an interactive rebase with below command where is the commit you want to split. In fact, any commit range will do, as long as it contains that commit
git rebase -i <commit>^
Mark the commit you want to split with the action “edit”, yes, just change it in vim mode from “pick” to “edit”
Input “x” to trigger the rebase
When it comes to editing that commit, run this command. The effect is that the HEAD is rewound by one, and the index follows suit. However, the working tree stays the same
git reset HEAD^
Now add the changes to the index that you want to have in the first commit. You can use git add (possibly interactively) or git gui (or both) to do that
Commit the now-current index with whatever commit message is appropriate now
Repeat the last two steps until your working tree is clean
Continue the rebase with command
git rebase --continue
Bomb Lab
https://www.xuchi.pro/bomb-lab/
CSAPP Lab 2. Bomb lab
理解组件状态
https://www.xuchi.pro/tech/javascript/Why-pass-func-to-set-state/
我们可以通过setState改变class状态,但改变状态的时候需要特别注意。
又要统计?试着更进一步吧
https://www.xuchi.pro/Auto-send-save-excel/
半自动化一部分统计工作之后还是想继续偷点懒,尝试着用轮子让速度更快一些。
React
React learning roadmap and collection of useful materials.
用React实现简单的Flashcard
https://www.xuchi.pro/technology/javascript/Flashcard-with-React/
学习的过程中会有好多概念需要掌握,看完理解并不难,但是能够理解、记住需要重复和实践。
所以既然在学React,就写个Flashcard的组件,实践的同时帮助概念记忆。
Registers
https://www.xuchi.pro/registers/
CSAPP: Register summarize
Dynamic Programming 动态规划
Spring学习笔记
https://www.xuchi.pro/Spring-note/
用了Spring很久但是没有完整地理解过,这篇文章会断断续续地补充更新,尝试还原下理解的过程和整体的认识。
Binary Tree 二叉树
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.