- #rus #5min 5-минутное введение
- #rus #10min 10-минутное введение от Droider
- #rus #60min 33 запроса ChatGPT для начинающих
- #eng #34min ChatGPT Tutorial - A Crash Course on Chat GPT for Beginners
- #eng #47min «ChatGPT for Beginners: The Ultimate Use Cases for Everyone» от Udemy
- #eng #2h ChatGPT for Beginners
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
| class ActivityTracker { | |
| constructor(totalTime, checkTime, metrikaId, debug = false) { | |
| this.events = [ | |
| "touchmove", | |
| "blur", | |
| "focus", | |
| "focusin", | |
| "focusout", | |
| "load", | |
| "resize", |
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 wpai_import_paragraph_block($paragraph_text){ | |
| $output = ""; | |
| $output .= '<!-- wp:paragraph \{"placeholder":"'.$paragraph_text.'"\} -->'; | |
| $output .= "\n"; | |
| $output .= '<p>'.$paragraph_text.'</p>'; | |
| $output .= "\n"; | |
| $output .= '<!-- /wp:paragraph -->'; | |
| return $output; |
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
| /** | |
| * Класс для менеджера событий (целей) | |
| * @constructor | |
| */ | |
| function EventManager() { | |
| this.init(); | |
| this.initEvents(); | |
| } | |
| /** |
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
| <?php | |
| add_filter( 'wp_all_import_single_image_uploads_dir', 'wpai_wp_all_import_single_image_uploads_dir', 10, 6 ); | |
| function wpai_wp_all_import_single_image_uploads_dir( $uploads, $image_url, $articleData, $current_xml_node, $import_id, $post_id ) { | |
| $position = strpos($image_url, 'uploads'); | |
| $result = substr($image_url, $position + 7,8); //eg: `/2021/05` | |
| $uploads['path'] = $uploads['basedir'].$result; | |
| $uploads['url'] = $uploads['baseurl'].$result; | |
| $uploads['subdir']=$result; |
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
| <?php | |
| /** | |
| * Vary LCP Image Optimizations WordPress Plugin. | |
| * | |
| * @package VaryLcpImageOptimizations | |
| * @author Weston Ruter, Google | |
| * @license GPL-2.0-or-later | |
| * @copyright 2023 Google Inc. | |
| * | |
| * @wordpress-plugin |
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
| import VideoEvents from '@src/metrics/video_events'; | |
| import logger from '@src/shared/logger'; | |
| /** | |
| * Custom Dimensions Map that is required for UA events with gtag | |
| * This mapping is not required for GA4 | |
| */ | |
| const concertCustomDimensionMap = { | |
| 'dimension1': 'video_id', | |
| 'dimension2': 'video_length', |
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
| <?php | |
| /** | |
| * | |
| * Scripts and actions to optimize WordPress | |
| * | |
| */ | |
| // Remove block editor | |
| add_filter( 'use_block_editor_for_post', '__return_false' ); |
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
| <!-- Google Analytics --> | |
| <script async>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXX'); | |
| <!--<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>--> | |
| <!-- Yandex Metrica --> | |
| <script async>(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(XXXXXX, "init", {}); | |
| <!--<noscript><img src="https://mc.yandex.ru/watch/XXXXXX" style="position:absolute; left:-9999px;" alt=""></noscript>--> |
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
| <?php | |
| add_filter( | |
| 'wp_schema_pro_schema_article', | |
| /** | |
| * Расширяет микроразметку BlogPosting для Яндекс.Метрики. | |
| * | |
| * @link https://metrika.yandex.ru/support/metrica/publishers/schema-org/json-ld.html#json-ld__identifier-desc | |
| * | |
| * @param array $schema Схема. | |
| * @param array $data Данные. |