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
//Model | |
class User(db.Model): | |
__tablename__ = 'users' | |
id = db.Column(db.Integer, primary_key = True) | |
user_login = db.Column(db.String(50)) | |
user_password = db.Column(db.String(50)) | |
user_email = db.Column(db.String(50)) | |
user_display_name = db.Column(db.String(50)) | |
user_display_name = db.Column(db.String(50)) | |
user_date = db.Column(db.Date) |
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
function ttfb { | |
if [[ -z ${maxcount} ]]; | |
then | |
maxcount=10 | |
fi | |
if [[ -n ${domain} ]]; | |
then | |
echo -e "\n\nTTFB measured "${maxcount}" times with 1s intervals:" | |
br="++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" |
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
// change get_template_directory_uri() . '/js/theme.js' to your real path | |
function my_custom_js(){ | |
wp_enqueue_script( 'theme-js', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ) ); | |
} | |
add_action( 'wp_enqueue_scripts', 'my_custom_js' ); |