Skip to content

Instantly share code, notes, and snippets.

View talhakabakus's full-sized avatar

Talha Kabakus talhakabakus

View GitHub Profile
@TJMac93
TJMac93 / logger.py
Created February 14, 2023 14:40
Simple logger to report filename and incident
import logging
logger = logging.getLogger(__name__)
# Handler determines where the logs are output
file_handler = logging.FileHandler("./history.log")
shell_handler = logging.StreamHandler()
# Set levels
logger.setLevel(logging.DEBUG)
@loiane
loiane / Ux.InputTextMask.js
Created April 8, 2011 01:10
Ux.InputTextMask for ExtJS4
/**
* InputTextMask script used for mask/regexp operations.
* Mask Individual Character Usage:
* 9 - designates only numeric values
* L - designates only uppercase letter values
* l - designates only lowercase letter values
* A - designates only alphanumeric values
* X - denotes that a custom client script regular expression is specified</li>
* All other characters are assumed to be "special" characters used to mask the input component.
* Example 1: