Pug - это препроцессор HTML и шаблонизатор, который был написан на JavaScript для Node.js.
This file contains 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 | |
$fileIn = $hook->formit->config['fileIn']; | |
$fileOut = $hook->formit->config['fileOut']; | |
$fileInPath = $modx->config['base_path'].$fileIn; | |
$fileOutPath = $modx->config['base_path'].$fileOut; | |
$formData = $hook->getValues(); | |
// FDF header section |
This file contains 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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"extends": "airbnb", | |
"rules": { | |
"no-console":0, | |
"nomen": 0 |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Техническое обслуживание</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } |
This file contains 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 | |
// Only run this via SSH | |
if (PHP_SAPI !== 'cli') return; | |
// Sometimes helpful if processing lots of Resources | |
ini_set('memory_limit', '2048M'); | |
// Init @modx | |
@include(dirname(__FILE__) . '/config.core.php'); | |
if (!defined('MODX_CORE_PATH')) define('MODX_CORE_PATH', dirname(__FILE__) . '/core/'); | |
include_once (MODX_CORE_PATH . "model/modx/modx.class.php"); | |
$modx= new modX(); |
This file contains 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
<div class='tm-product'> | |
<h1>[[*pagetitle]]</h1> | |
<div id='msProduct' class='row' itemtype='http://schema.org/Product' itemscope> | |
<meta itemprop='name' content='[[*pagetitle]]'> | |
<meta itemprop='description' content='[[*description:default=`[[*pagetitle]]`]]'> | |
<div class='span5 col-md-5 col-sm-6'> | |
[[!msGallery@bsMsGallery]] | |
</div> | |
<div class='span7 col-md-7 col-sm-5' itemtype='http://schema.org/AggregateOffer' itemprop='offers' itemscope> | |
<meta itemprop='category' content='[[#[[*parent]].pagetitle]]'> |
This file contains 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
<div class='row ms2_product col-md-4' itemtype='http://schema.org/Product' itemscope> | |
<meta itemprop='description' content='[[+description:default=`[[+pagetitle]]`]]'> | |
<div class='prev'> | |
<a href='[[+uri]]'> | |
<img src='[[+thumb:default=`[[++assets_url]]components/minishop2/img/web/ms2_small.png`]]' itemprop='image' | |
alt='[[+pagetitle]]' title='[[+pagetitle]]'> | |
</a> | |
</div> | |
<h3 class='tm-title' itemprop='name'>[[+pagetitle]]</h3> |
This file contains 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
1.Установка gource | |
#sudo apt-get update | |
#sudo apt-get install gource | |
2. Запуск и создане исходного файла | |
#gource -f --highlight-all-users --multi-sampling /home/icqparty/DRIVE/Server/work_projects/leadroi.ru/.git/ -o source.ppm | |
3.Конвертирование ppm в mp4 | |
#ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i source.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 dist.mp4 && rm viz.ppm |
This file contains 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
<!-- General Settings --> | |
<advancedsettings> | |
<loglevel hide="true">-1</loglevel> <!-- Comment: Disables logging --> | |
<playcountminimumpercent>95</playcountminimumpercent> | |
<skiploopfilter>0</skiploopfilter> <!-- Comment: For RPi or similar use 16 or higher (low CPU usage) --> | |
<nodvdrom>true</nodvdrom> | |
<!-- MySQL Library --> | |
<videodatabase> | |
<type>mysql</type> |