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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Boolean Expression Evaluator Demo</title> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 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
| #!/bin/bash | |
| # CONST 1GB | |
| CONST_1GB="1024*1024*1024" | |
| # VARIABLE WORKERS | |
| CMD_W=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
| """Flask Blueprint sublcass that overrides `route`. | |
| Automatically adds rules for endpoints with and without trailing slash. | |
| """ | |
| from flask import Blueprint, Flask | |
| class BaseBlueprint(Blueprint): | |
| """The Flask Blueprint subclass.""" |
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 logging | |
| from flask import Flask | |
| from werkzeug.utils import find_modules, import_string | |
| def configure_logging(): | |
| # register root logging | |
| logging.basicConfig(level=logging.DEBUG) | |
| logging.getLogger('werkzeug').setLevel(logging.INFO) |