This file contains hidden or 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
/* | |
jQuery Masked Input Plugin | |
Copyright (c) 2007 - 2015 Josh Bush (digitalbush.com) | |
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) | |
Version: 1.4.1 | |
*/ | |
!function(factory) { | |
"function" == typeof define && define.amd ? define([ "jquery" ], factory) : factory("object" == typeof exports ? require("jquery") : jQuery); | |
}(function($) { | |
var caretTimeoutId, ua = navigator.userAgent, iPhone = /iphone/i.test(ua), chrome = /chrome/i.test(ua), android = /android/i.test(ua); |
This file contains hidden or 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 | |
$rand = rand(1, 999999); | |
$source = 'https://lenta.ru/rs'.'?'.$rand; //fix for cache | |
// http://manage.megapo.st 8 минута// 16 минута// 24 минута// 32 минута// 40 минута// 48 минута// 56 минута// 8 минута | |
$options = array( | |
'http'=>array( | |
'method'=>"GET", |
This file contains hidden or 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
@import 'https://fonts.googleapis.com/css?family=Open+Sans:400,300'; | |
на | |
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400&subset=latin,cyrillic"); |
This file contains hidden or 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
// init lightbox | |
if (!empty($rel)) { | |
$rel = 'data-lightbox="' . $rel .'"'; | |
$this->app->document->addScript('assets:js/lightbox.js'); | |
$this->app->document->addStylesheet('assets:css/lightbox.css'); | |
$this->app->document->addScriptDeclaration("jQuery(function($) { $('[data-lightbox]').lightbox(); });"); | |
} | |
$simpletext = str_replace('http://','',$this->get('value', '')); |
This file contains hidden or 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
$data = $this->app->data->create($element->data()); | |
$value = $data->find("0.value"); |
This file contains hidden or 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
alias rm='rm -i' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
alias ll='ls -l' | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]' |
This file contains hidden or 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
$options = array( | |
'http'=>array( | |
'method'=>"GET", | |
'header'=>"Accept-language: en\r\n" . | |
"Cookie: foo=bar\r\n" . | |
"User-Agent: Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.102011-10-16 20:23:10\r\n" // i.e. An iPad | |
) | |
); | |
$context = stream_context_create($options); |
This file contains hidden or 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
array_multisort($totalall, $datear, $FB_value_urlar, $fbcountar, $vkcountar, $okcountar, $FB_value_titles, SORT_DESC, SORT_NUMERIC); | |
$globalsoc = [$totalall, $datear, $FB_value_urlar, $fbcountar, $vkcountar, $okcountar, $FB_value_titles]; | |
array_multisort($globalsoc[0], SORT_DESC, SORT_NUMERIC, $globalsoc[1], SORT_STRING, SORT_DESC, $globalsoc[2], SORT_NUMERIC, SORT_DESC, $globalsoc[3], SORT_NUMERIC, SORT_DESC, $globalsoc[4], SORT_NUMERIC, SORT_DESC, $globalsoc[5], SORT_NUMERIC, SORT_DESC, $globalsoc[6], SORT_STRING, SORT_DESC); |
This file contains hidden or 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
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi |
This file contains hidden or 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
0 0 * * * /some/path/to/a/file.php > $HOME/`date +\%Y\%m\%d\%H\%M\%S`-cron.log 2>&1 | |
jbzoo items:items-import -vvv >> /home/vsem/logs/cron-jbzoo/`date +\%Y-\%m-\%d_\%H-\%M-\%S`-cron.log 2>&1 | |
* * * * * /usr/local/bin/php -c /etc/php.ini ~/cli/jbzoo/vendor/jbzoo/console/bin/jbzoo items:items-import -vvv >> /home/vsem/logs/cron-jbzoo/`date +\%Y-\%m-\%d_\%H-\%M-\%S`-cron.log 2>&1 |