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 re | |
| lower = lambda x: 1 if re.search(r'[a-z]', x) else 0 | |
| upper = lambda x: 1 if re.search(r'[A-Z]', x) else 0 | |
| numeric = lambda x: 1 if re.search(r'[0-9]', x) else 0 | |
| symbol = lambda x: 1 if re.search(r'[~!@#$%^&*]', x) else 0 | |
| invalid = lambda x: 1 if not re.search(r'[a-zA-Z0-9~!@#$%^&*]', x) else 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
| #!/usr/bin/env python3 | |
| import os | |
| import json | |
| from datetime import datetime, timedelta | |
| BACKUP_PATH=os.path.expanduser('~/Library/Application Support/superProductivity/backups') | |
| fname = sorted(os.listdir(BACKUP_PATH))[-1] | |
| dates = {} |
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 flask import Flask, request, jsonify, json, abort | |
| from flask_cors import CORS, cross_origin | |
| import pandas as pd | |
| app = Flask(__name__) | |
| cors = CORS(app) | |
| app.config['CORS_HEADERS'] = 'Content-Type' |
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
| """ | |
| doesn't work with >v0.2.. but not used either | |
| """ | |
| import sys | |
| import traceback | |
| import signal | |
| import json | |
| from threading import Thread |
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
| require 'aws-sdk' | |
| Puppet::Functions.create_function(:ssm_param) do | |
| #sensitive = Puppet::Pops::Types::PSensitiveType::Sensitive rescue String | |
| #send(:define_method, :sensitive) { sensitive } | |
| dispatch :ssm_param do | |
| param 'String', :x | |
| end |