Category: code library
Brainfuck is a mini programming language that has only 8 keywords, i.e. 8 types of operations expressed by 8 characters. In , the Brainfuck is introduced and a python …
October 22, 2012
algorithms, brute force, code, code library, implementation, interview questions, math, programming languages, python, recursive, tricks
Q: List and compare the methods to compute where a, b, n are positive integers. A: We have four methods. The first one is to naively compute the value …
September 16, 2012
algorithms, batch script, beginner, code, code library, delphi, encryption, implementation, programming languages, string, tools / utilities, windows, windows command shell, windows scripting host
Rot13 and Rot5 are two ASCII rotation scheme that are made for alphabetic and digits respectively. The Rot13, namely, rotates the letter by 13 places, ‘A’ to ‘N’, ‘B’ …
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 …
Python offers a module urllib and its advanced version urllib2 to allow downloading files from given URLs. The following shows three different ways to access the internet data. #!/usr/bin/env …