<?php
/*** Extra files & functions are hooked here.* 额外的文件 功能 在这里* Displays all of the head element and everything up until the "site-content" div.* 显示所有的头部元素一直到 "site-content" div* @package Avada* @subpackage Core* @since 1.0*/// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {exit( 'Direct script access denied.' );
}if ( ! defined( 'AVADA_VERSION' ) ) {define( 'AVADA_VERSION', '5.4.2' );
}/*** Include Fusion-Library.包含*/
include_once wp_normalize_path( get_template_directory() . '/includes/lib/fusion-library.php' );/*** Include the main Avada class.*/
include_once wp_normalize_path( get_template_directory() . '/includes/class-avada.php' );/*** Define basic properties in the Avada class.定义Avada类的基本属性*/
Avada::$template_dir_path   = wp_normalize_path( get_template_directory() );
Avada::$template_dir_url    = get_template_directory_uri();
Avada::$stylesheet_dir_path = wp_normalize_path( get_stylesheet_directory() );
Avada::$stylesheet_dir_url  = get_stylesheet_directory_uri();/*** Include the autoloader.*/
include_once Avada::$template_dir_path . '/includes/class-avada-autoload.php';/*** Instantiate the autoloader.实例化autoloader*/
new Avada_Autoload();/*** Must-use Plugins.必须的插件*/
include_once Avada::$template_dir_path . '/includes/plugins/multiple_sidebars.php';
require_once Avada::$template_dir_path . '/includes/plugins/post-link-plus.php';/*** If Fusion-Builder is installed, add the options.如果插件Fusion-Builder安装了,添加到options*/
if ( ( defined( 'FUSION_BUILDER_PLUGIN_DIR' ) && is_admin() ) || ! is_admin() ) {new Fusion_Builder_Redux_Options();
}/*** Load Fusion functions and make them available for later usage.以后使用*/
require_once Avada::$template_dir_path . '/includes/fusion-functions.php';/*** Make sure the Fusion_Multilingual class has been instantiated.多语言*/
if ( ! property_exists( $fusion_library, 'multilingual' ) || ! $fusion_library->multilingual ) {$fusion_library->multilingual = new Fusion_Multilingual();
}/*** Instantiates the Avada_Options class.*/
function avada_init_options() {Avada::$options = Avada_Options::get_instance();
}// When in the dashboard delay the instantiation of the Avada_Options class.在仪表盘延迟实例化Avada_Options class
// This helps put all sidebars (both default & custom) in the Theme Options panel.这将有利于输出所有的侧边栏工具
if ( is_admin() ) {// Has to be widgets_init hook, as it is called before init with priority 1.add_action( 'init', 'avada_init_options', 1 );
} else {avada_init_options();
}/*** Instantiate Avada_Upgrade classes.* Don't instantiate the class when DOING_AJAX to avoid issues避免问题* with the WP HeartBeat API.*/
if ( ! fusion_doing_ajax() ) {Avada_Upgrade::get_instance();
}/*** Instantiates the Avada class.* Make sure the class is properly set-up.* The Avada class is a singleton* so we can directly access the one true Avada object using this function.** @return object Avada*/
// @codingStandardsIgnoreLine
function Avada() {return Avada::get_instance();
}/*** Instantiate the Avada_Admin class.* We need this both in the front & back to make sure the admin menu is properly added.*/
new Avada_Admin();/*** Instantiate the Avada_Multiple_Featured_Images object.*/
new Avada_Multiple_Featured_Images();/*** Instantiate Avada_Sidebars.*/
new Avada_Sidebars();/*** Instantiate Avada_Admin_Notices.*/
new Avada_Admin_Notices();/*** Instantiate Avada_Widget_style.*/
new Avada_Widget_Style();/*** Instantiate Avada_Page_Options.*/
new Avada_Page_Options();/*** Instantiate Avada_Portfolio.组合* This is only needed on the frontend, doesn't do anything for the dashboard.*/
if ( ! is_admin() ) {new Avada_Portfolio();
}/*** Instantiate Avada_Social_Icons.* This is only needed on the frontend, doesn't do anything for the dashboard.*/
global $social_icons;
if ( ! is_admin() ) {$social_icons = new Avada_Social_Icons();
}/*** Instantiate Avada_fonts.* Only do this while in the dashboard, not needed on the frontend.*/
if ( is_admin() ) {new Avada_Fonts();
}/*** Instantiate Avada_Scripts.*/
new Avada_Scripts();/*** Instantiate Avada_Layout_bbPress.* We only need to do this for the frontend, when bbPress is installed.*/
if ( ! is_admin() && class_exists( 'bbPress' ) ) {new Avada_Layout_bbPress();
}/*** Instantiate Avada_EventsCalendar* We only need to do this on the frontend if Events Calendar is installed*/
if ( ! is_admin() && class_exists( 'Tribe__Events__Main' ) ) {new Avada_EventsCalendar();
}/*** Conditionally Instantiate Avada_AvadaRedux.条件*/
$load_avadaredux   = false;
$load_avada_gfonts = true;
if ( is_admin() && isset( $_GET['page'] ) && 'avada_options' === $_GET['page'] ) {$load_avadaredux   = true;$load_avada_gfonts = false;
}
$http_referer = ( isset( $_SERVER['HTTP_REFERER'] ) ) ? esc_url_raw( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : '';
if ( false !== strpos( $http_referer, 'avada_options' ) ) {$load_avadaredux   = true;$load_avada_gfonts = true;
}
// @codingStandardsIgnoreLine WordPress.VIP.ValidatedSanitizedInput.InputNotValidated
$avadaredux_export = ( isset( $_GET['action'] ) && 'fusionredux_link_options-fusion_options' === $_GET['action'] && '' !== $_GET['secret'] ) ? true : false;
if ( $avadaredux_export ) {$load_avadaredux   = true;$load_avada_gfonts = false;
}if ( $load_avadaredux ) {new Avada_AvadaRedux(array('is_language_all'      => Avada::get_language_is_all(),'option_name'          => Avada::get_option_name(),'original_option_name' => Avada::get_original_option_name(),'version'              => Avada()->get_theme_version(),'textdomain'           => 'Avada','disable_dependencies' => (bool) ( '0' === Avada()->settings->get( 'dependencies_status' ) ),'display_name'         => 'Avada','menu_title'           => __( 'Theme Options', 'Avada' ),'page_title'           => __( 'Theme Options', 'Avada' ),'global_variable'      => 'fusion_fusionredux_options','page_parent'          => 'themes.php','page_slug'            => 'avada_options','menu_type'            => 'submenu','page_permissions'     => 'edit_theme_options',));
}
if ( ! is_admin() && $load_avada_gfonts ) {new Avada_Google_Fonts();
}/** Include the TGM configuration* We only need this while on the dashboard.*/
if ( is_admin() ) {require_once Avada::$template_dir_path . '/includes/class-avada-tgm-plugin-activation.php';require_once Avada::$template_dir_path . '/includes/avada-tgm.php';
}/** Include deprecated functions过时的*/
require_once Avada::$template_dir_path . '/includes/deprecated.php';/*** Metaboxes*/
if ( is_admin() ) {include_once Avada::$template_dir_path . '/includes/metaboxes/metaboxes.php';
}/*** Instantiate the mega menu framework*/
$mega_menu_framework = new Avada_Megamenu_Framework();/*** Custom Functions*/
get_template_part( 'includes/custom_functions' );
require_once Avada::$template_dir_path . '/includes/avada-functions.php';/*** WPML Config*/
if ( defined( 'ICL_SITEPRESS_VERSION' ) ) {include_once Avada::$template_dir_path . '/includes/plugins/wpml.php';
}/*** Include the importer*/
if ( is_admin() ) {include Avada::$template_dir_path . '/includes/importer/importer.php';
}/*** Load Woocommerce Configuraion.*/
if ( class_exists( 'WooCommerce' ) ) {include_once Avada::$template_dir_path . '/includes/wc-functions.php';global $avada_woocommerce;$avada_woocommerce = new Avada_Woocommerce();
}/*** The dynamic CSS.*/
require_once Avada::$template_dir_path . '/includes/dynamic_css.php';
require_once Avada::$template_dir_path . '/includes/dynamic_css_helpers.php';
global $avada_dynamic_css;
$avada_dynamic_css = new Avada_Dynamic_CSS();// Load dynamic css for plugins.
foreach ( glob( Avada::$template_dir_path . '/includes/typography/*.php', GLOB_NOSORT ) as $filename ) {require_once wp_normalize_path( $filename );
}/*** Set the $content_width global.*/
global $content_width;
if ( ! is_admin() && ( ! isset( $content_width ) || empty( $content_width ) ) ) {$content_width = (int) Avada()->layout->get_content_width();
}/*** Font-Awesome icon handler.* Adds compatibility with order versions of FA icon names.** @param  string $icon The icon-name.* @return  string*/
function avada_font_awesome_name_handler( $icon ) {$old_icons = Fusion_Data::old_icons();$fa_icon   = ( 'fa-' !== substr( $icon, 0, 3 ) ) ? 'fa-' . $icon : $icon;if ( 'icon-' === substr( $icon, 0, 5 ) || 'fa=' !== substr( $icon, 0, 3 ) ) {// Replace old prefix with new one.$icon    = str_replace( 'icon-', 'fa-', $icon );$fa_icon = ( 'fa-' !== substr( $icon, 0, 3 ) ) ? 'fa-' . $icon : $icon;if ( array_key_exists( str_replace( 'fa-', '', $icon ), $old_icons ) ) {$fa_icon = 'fa-' . $old_icons[ str_replace( 'fa-', '', $icon ) ];}}return $fa_icon;
}/*** Adds a counter span element to links.** @param string $links The links HTML string.*/
function avada_cat_count_span( $links ) {preg_match_all( '#\((.*?)\)#', $links, $matches );if ( ! empty( $matches ) ) {$i = 0;foreach ( $matches[0] as $val ) {$links = str_replace( '</a> ' . $val, ' ' . $val . '</a>', $links );$links = str_replace( '</a> ' . $val, ' ' . $val . '</a>', $links );$i++;}}return $links;
}
add_filter( 'get_archives_link', 'avada_cat_count_span' );
add_filter( 'wp_list_categories', 'avada_cat_count_span' );/*** Modify admin CSS.*/
function avada_custom_admin_styles() {echo '<style type="text/css">.widget input { border-color: #DFDFDF !important; }</style>';
}
add_action( 'admin_head', 'avada_custom_admin_styles' );/*** Add admin messages.*/
function avada_admin_notice() {?><?php if ( version_compare( PHP_VERSION, '5.3.0' ) < 0 && Avada_Admin_Notices::is_admin_notice_active( 'old-php-notice' ) ) : ?><div id="low-php-version-error" avada-data-dismissible="old-php-notice" class="notice notice-error is-dismissible"><?php /* translators: Link to WordPress requirements page. */ ?><p><?php esc_attr_e( 'Your server runs an old version of PHP 5.2. To ensure optimal performance and security we strongly encourage you to update your system soon. Avada will end support for PHP 5.2 and below when Avada 6.0 is released.', 'Avada' ); ?></p></div><?php endif; ?><?php if ( isset( $_GET['imported'] ) && 'success' === $_GET['imported'] ) : ?><div id="setting-error-settings_updated" class="updated settings-error"><p><?php esc_attr_e( 'Sucessfully imported demo data!', 'Avada' ); ?></p></div><?php endif; ?><?php
}
add_action( 'admin_notices', 'avada_admin_notice' );/*** Ignore nag messages.*/
function avada_nag_ignore() {global $current_user;$user_id = $current_user->ID;// If user clicks to ignore the notice, add that to their user meta.if ( isset( $_GET['fusion_richedit_nag_ignore'] ) && '0' == $_GET['fusion_richedit_nag_ignore'] ) {add_user_meta( $user_id, 'fusion_richedit_nag_ignore', 'true', true );}// If user clicks to ignore the notice, add that to their user meta.if ( isset( $_GET['avada_uber_nag_ignore'] ) && '0' == $_GET['avada_uber_nag_ignore'] ) {update_option( 'avada_ubermenu_notice', true );update_option( 'avada_ubermenu_notice_hidden', true );$referer = ( isset( $_SERVER['HTTP_REFERER'] ) ) ? esc_url_raw( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : '';wp_safe_redirect( $referer );}
}
add_action( 'admin_init', 'avada_nag_ignore' );if ( function_exists( 'rev_slider_shortcode' ) ) {add_action( 'admin_init', 'avada_disable_revslider_notice' );add_action( 'admin_init', 'avada_revslider_styles' );
}/*** Disable revslider notice.*/
function avada_disable_revslider_notice() {update_option( 'revslider-valid-notice', 'false' );
}/*** Woo Products Shortcode Recode.** @param  array $atts The attributes.* @return string*/
function avada_woo_product( $atts ) {global $woocommerce_loop;if ( empty( $atts ) ) {return;}$args = array('post_type'       => 'product','posts_per_page'  => 1,'no_found_rows'   => 1,'post_status'     => 'publish','columns'         => 1,);$args['tax_query'][] = WC()->query->get_tax_query();if ( isset( $atts['sku'] ) && '' !== $atts['sku'] ) {$args['meta_query'][] = array('key'     => '_sku','value'   => $atts['sku'],'compare' => '=',);}if ( isset( $atts['id'] ) ) {$args['p'] = $atts['id'];}ob_start();if ( isset( $args['columns'] ) && 1 < $args['columns'] ) {$woocommerce_loop['columns'] = $args['columns'];}$products = fusion_cached_query( $args );?><?php if ( $products->have_posts() ) : ?><?php woocommerce_product_loop_start(); ?><?php while ( $products->have_posts() ) : ?><?php $products->the_post(); ?><?php fusion_wc_get_template_part( 'content', 'product' ); ?><?php endwhile; // End of the loop. ?><?php woocommerce_product_loop_end(); ?><?phpendif;wp_reset_postdata();return '<div class="woocommerce">' . ob_get_clean() . '</div>';
}/*** Changes the default WooCommerce product shortcode* with a customized Avada version.*/
function remove_product_shortcode() {if ( class_exists( 'WooCommerce' ) ) {// First remove the shortcode.remove_shortcode( 'product' );// Then recode it.add_shortcode( 'product', 'avada_woo_product' );}
}
add_action( 'wp_loaded', 'remove_product_shortcode' );/*** Support email login on my account dropdown.*/
if ( isset( $_POST['fusion_woo_login_box'] ) && 'true' === $_POST['fusion_woo_login_box'] ) { // WPCS: CSRF ok.add_filter( 'authenticate', 'avada_email_login_auth', 10, 3 );
}/*** Allow loging-in via email.** @param  object $user     The user.* @param  string $username The username.* @param  string $password The password.*/
function avada_email_login_auth( $user, $username, $password ) {if ( is_a( $user, 'WP_User' ) ) {return $user;}if ( ! empty( $username ) ) {$username = str_replace( '&', '&', stripslashes( $username ) );$user = get_user_by( 'email', $username );if ( isset( $user, $user->user_login, $user->user_status ) && 0 == (int) $user->user_status ) {$username = $user->user_login;}}return wp_authenticate_username_password( null, $username, $password );
}/*** No redirect on woo my account dropdown login when it fails.*/
if ( isset( $_POST['fusion_woo_login_box'] ) && 'true' === $_POST['fusion_woo_login_box'] ) { // WPCS: CSRF ok.add_action( 'init', 'avada_load_login_redirect_support' );
}/*** Tweaks the login redirect for WooCommerce.*/
function avada_load_login_redirect_support() {if ( class_exists( 'WooCommerce' ) ) {// When on the my account page, do nothing.if ( ! empty( $_POST['login'] ) ) {if ( isset( $_POST['_wpnonce'] ) && ! empty( $_POST['_wpnonce'] ) ) {$nonce = sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ); // WPCS: CSRF ok.if ( wp_verify_nonce( $nonce, 'woocommerce-login' ) ) {return;}}}add_action( 'login_redirect', 'avada_login_fail', 10, 3 );}
}/*** Avada Login Fail Test.** @param  string $url     The URL.* @param  string $raw_url The Raw URL.* @param  string $user    User.* @return string*/
function avada_login_fail( $url = '', $raw_url = '', $user = '' ) {if ( ! is_account_page() ) {if ( isset( $_SERVER ) && isset( $_SERVER['HTTP_REFERER'] ) && esc_url_raw( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) ) {$referer_array = wp_parse_url( esc_url_raw( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) );$parsed_url    = ( isset( $_SERVER['SERVER_PORT'] ) ) ? wp_parse_url( esc_url_raw( wp_unslash( $_SERVER['SERVER_PORT'] ) ) ) : array('host' => '80',);// Make sure it works ok for ports other than 80.$port = ( isset( $_SERVER['SERVER_PORT'] ) ) ? ':' . $parsed_url['host'] : ':80';$port = ( ':80' === $port ) ? '' : $port;// Make sure host doesn't have a trailing slash and append the port.$host = untrailingslashit( $referer_array['host'] ) . $port;// Make sure path has a slash at the beginning.$path = $referer_array['path'];if ( 0 !== strpos( $referer_array['path'], '/' ) ) {$path = '/' . $referer_array['path'];}// Combine the above to a $referer.if ( false !== strpos( $port, '443' ) ) {$referer = 'https://' . $host . $path;} else {$referer = '//' . $host . $path;}// If there's a valid referrer, and it's not the default log-in screen.if ( ! empty( $referer ) && ! strstr( $referer, 'wp-login' ) && ! strstr( $referer, 'wp-admin' ) ) {if ( is_wp_error( $user ) ) {// Let's append some information (login=failed) to the URL for the theme to use.wp_safe_redirect(add_query_arg(array('login' => 'failed',), $referer));} else {wp_safe_redirect( $referer );}exit;}} // End if().return $url;} // End if().
}/*** Show a shop page description on product archives.*/
function woocommerce_product_archive_description() {if ( is_post_type_archive( 'product' ) && 0 == get_query_var( 'paged' ) ) {$shop_page = get_post( fusion_wc_get_page_id( 'shop' ) );if ( $shop_page ) {$description = apply_filters( 'the_content', $shop_page->post_content );if ( $description ) {echo '<div class="post-content">' . $description . '</div>'; // WPCS: XSS ok.}}}
}/*** Layerslider API.*/
function avada_layerslider_ready() {if ( class_exists( 'LS_Sources' ) ) {LS_Sources::addSkins( Avada::$template_dir_path . '/includes/ls-skins' );}if ( defined( 'LS_PLUGIN_BASE' ) ) {remove_action( 'after_plugin_row_' . LS_PLUGIN_BASE, 'layerslider_plugins_purchase_notice', 10, 3 );}
}
add_action( 'layerslider_ready', 'avada_layerslider_ready' );/*** Istantiate the auto-patcher tool.*/
global $avada_patcher;
$avada_patcher = new Fusion_Patcher(array('context'     => 'avada','version'     => Avada::get_theme_version(),'name'        => 'Avada','parent_slug' => 'avada','page_title'  => esc_attr__( 'Fusion Patcher', 'Avada' ),'menu_title'  => esc_attr__( 'Fusion Patcher', 'Avada' ),'classname'   => 'Avada','bundled'     => array('fusion-builder','fusion-core','fusion-white-label-branding',),)
);/*** During updates sometimes there are changes that will break a site.* We're adding a maintenance page to make sure users don't see a broken site.* As soon as the update is complete the site automatically returns to normal mode.*/
$maintenance   = false;
$users_message = esc_html__( 'Our site is currently undergoing scheduled maintenance. Please try again in a moment.', 'Avada' );
// Check if we're currently update Avada.
if ( Avada::$is_updating ) {$maintenance   = true;$admin_message = esc_html__( 'Currently updating the Avada Theme. Your site will be accessible once the update finishes', 'Avada' );
}/*** Make sure that if the fusion-core plugin is activated,* it's at least version 2.0.*/
if ( class_exists( 'FusionCore_Plugin' ) ) {$fc_version = FusionCore_Plugin::VERSION;if ( version_compare( $fc_version, '2.0', '<' ) ) {$maintenance   = true;/* translators: The "follow this link" link. */$admin_message = sprintf( esc_attr__( 'The Fusion-Core plugin needs to be updated before your site can exit maintenance mode. Please %s to update the plugin.', 'Avada' ), '<a href="' . admin_url( 'themes.php?page=install-required-plugins' ) . '" style="color:#0088cc;font-weight:bold;">' . esc_attr__( 'follow this link', 'Avada' ) . '</a>' );}
}/*** If we're on maintenance mode, show the screen.*/
if ( $maintenance ) {new Avada_Maintenance( true, $users_message, $admin_message );
}/*** Class for adding Avada specific data to builder.* These only affect the dashboard so are not needed when in the front-end.*/
if ( Avada_Helper::is_post_admin_screen() && defined( 'FUSION_BUILDER_PLUGIN_DIR' ) && ! fusion_doing_ajax() ) {Fusion_Builder_Filters::get_instance();
}/*** Add Fusion Builder Demos support.*/
add_theme_support( 'fusion-builder-demos' );/*** We will use builder options in Avada, no need for FB to instantiate redux.*/
add_theme_support( 'fusion-builder-options' );
add_filter( 'fusion_options_label', 'avada_set_options_label' );
add_filter( 'fusion_builder_options_url', 'avada_set_options_url' );/*** Sets options label.** @since 5.1* @param string $label Label name of options page.* @return string*/
function avada_set_options_label( $label ) {return esc_html( 'Theme Options', 'Avada' );
}/*** Set options page URL.** @since 5.1* @param string $url URL to the options page.* @return string*/
function avada_set_options_url( $url ) {return admin_url( 'themes.php?page=avada_options' );
}if ( Avada()->registration->is_registered() && Avada_Helper::is_post_admin_screen() && defined( 'FUSION_BUILDER_PLUGIN_DIR' ) && ( ! fusion_doing_ajax() || isset( $_POST['page_name'] ) ) ) {$fusion_builder_demo_importer = new Fusion_Builder_Demos_Importer();
}/*** Filter a sanitized key string.** @since 5.0.2* @param string $key     Sanitized key.* @param string $raw_key The key prior to sanitization.* @return string*/
function avada_auto_update( $key, $raw_key ) {return ( 'avada' === $key && 'Avada' === $raw_key ) ? $raw_key : $key;
}/*** Check if doing an ajax theme update,* if so make sure Avada theme name is not changed to lowercase.*/
if ( fusion_doing_ajax() && isset( $_POST['action'] ) && 'update-theme' === $_POST['action'] ) {add_filter( 'sanitize_key', 'avada_auto_update', 10, 2 );
}require_once Avada::$template_dir_path . '/includes/plugins/jetpack/class-jetpack-user-agent.php';/*** Make sure language-all works correctly.* Uses Fusion_Multilingual action.** @since 5.1*/
function avada_set_language_is_all() {Avada::set_language_is_all( true );
}
add_action( 'fusion_library_set_language_is_all', 'avada_set_language_is_all' );/*** Include Fusion Builder shared options support.*/
if ( class_exists( 'FusionBuilder' ) ) {include_once Avada::$template_dir_path . '/includes/fusion-shared-options.php';
}/*** Reset all Fusion Caches.** @since 5.1** @param array $delete_cache An array of caches to delete.*/
function avada_reset_all_caches( $delete_cache = array() ) {// Reset fusion-caches.if ( ! class_exists( 'Fusion_Cache' ) ) {include_once Avada::$template_dir_path . '/includes/lib/inc/class-fusion-cache.php';}$fusion_cache = new Fusion_Cache();$fusion_cache->reset_all_caches( $delete_cache );wp_cache_flush();
}/*** Wrapper function for wp_doing_ajax, which was introduced in WP 4.7.** @since 5.1.5*/
function fusion_doing_ajax() {if ( function_exists( 'wp_doing_ajax' ) ) {return wp_doing_ajax();}return defined( 'DOING_AJAX' ) && DOING_AJAX;
}// WIP, please ignore below.请忽略以下
if ( 'true' === get_option( 'avada_imported_demo' ) ) {flush_rewrite_rules();update_option( 'avada_imported_demo', 'false' );
}/* Omit closing PHP tag to avoid "Headers already sent" issues. */

avada function注释相关推荐

  1. Oracle function注释

    create or replace function fn_bookid_get_by_chapterid(inintChapterId in integer, outvarBookId out va ...

  2. IDEA设置注释(已亲测)

    文章目录 一.设置class注释 1.打开File and Code Templates 2.找到File Header 3.添加模版 4.效果 二.设置function注释 1.打开Live Tem ...

  3. 如何将SQL Server表驻留内存和检测

    将SQL Server数据表驻留内存是SQL Server提供的一项功能,在一般小型系统的开发过程中估计很少会涉及到.这里整理了相关文档资料,演示如何把SQL Server中一个表的所有数据都放入内存 ...

  4. PyTorch称霸学界,TensorFlow固守业界,ML框架之争将走向何方?

    关注上方"深度学习技术前沿",选择"星标公众号", 资源干货,第一时间送达! 2019 年,ML 框架之争只剩两个实力玩家:PyTorch 和 TensorFl ...

  5. 百度编辑器修改,不让它自动替换html标签

    在ueditor.all.js中找到 UE.plugins['defaultfilter'] = function () 注释或删掉这块代码. 注:ueditor.all.min.js 中也一样,格式 ...

  6. mxGraph破解说明

    破解步骤: 1.先在官网http://www.jgraph.com/mxgraph.html上下载:mxgraph-eval-1_5_1_3.zip: 2.解压后取文件夹:mxgraph/javasc ...

  7. python量化投资培训清华大学深研院_GitHub - CatsJuice/quantitative-investment-learning: 使用Python进行量化投资的学习报告...

    quantitative-investment-learning 使用Python进行量化投资的学习报告 Python量化投资学习报告 CatsJuice 编辑于 2019-4-26 上一次更新: 2 ...

  8. 无处不在_Java无处不在:使用DukeScript在任何地方运行一次编写

    无处不在 在相当长一段时间内,Java都未能兑现"一次编写,随处运行"的承诺. DukeScript希望通过在跨平台应用程序中实现视图和逻辑的清晰分离来改变这种状况. 在本文中,一 ...

  9. python多元函数求极小值_使用遗传算法求二元函数的最小值

    二元函数为y=x1^2+x2^2,x∈[-5,5] NIND=121; %初始种群的个数(Number of individuals) NVAR=2; %一个染色体(个体)有多少基因 PRECI=20 ...

最新文章

  1. 实现一个包含Microsoft.Advertising和SmartMad广告控件的UserControl
  2. 数据结构源码笔记(C语言):直接选择排序
  3. Spring Boot 2.x整合Apollo代码示例
  4. android项目编译命令行,命令行编译Android项目
  5. JS获取登录者IP和登录城市
  6. python3librequest_python3.x學習之urilib.request簡單學習
  7. 批量增加域用户并设置为漫游用户
  8. 基于Windows字库的点阵数据提取方法
  9. 菜鸟教程学习Java
  10. pchip-三阶Hermite插值
  11. Web API规范设计指引
  12. 华为虚拟化usb服务器,华为FusionComputer服务器虚拟化完美解决方案
  13. 交换机下接路由器lan还是wan_无线路由器wan口未连接如何解决【解决方法】
  14. 一元多次方程C语言,C语言解决多元多次方程.(19页)-原创力文档
  15. 微软、google、IBM的某些招聘试题
  16. 新浪微博回调地址redirect_url(授权回调页)的设置格式
  17. python redis decode_responses
  18. Python打印车次信息
  19. Edge浏览器越来越难用了?又惹“众怒”!
  20. python爬虫win10程序_Python爬虫教程:批量提取Win10锁屏壁纸

热门文章

  1. PHP 浮点数计算精度问题
  2. (收藏)漂亮的css button样式汇总
  3. 安卓版 百度网盘 10.0 VIP
  4. 若用8位机器码表示二进制数-111
  5. 计算机应用技术重点学科,计算机应用技术省级重点学科
  6. 基于微信小程序开发的商城系统
  7. 【运筹学】运输规划 ( 运输规划基变量个数 | 运输问题一般形式 | 产销平衡 | 产销不平衡 )
  8. 个人网站www.pixysoft.net设计系列: 数据库同步的实现
  9. 如何统一设置Word 的图片属性
  10. 数据名称:中国家庭追踪调查数据CFPS数据年限:2010-2020中国家庭追踪调查(China Family Panel Studies,CFPS)旨在通过跟踪收集个体、家庭、社区三个层次的数据,