Skip to content

Instantly share code, notes, and snippets.

//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)
@ehoanshelt
ehoanshelt / TTFB+LoopOption
Created June 25, 2014 22:02
Run a ttfb command with the option of how many time you want the command to run.
function ttfb {
if [[ -z ${maxcount} ]];
then
maxcount=10
fi
if [[ -n ${domain} ]];
then
echo -e "\n\nTTFB measured "${maxcount}" times with 1s intervals:"
br="++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
// 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' );