Monthly Archives: February 2016

Performance on sum of many ints by Python

sum

There is a such question  at codewars(http://www.codewars.com) site. Write a function to do calculation according below formula: for i from 1 to n, do i % m and return this sum for example: f(n=10,m=5) //return 20 (1+2+3+5+0+1+2+3+4+0) actually it is

Posted in Algorithm Tagged with: ,

Customize form validation by using jQuery validation plugin

Capture

Sometime form validation is trouble thing for building front page, in this article briefing a method which allow us to customize the validation by adding ourselves’ rule.

Posted in HTML5, Javascript Tagged with: ,