Arrays are the main advanced data structure in Bash, but the syntax can be hard to remember. The following list summarizes the main operations.
There are many ways of having automatic dependencies in a
Makefile. The following, however, is the most clean and complete solution that I know of for modern compilers.
This is a
Makefile that I’ve perfected over the years for rendering typical LaTeX articles or presentations (e.g. for scientific papers). It handles almost all LaTeX documents, except for large documents that use the \include feature (this is for another tip). It assumes your document has a
UTF-8 is one of the most commonly used methods to encode unicode characters into byte values. It has some interesting properties, for example, characters from the ASCII codeset retain their encoding. This is an implementation of UTF-8 decoding in OCaml.
From Marshall Clow, how to get C++11 support with the bundled clang on Mac OS X:
clang++ -std=c++0x -stdlib=libc++
This will use the new libc++.