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
#!/bin/sh | |
SHORTCUT="[Desktop Entry] | |
Name=Sublime Text 2 | |
Comment=Edit text files | |
Exec=sublime | |
Icon=sublime_text.png | |
Terminal=false | |
Type=Application | |
Encoding=UTF-8 | |
Categories=Utility;TextEditor;" |
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 | |
include 'JSmin.php'; | |
include 'CSSmin.php'; | |
$sTemplatePath = $_SERVER['DOCUMENT_ROOT'] . 'Путь к шаблону'; | |
function minify(array $arr) { | |
foreach ($arr as $orig => $minVersion) { | |
$pathInfo = pathinfo($orig); |
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 | |
/** | |
* @license | |
* | |
* PHP Error | |
* | |
* Copyright (c) 2012 Joseph Lenton | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without |
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 | |
$GLOBALS["DB"]->ShowSqlStat = true; | |
$application = \Bitrix\Main\Application::getInstance(); | |
$connection = $application->getConnection(); | |
$connection->startTracker(); | |
$sqlTracker = $connection->getTracker(); | |
?> | |
Какой то код c sql запросами | |
<? var_dump($sqlTracker->getQueries()); | |
$GLOBALS["DB"]->ShowSqlStat = false; |
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 | |
namespace Newkaliningrad; | |
use Bitrix\Main\Data\Cache; | |
trait CacheTrait | |
{ | |
protected $cacheTime = 3600; | |
protected $cachePath = '/datacache/'; | |
protected $cacheVar = 'result'; |
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 | |
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"); | |
$GLOBALS["DB"]->ShowSqlStat = true; | |
$application = \Bitrix\Main\Application::getInstance(); | |
$connection = $application->getConnection(); | |
$connection->startTracker(); | |
$sqlTracker = $connection->getTracker(); | |
// Сюда вставить sql запрос. |
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 | |
namespace Newkaliningrad\Tools; | |
use Bitrix\Main\Data\Cache as BxCache; | |
use Bitrix\Main\Type\DateTime; | |
use Closure; | |
class Cache | |
{ | |
const CACHE_PATH = '/cache/path/'; |
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
--[[ | |
Awesome WM configuration template | |
--]] | |
-- {{{ Required libraries | |
local awesome, client, screen, tag = awesome, client, screen, tag | |
local ipairs, string, os, table, tostring, tonumber, type = ipairs, string, os, table, tostring, tonumber, type | |
local gears = require("gears") | |
local gdebug = require("gears.debug") |
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
.mt-5 { | |
margin-top: 5px; | |
} | |
.mr-5 { | |
margin-right: 5px; | |
} | |
.mb-5 { | |
margin-bottom: 5px; | |
} | |
.ml-5 { |
OlderNewer