Prints a folder in a JSON format
python main.py <path> > <output_file.json>| import argparse | |
| if __name__ == '__main__': | |
| # construct the argument parser and parse the arguments | |
| ap = argparse.ArgumentParser() | |
| ap.add_argument("-i", "--image", required=False, | |
| help="Path to the image to be scanned") | |
| args = vars(ap.parse_args()) | |
| if args["image"] == None: |
| #!/usr/bin/env python3 | |
| # encoding: utf-8 | |
| """Use instead of `python3 -m http.server` when you need CORS""" | |
| from http.server import HTTPServer, SimpleHTTPRequestHandler | |
| import sys | |
| class CORSRequestHandler(SimpleHTTPRequestHandler): | |
| def end_headers(self): |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import logging | |
| import os | |
| from logging.handlers import RotatingFileHandler | |
| class LogManager: | |
| def __init__(self, log_name, |
| [MASTER] | |
| # A comma-separated list of package or module names from where C extensions may | |
| # be loaded. Extensions are loading into the active Python interpreter and may | |
| # run arbitrary code. | |
| extension-pkg-whitelist= | |
| # Add files or directories to the blacklist. They should be base names, not | |
| # paths. | |
| ignore=CVS |
| import numpy as np | |
| # Variável onde seu índice representa a posíção no labirinto | |
| # E seu valor representa os possíveis lugares para se mover | |
| # em outras palavras, a tabela de adjacencia | |
| NOS = [ | |
| [1],#nó 0 | |
| [0, 2, 4, 3],#nó 1 | |
| [1],#nó 2 | |
| [1, 5],#nó 3 |
That is it! You read right. If you are building small applications and don't need to prepare a super complex environment to deploy it and just want to keep the code on an updated server, you can set up a bare repository on your remote machine and "listen" changes on the master. So, with a push, you can always update the code on the remote machine.
Step 1: Create the repository that will listen to the pushes on GIT and the folder where the files will be stored
That is it! You read right. If you are building small applications and don't need to prepare a super complex environment to deploy it and just want to keep the code on an updated server, you can set up a bare repository on your remote machine and "listen" changes on the master. So, with a push, you can always update the code on the remote machine.
Step 1: Create the repository that will listen to the pushes on GIT and the folder where the files will be stored
| /** | |
| * This script expects the global variables 'refresh_token' and 'firebase_api_key' to be set. 'firebase_api_key' can be found | |
| * in the Firebase console under project settings then 'Web API Key'. | |
| * 'refresh_token' as to be gathered from watching the network requests to https://securetoken.googleapis.com/v1/token from | |
| * your Firebase app, look for the formdata values | |
| * | |
| * If all the data is found it makes a request to get a new token and sets a 'auth_jwt' environment variable and updates the | |
| * global 'refresh_token'. | |
| * | |
| * Requests that need authentication should have a header with a key of 'Authentication' and value of '{{auth_jwt}}' |