These are the Kickstarter Engineering and Data role definitions for both teams.
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
| import cv2 | |
| import numpy as np | |
| # Example: Get Euler angles from a rotation matrix | |
| rot_vec = np.array([0.1, 0.2, 0.3]) # Example rotation vector | |
| rmat, _ = cv2.Rodrigues(rot_vec) | |
| # Decompose the rotation matrix into Euler angles | |
| angles, mtxR, mtxQ, Qx, Qy, Qz = cv2.RQDecomp3x3(rmat) |
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 PIL import Image | |
| import numpy as np | |
| with Image.open("cover-secret.png") as img: | |
| width, height = img.size | |
| data = np.array(img) | |
| data = np.reshape(data, width*height*3) | |
| # extract lsb | |
| data = data & 1 |
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
| import numpy as np | |
| from PIL import Image | |
| message = "Hello World!" | |
| # Encode the message in a serie of 8-bit values | |
| b_message = ''.join(["{:08b}".format(ord(x)) for x in message ]) | |
| b_message = [int(x) for x in b_message] | |
| b_message_lenght = len(b_message) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| [[source]] | |
| url = "https://pypi.python.org/simple" | |
| verify_ssl = true | |
| name = "pypi" | |
| [packages] | |
| SQLAlchemy = "*" | |
| "psycopg2-binary" = "*" | |
| [dev-packages] |
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 bitarray import bitarray | |
| import mmh3 | |
| class BloomFilter: | |
| def __init__(self, size, hash_count): | |
| self.size = size | |
| self.hash_count = hash_count | |
| self.bit_array = bitarray(size) | |
| self.bit_array.setall(0) |
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
| #https://stackoverflow.com/questions/51412182/iteratively-generating-a-permutation-of-natural-numbers/51429458#51429458 | |
| ''' Format preserving encryption using a Feistel network | |
| This code is *not* suitable for cryptographic use. | |
| See https://en.wikipedia.org/wiki/Format-preserving_encryption | |
| https://en.wikipedia.org/wiki/Feistel_cipher | |
| http://security.stackexchange.com/questions/211/how-to-securely-hash-passwords |
These instructions are based on this article: https://www.alexruf.net/2016/05/23/setup-gogs-git-service.html.
Setup Raspberry Pi with minimal Raspbian image. You need to connect to the HDMI port and set the following:
sudo raspi-configThere you need to enable the SSH server and you should change the hostname.
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 imutils import paths | |
| import argparse | |
| import requests | |
| import cv2 | |
| import os | |
| import numpy as np | |
| # Adapted from https://www.pyimagesearch.com/2017/12/04/how-to-create-a-deep-learning-dataset-using-google-images/ | |
| # fixes the following issues with the original: | |
| # 1 - files are always saved as .jpg even if they are not in JPEG format |
NewerOlder