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
#!/usr/bin/env bash | |
# Inspired by implementation by Will Haley at: | |
# http://willhaley.com/blog/generate-jwt-with-bash/ | |
# Stolen from | |
# https://stackoverflow.com/questions/46657001/how-do-you-create-an-rs256-jwt-assertion-with-bash-shell-scripting | |
# and simplified to suit our needs | |
set -euo pipefail |
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
from enum import Enum | |
import sys | |
from typing import Tuple | |
class LetterColor(Enum): | |
WHITE = 'white' | |
YELLOW = 'yellow' | |
class SentenceColor(Enum): |
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 find_combinations(input_size=3, output_size=3): | |
return find_combinations_in_array( | |
list(range(1, input_size+1)), [], [], output_size) | |
def find_combinations_in_array(remaining_digits, combinations, combination, combination_length): | |
print('IN', remaining_digits, combination, combination, combination_length) | |
# exit strategy | |
# If the combination is already *combination_length* long | |
if len(combination) == combination_length: |
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
from copy import deepcopy | |
from math import ceil, sqrt | |
from random import randint | |
import numpy as np | |
from matplotlib import pyplot as plt | |
class Point(object): | |
def __init__(self, x, y): |
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
from copy import deepcopy | |
from math import ceil, sqrt | |
from random import randint | |
import numpy as np | |
from matplotlib import pyplot as plt | |
class Point(object): | |
def __init__(self, x, y): |
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
# -*- coding: utf-8 -*- | |
import copy | |
from copy import deepcopy | |
from functools import reduce | |
import cv2 | |
import numpy as np | |
from matplotlib import pyplot as plt |
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
enum Color { | |
aqua= '#00ffff', | |
azure= '#f0ffff', | |
beige= '#f5f5dc', | |
black= '#000000', | |
blue= '#0000ff', | |
brown= '#a52a2a', | |
cyan= '#00ffff', | |
darkblue= '#00008b', | |
darkcyan= '#008b8b', |