Question
[LeetCode 66] Given a non-negative number represented as an array of digits, plus one to the number.
Submission
1 | public class Solution { |
[LeetCode 66] Given a non-negative number represented as an array of digits, plus one to the number.
1 | public class Solution { |
[LeetCode 133] Clone an undirected graph.
1 | /** |
This articles will show you how to setup a blog with Hexo, a blog framework built with Node.js, and publish it to GitHub.
Install Hexo, run the following command in git-bash
1 | cd /your hexo directory/ |
make sure you included the npm directory in your
PATH
variable;C:\Program Files\nodejs\node_modules\npm
Once Hexo is installed, initialize Hexo
1 | $ hexo init |
following files will be created
. ├── _config.yml ├── package.json ├── scaffolds ├── source | ├── _drafts | └── _posts └── themes
The site is then ready for deploy
After installing Hexo, you might want to have a look of the website, you can run the following command
1 | $ hexo server |
Server will be started and it can be accessed by using http://localhost:4000
1 | $ hexo generate |
create a new github repository with name (you github username).github.io
update global setting of hexo _config.yml
1 | deploy: |
Then run the following command to deploy your Hexo site to gitHub
1 | $ hexo deploy |
you will be able you visit the site with http://(you github username).github.io
Run the following command
1 | $ hexo new post "My First Blog Post" |
start blogging by editing the newly created markdown file in <Hexo directory>/source/_posts
regenerate the static files
deploy the changes to remote server if needed
<Hexo directory>/source/_posts