- Select the object(s) to export
- Open the document properties window (Ctrl+Shift+D)
- Select "Resize page to drawing or selection"
- File > Save As Copy...
- Select Optimized SVG as the format if you want to use it on the web
| <?php | |
| // This file walks you through the most common features of PHP's SQLite3 API. | |
| // The code is runnable in its entirety and results in an `analytics.sqlite` file. | |
| // Create a new database, if the file doesn't exist and open it for reading/writing. | |
| // The extension of the file is arbitrary. | |
| $db = new SQLite3('analytics.sqlite', SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READWRITE); | |
| // Errors are emitted as warnings by default, enable proper error handling. |
| #!/usr/bin/env python3 | |
| import sys | |
| import json | |
| import os | |
| import os.path | |
| import shutil | |
| import logging | |
| import tempfile | |
| import glob | |
| import argparse |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| # serves a .webp image instead of jpg/png | |
| RewriteCond %{HTTP_ACCEPT} image/webp | |
| RewriteCond %{REQUEST_FILENAME} ^(.+)\.(jpe?g|png)$ | |
| RewriteCond %1\.webp -f | |
| RewriteRule ^(.+)\.(jpe?g|png)$ $1.webp [T=image/webp,E=accept:1] | |
| </IfModule> |
| # Author: Zameer Ansari | |
| # You should look at the following URL's in order to grasp a solid understanding | |
| # of Nginx configuration files in order to fully unleash the power of Nginx. | |
| # http://wiki.nginx.org/Pitfalls | |
| # http://wiki.nginx.org/QuickStart | |
| # http://wiki.nginx.org/Configuration | |
| # | |
| # Generally, you will want to move this file somewhere, and start with a clean | |
| # file but keep this around for reference. Or just disable in sites-enabled. | |
| # |
| if ('NodeList' in window && !NodeList.prototype.forEach) { | |
| console.info('polyfill for IE11'); | |
| NodeList.prototype.forEach = function (callback, thisArg) { | |
| thisArg = thisArg || window; | |
| for (var i = 0; i < this.length; i++) { | |
| callback.call(thisArg, this[i], i, this); | |
| } | |
| }; | |
| } |
Задача:
*Добавить на страницах пагинации в title, description и h1 приписку с номером страницы
Решение:
*В bitrix/php_interface/init.php (если нет, то создаем) добавляем в конец функцию разбирающая мета-теги и собирающая обратно
Событие "OnEpilog" вызывается в конце визуальной части эпилога сайта. (После того как битрикс получит уже все данные страницы)
FFmpeg is a free and open source command line tool for transcoding multimedia files. It contains a set of shared audio and video libraries such as: libavcodec, libavformat, and libavutil. With this tool, you can convert between various video and audio formats, set sample rates and resize videos.
In this document will show you how to install a stable version and the latest version of FFmpeg. This instructions apply for any Ubuntu based distribution, including Linux Mint and Elementary OS.
In order to be able to add new repositories and install packages on your Ubuntu system, you must be logged in as a user with sudo privileges.
You need to follow this procedure in order to share files between Windows 7 and Mac OS X on VMWare :
- Go in your virtual machine settings and select 'Options' tab.
- Click on 'Folder Sharing' and tick 'Always enabled'.
- Click on 'Add' button and select a folder you want to share.
- Confirm virtual machine settings.
- From 'System preferences' on Mac OS X, select 'Sharing'.
- Make sure that 'File Sharing' is enabled.
- From top menu bar, select 'Go' and 'Computer'.
- You will now see a folder named '/'. This is your shared folder between Windows 7 and Mac OS X.
| // In TS, interfaces are "open" and can be extended | |
| interface Date { | |
| /** | |
| * Give a more precise return type to the method `toISOString()`: | |
| * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString | |
| */ | |
| toISOString(): TDateISO; | |
| } | |
| type TYear = `${number}${number}${number}${number}`; |