Category: programming languages
September 13, 2012
algorithms, batch script, beginner, code, code library, implementation, programming languages, string, tricks, windows, windows command shell
Under Linux, there is a famous quote: “When there is a shell, there is a way.”, meaning that the Linux SHELL script is very powerful and in fact can …
Batch programming has been greatly enhanced in modern operating system e.g. XP or afterwards. It is in fact possible to write complex and useful applications using Windows batch programming. …
In Javascript, functions are objects. Therefore you can define objects by using functions like the following. function Person(name, age) { this.name = name; this.age = age; } var Jack …
Scripting languages are relatively slow compared to native languages e.g. C/C++. Therefore, it is often needed to identify the performance bottlenecks of the code. In , the timeit function …
In , the euclidean algorithms i.e. gcd and lcm are presented. Especially the gcd function, which computes the greatest common divisor, is fundamentally important in math and can be …