Just go to the folder where your YAML file is and run docker-compose up -d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Merge two sorted halves | |
void merge(ref int[] a, int start, int mid, int end){ | |
int p = start, q = mid+1, k = 0; // p = first half index, q = second half index, k = index of s | |
int[] s = new int [end-start+1]; // create auxiliary array with the same size of a | |
while(k <= end - start){ // both halves of a[] are sorted and have to be sorted again in a whole new array | |
if (p > mid) | |
s[k++] = a[q++]; // abbreviation for s[k] = a[q]; k++; q++; | |
else if(q > end) | |
s[k++] = a[p++]; | |
else if(a[p] < a[q]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def info(object, spacing=10, collapse=1): | |
"""Print methods and doc strings. | |
Takes module, class, list, dictionary, or string.""" | |
methodList = [method for method in dir(object) if callable(getattr(object, method))] | |
processFunc = collapse and (lambda s: " ".join(s.split())) or (lambda s: s) | |
print "\n".join(["%s %s" % | |
(method.ljust(spacing), | |
processFunc(str(getattr(object, method).__doc__))) | |
for method in methodList]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class bcolors: | |
HEADER = '\033[95m' | |
BLUE = '\033[94m' | |
GREEN = '\033[92m' | |
WARNING = '\033[93m' | |
FAIL = '\033[91m' | |
ENDC = '\033[0m' | |
BOLD = '\033[1m' | |
UNDERLINE = '\033[4m' | |
GREENB = GREEN + BOLD |