Posts by Category

Javascript

DOM Scripting: Reading Note 2

2 minute read

Chapter 3 The DOM D: Document O: Object User-defined objects; Native objects: like Array, Math and Date; Host objects: provided by the borwser; Ho...

DOM Scripting: Reading Note 1

4 minute read

This is the note of book: « DOM Scripting Web Design with JavaScript and the Document Object Model Second Edition »”

JS: Map

less than 1 minute read

Resource

JS: 3 tips

less than 1 minute read

Follow the Dev Ed, learn 3 new stuffs

JS: react-coverflow

less than 1 minute read

Today, I add react-coverflow in my website, this Multi-item carousel is very beautiful and easily to use;

JS: Password recover

less than 1 minute read

When user choose password recovery, back end server will send a email to customer email box. This email contain a password recovery form, customer can input ...

JS: confirmation email

1 minute read

When user create a new account, the system will send a email with a comfirmation link. I add token in comfirmation link as params, when user click this link,...

Js: Popup form

1 minute read

Popup form with animation, recording it for furture development.

LeetCode: 905. Sort Array By Parity

less than 1 minute read

Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.

LeetCode: Move Zeroes

1 minute read

Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.

LeetCode: 832. Flipping an Image

less than 1 minute read

Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.

Back to top ↑

Array

LeetCode:922. Sort Array By Parity II

less than 1 minute read

Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whenever A[i] i...

LeetCode: 1122. Relative Sort Array

less than 1 minute read

Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. Sort the elements of arr1 such that the r...

LeetCode:695. Max Area of Island

2 minute read

Given a non-empty 2D array grid of 0’s and 1’s, an island is a group of 1’s (representing land) connected 4-directionally (horizontal or vertical.) You may a...

LeetCode: 969. Pancake Sorting

1 minute read

Given an array A, we can perform a pancake flip: We choose some positive integer k <= A.length, then reverse the order of the first k elements of A. We w...

LeetCode: 905. Sort Array By Parity

less than 1 minute read

Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.

LeetCode: Move Zeroes

1 minute read

Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.

LeetCode: 832. Flipping an Image

less than 1 minute read

Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.

Back to top ↑

LeetCode

LeetCode:922. Sort Array By Parity II

less than 1 minute read

Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whenever A[i] i...

LeetCode: 1122. Relative Sort Array

less than 1 minute read

Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. Sort the elements of arr1 such that the r...

LeetCode:695. Max Area of Island

2 minute read

Given a non-empty 2D array grid of 0’s and 1’s, an island is a group of 1’s (representing land) connected 4-directionally (horizontal or vertical.) You may a...

LeetCode: 969. Pancake Sorting

1 minute read

Given an array A, we can perform a pancake flip: We choose some positive integer k <= A.length, then reverse the order of the first k elements of A. We w...

LeetCode: 905. Sort Array By Parity

less than 1 minute read

Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.

LeetCode: Move Zeroes

1 minute read

Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.

LeetCode: 832. Flipping an Image

less than 1 minute read

Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.

Back to top ↑

Sort

LeetCode:922. Sort Array By Parity II

less than 1 minute read

Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whenever A[i] i...

LeetCode: 1122. Relative Sort Array

less than 1 minute read

Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. Sort the elements of arr1 such that the r...

LeetCode: 905. Sort Array By Parity

less than 1 minute read

Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.

LeetCode: Move Zeroes

1 minute read

Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.

LeetCode: 832. Flipping an Image

less than 1 minute read

Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.

Back to top ↑

Algorithm

LeetCode: 905. Sort Array By Parity

less than 1 minute read

Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.

LeetCode: Move Zeroes

1 minute read

Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.

LeetCode: 832. Flipping an Image

less than 1 minute read

Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.

Back to top ↑

Animation

Js: Popup form

1 minute read

Popup form with animation, recording it for furture development.

Back to top ↑

React

JS: react-coverflow

less than 1 minute read

Today, I add react-coverflow in my website, this Multi-item carousel is very beautiful and easily to use;

Back to top ↑

email

JS: Password recover

less than 1 minute read

When user choose password recovery, back end server will send a email to customer email box. This email contain a password recovery form, customer can input ...

JS: confirmation email

1 minute read

When user create a new account, the system will send a email with a comfirmation link. I add token in comfirmation link as params, when user click this link,...

Back to top ↑

AWS

AWS: PM2

less than 1 minute read

I use PM2 to let my Node.js running forever

AWS: Nginx

less than 1 minute read

Here is some command I use to install Nginx on AWS

Back to top ↑

Node

Back to top ↑

Books

DOM Scripting: Reading Note 2

2 minute read

Chapter 3 The DOM D: Document O: Object User-defined objects; Native objects: like Array, Math and Date; Host objects: provided by the borwser; Ho...

DOM Scripting: Reading Note 1

4 minute read

This is the note of book: « DOM Scripting Web Design with JavaScript and the Document Object Model Second Edition »”

Back to top ↑

Markdown

Back to top ↑

Chrome DevTools

Back to top ↑

Computed

Chrome DevTools: computed

less than 1 minute read

Today, I spent large amount of time to check one mistake, I can not find any clues in “Styles” part of Chrome DevTools. Finally, I find it in “Computed”, le...

Back to top ↑

Jekyll

Jekyll: different pages js file conflict

less than 1 minute read

I add a new word cloud on categroies page by using wordcloud2, but it shows errors in my tags apge, because I set all js files as document.load , it running ...

Back to top ↑

selenium

Back to top ↑

axios

axios: error callback handling

less than 1 minute read

My backend check user register input, If input data is wrong, it will send back status 404 error with “error detail” message;

Back to top ↑

Nginx

AWS: Nginx

less than 1 minute read

Here is some command I use to install Nginx on AWS

Back to top ↑

PM2

AWS: PM2

less than 1 minute read

I use PM2 to let my Node.js running forever

Back to top ↑

Redux

Redux

1 minute read

Three Principles: Single source of truth: * Easy to create universal apps; * A single state tree make it easier to debug or inspect;...

Back to top ↑

SEO

SEO

less than 1 minute read

Learning Website: https://yoast.com

Back to top ↑

JQuery

Back to top ↑

array

Back to top ↑

Ruby

Back to top ↑

JavaScript

Back to top ↑