A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| /** | |
| * Sort array of objects based on another array | |
| */ | |
| function mapOrder (array, order, key) { | |
| array.sort( function (a, b) { | |
| var A = a[key], B = b[key]; | |
| version: "2.1" | |
| services: | |
| namenode: | |
| build: ./namenode | |
| container_name: namenode | |
| volumes: | |
| - hadoop_namenode:/hadoop/dfs/name | |
| environment: | |
| - CLUSTER_NAME=test |