This file contains 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
#!/usr/bin/env python | |
""" | |
Nii Mante | |
November 23rd, 2016 | |
To execute the fibonacci sequence with 5 numbers, use a command like so | |
python recursion.py fib -n 5 | |
To execute the hanoi game with 4 disks, use a command like so |
This file contains 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
CC=g++ | |
CFLAGS=-g -std=c++11 | |
EXE=find24 | |
EXE2=find24Memoize | |
all: $(EXE) $(EXE2) | |
$(EXE): find24.cpp | |
$(CC) $(CFLAGS) find24.cpp -o $(EXE) |
This file contains 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 BaseCache(object): | |
def load(self, key, **kwargs): | |
raise NotImplementedError | |
def write(self, key, record, **kwargs): | |
raise NotImplementedError | |
def delete(self, key, **kwargs): | |
raise NotImplementedError |
This file contains 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
#!/usr/local/bin/python3 | |
import boto3 | |
import json | |
import logging | |
import subprocess as sp | |
import argparse | |
import os | |
def create_parser(): |