Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| const SECRET_KEY = ENTER YOUR SECRET KEY HERE; | |
| const MAX_TOKENS = 200; | |
| // For more cool AI snippets and demos, follow me on Twitter: https://twitter.com/_abi_ | |
| /** | |
| * Completes your prompt with GPT-3 | |
| * | |
| * @param {string} prompt Prompt | |
| * @param {number} temperature (Optional) Temperature. 1 is super creative while 0 is very exact and precise. Defaults to 0.4. |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.html$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.html [L] | |
| </IfModule> |
| <?php | |
| $files = glob("uploads/posts/**/*.*"); | |
| foreach($files as $file){ | |
| $filename = $file; | |
| // тип содержимого | |
| header('Content-Type: image/jpeg'); |
| <ifModule mod_expires.c> | |
| ExpiresActive On | |
| # Cache Images | |
| ExpiresByType image/x-icon "access plus 2592000 seconds" | |
| ExpiresByType image/jpeg "access plus 2592000 seconds" | |
| ExpiresByType image/png "access plus 2592000 seconds" | |
| ExpiresByType image/gif "access plus 2592000 seconds" |
| <? | |
| function wpse251841_wp_head() { | |
| ob_start(); | |
| wp_head(); | |
| return ob_get_clean(); | |
| } | |
| ?> |
| /** | |
| * Склонение существительных с числительными. | |
| * Функция принимает число $n и три строки - | |
| * разные формы произношения измерения величины. | |
| * Необходимая величина будет возвращена. | |
| * Например: pluralForm(100, "рубль", "рубля", "рублей") | |
| * вернёт "рублей". | |
| * | |
| * @param int величина | |
| * @param string форма1 |
| $(window).scroll(function(){ | |
| var scrollTop = $("html").scrollTop() ? $("html").scrollTop() : $("body").scrollTop(); | |
| if(scrollTop > 100){ | |
| $("a[href='#top']").fadeIn("600"); | |
| }else{ | |
| $("a[href='#top']").fadeOut("600"); | |
| } | |
| }); |
| function set_posts_per_page_for_towns_cpt( $query ) { | |
| if ( is_tax( 'faq-cat' ) ) { | |
| $query->set( 'posts_per_page', '10' ); | |
| } | |
| } | |
| add_action( 'pre_get_posts', 'set_posts_per_page_for_towns_cpt' ); |