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
using System; | |
using System.Collections.Generic; | |
public interface HuffBaseNode { | |
bool isLeaf(); | |
int weight(); | |
} | |
public class HuffLeafNode : HuffBaseNode { | |
private char _element; |
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
import sys, botocore | |
import boto3 | |
from io import BytesIO | |
from PIL import Image as pil | |
def start_compressing(dry_run=False): | |
s3 = boto3.resource('s3') | |
bucket = s3.Bucket('mybucketname') | |
exists = True |