Skip to content

Instantly share code, notes, and snippets.

View tonytan4ever's full-sized avatar

Tony Tan tonytan4ever

View GitHub Profile
class AlreadyTakenException(Exception):
pass
class GameEndException(Exception):
pass
class TicTacToe:
"""
@return: nothing
"""
@Levantado
Levantado / custom_validators.py
Last active September 9, 2019 15:58
Flask WTF custom validator
from wtforms.validators import ValidationError
class UniqChecker:
def __init__(self, model, fieldname, message=None):
if message:
self.message = message
else:
self.message = "You shall no pass"
self.model = model
@zenorocha
zenorocha / README.md
Last active February 10, 2025 07:42
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage