Skip to content

Instantly share code, notes, and snippets.

View CB9TOIIIA's full-sized avatar
💭
Make JBZoo Great Again ^_^

Eugene Kopylov CB9TOIIIA

💭
Make JBZoo Great Again ^_^
View GitHub Profile
@CB9TOIIIA
CB9TOIIIA / rss-parser.php
Created November 14, 2016 08:39 — forked from bizikov/rss-parser.php
Парсер rss ленты на php
<?php
$orenru = 'http://www.oren.ru/rss/';
$ural56 = 'http://www.ural56.ru/news/news-rss.php';
$oreninform = 'http://oreninform.ru/rss/';
$ru56 = 'http://56.ru/text/rss.xml';
$xml = $orenru;
$rss = simplexml_load_file($xml);
echo '<div class="orenburg-rss-stream"><ul>';
@CB9TOIIIA
CB9TOIIIA / Клеточки на css - фон
Created November 12, 2016 19:28
Клеточки на css - фон
.tetrad-pattern {
background-image: -webkit-linear-gradient(rgba(0,0,0,0.03) 2px,transparent 2px), -webkit-linear-gradient(0,rgba(0,0,0,0.03) 2px,transparent 2px), -webkit-linear-gradient(rgba(0,0,0,0.03) 1px,transparent 1px), -webkit-linear-gradient(0,rgba(0,0,0,0.03) 1px,transparent 1px);
background-size: 80px 80px, 80px 80px, 5px 5px, 5px 5px;
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}
@CB9TOIIIA
CB9TOIIIA / Выгрузка 1С на FTP
Created November 10, 2016 09:15
Выгрузка 1С на FTP
Попытка
Лог("Начата выгрузка на ftp");
ИмяFTPСервера = "имя сервера";
ПортFTPСоединения = "21";
ПользовательFTPСоединения = "логин для подключения к ftp";
ПарольFTPСоединения = "пароль для подключения к ftp";
ПассивноеFTPСоединение = Ложь;
Соединение = Новый FTPСоединение(ИмяFTPСервера, ПортFTPСоединения,ПользовательFTPСоединения,ПарольFTPСоединения, ,ПассивноеFTPСоединение);
НайденныеФайлы = НайтиФайлы("D:\1C\SITEOBMEN\1cbitrix\", "*.*", Истина); //папка с которой все будет копировать на ftp
@CB9TOIIIA
CB9TOIIIA / ⚡ AMP Joomla! by Lullabot
Last active November 8, 2016 08:54
⚡ AMP Joomla! by Lullabot
<?php
defined('_JEXEC') or die;
//need: https://github.com/Lullabot/amp-library
require_once '/amp/vendor/autoload.php';
use Lullabot\AMP\AMP;
use Lullabot\AMP\Validate\Scope;
<?php $checkamp = $_SERVER['REQUEST_URI']; ?>
$user = JFactory::getUser();
$user->phone;
$session = JFactory::getSession();
$session->set('_smsc_request_id_last', $id);
$id=$session->get('_smsc_request_id_last', false);
$jinput = JFactory::getApplication()->input;
return $jinput->server->get('REMOTE_ADDR', '', '');
$documentbody = JResponse::getBody();
$documentbody = str_replace ("</body>", $code." </body>", $documentbody);
JResponse::setBody($documentbody);
@CB9TOIIIA
CB9TOIIIA / affix простое меню
Created October 30, 2016 14:38
affix простое меню
function MobileDetect() {
var UA = navigator.userAgent.toLowerCase();
return (/android|webos|iris|bolt|mobile|iphone|ipad|ipod|iemobile|blackberry|windows phone|opera mobi|opera mini/i.test(UA)) ? true : false;
}
jQuery(document).ready(function($) {
if (!MobileDetect()) {
var header = $("#header .main-menu");
$(window).scroll(function() {
var scroll = $(window).scrollTop();
@CB9TOIIIA
CB9TOIIIA / Get month DB articles SQL
Created October 29, 2016 17:52
Get month DB articles SQL
SELECT alias FROM ****_zoo_item WHERE created BETWEEN '2016-10-01 00:00:00' and '2016-10-29 23:59:59';