DOM Scripting: Reading Note 2
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...
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...
This is the note of book: « DOM Scripting Web Design with JavaScript and the Document Object Model Second Edition »”
Add File System Module: var fs = require('fs');
var item = items[Math.floor(Math.random()*items.length)];
event.preventDefault():
Resource
In a deck of cards, every card has a unique integer. You can order the deck in any order you want.
Follow the Dev Ed, learn 3 new stuffs
React not support HTML 5 video:
Today, I add react-coverflow in my website, this Multi-item carousel is very beautiful and easily to use;
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 ...
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,...
I add wordcloud2 in my blog
Popup form with animation, recording it for furture development.
Today, I add a TagCloud function in my blog, here is the code:
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.
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.
Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.
1. Rmoving from end:
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...
Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except n...
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...
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...
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...
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
In a deck of cards, every card has a unique integer. You can order the deck in any order you want.
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.
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.
Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.
1. Rmoving from end:
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...
Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except n...
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...
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...
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...
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
On an 8x8 chessboard, there can be multiple Black Queens and one White King.
In a deck of cards, every card has a unique integer. You can order the deck in any order you want.
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.
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.
Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.
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...
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...
In a deck of cards, every card has a unique integer. You can order the deck in any order you want.
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.
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.
Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.
O(n2) algorithms
In a deck of cards, every card has a unique integer. You can order the deck in any order you want.
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.
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.
Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.
O(n2) algorithms
I add wordcloud2 in my blog
Popup form with animation, recording it for furture development.
Today, I add a TagCloud function in my blog, here is the code:
ThankDaniel Iwaniuk
React not support HTML 5 video:
Today, I add react-coverflow in my website, this Multi-item carousel is very beautiful and easily to use;
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 ...
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,...
I use PM2 to let my Node.js running forever
Here is some command I use to install Nginx on AWS
Add File System Module: var fs = require('fs');
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...
This is the note of book: « DOM Scripting Web Design with JavaScript and the Document Object Model Second Edition »”
How to write images url correctly in .md file?
How to write images url correctly in .md file?
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...
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 ...
DingDong
My backend check user register input, If input data is wrong, it will send back status 404 error with “error detail” message;
Here is some command I use to install Nginx on AWS
I use PM2 to let my Node.js running forever
Three Principles: Single source of truth: * Easy to create universal apps; * A single state tree make it easier to debug or inspect;...
Learning Website: https://yoast.com
event.preventDefault():
var item = items[Math.floor(Math.random()*items.length)];
Update Ruby
ThankDaniel Iwaniuk