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 / setTimeout JS пример
Created November 16, 2015 17:32
setTimeout JS пример
setTimeout(function(){
NProgress.done();
}, 1500);
@CB9TOIIIA
CB9TOIIIA / Красивые кавычки HTML
Created November 17, 2015 06:32
Красивые кавычки HTML
« Красивые кавычки »
@CB9TOIIIA
CB9TOIIIA / Settings sublime
Created November 20, 2015 07:00
Settings sublime
{
"always_show_minimap_viewport": true,
"auto_complete": true,
"autosave": false,
"color_scheme": "Packages/User/SublimeLinter/Blackboardark.tmTheme",
"coltPath": "C:\\Program Files (x86)\\COLT\\colt.exe",
"dictionary": "Packages/russian_english.dic",
"fallback_encoding": "Cyrillic (Windows 1251)",
"font_face": "DejaVu Sans Mono",
"font_options":
<td align="left" valign="top"><script src="//maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false&amp;libraries=places"></script>
<script>
var testPlace = 0;
var autocomplete;
function initialize() {
var input = document.getElementById('city');
var options = {
types: ['(cities)'],
//componentRestrictions: {country: country_code}
@CB9TOIIIA
CB9TOIIIA / google-analytics.amp.html
Created February 22, 2016 09:22 — forked from Mika-/google-analytics.amp.html
Use Google Analytics in AMP HTML
<amp-pixel src="https://ssl.google-analytics.com/collect?v=1&amp;tid=UA-12345678-1&amp;t=pageview&amp;cid=$RANDOM&amp;dt=$TITLE&amp;dl=$CANONICAL_URL&amp;z=$RANDOM"></amp-pixel>
/*
* Required parameters:
* v = API version number (currently 1)
* tid = Google Analytics property identifier (UA-12345678-1)
* t = hit type
* cid = client id (you should implement this via cookie etc.)
* z = random string to bypass caching (amphtml generates this to $RANDOM variable)
ini_set("log_errors", 1);
error_reporting(E_ALL);
ini_set("display_errors", 1);
ini_set('error_log','my_file.log');
ini_set("log_errors", 1);
@CB9TOIIIA
CB9TOIIIA / php_value memory_limit
Created February 29, 2016 15:13
php_value memory_limit
php_value memory_limit 256M
@CB9TOIIIA
CB9TOIIIA / grid bootstrap
Created March 1, 2016 08:32
grid bootstrap
/*! * grid Bootstrap v3.3.5 (http://getbootstrap.com) */
.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:
@CB9TOIIIA
CB9TOIIIA / MEDIA QUERIES CSS
Created March 1, 2016 08:34
MEDIA QUERIES CSS
/*********************
MEDIA QUERIES
*********************/
@media screen and (min-width: 220px) and (max-width: 480px) { }
@media screen and (min-width: 481px) and (max-width: 767px) { }
@media screen and (min-width: 768px) and (max-width: 992px) { }
@media screen and (min-width: 993px) and (max-width: 1200px) { }
@media screen and (min-width: 1200px) and (max-width: 1365px) { }
@media screen and (min-width: 1366px) { }
@CB9TOIIIA
CB9TOIIIA / JBImage - передать значения height и width
Created March 2, 2016 11:22
JBImage - передать значения height и width
$zoo = App::getInstance('zoo');
$element = $item->getElement('aaccae40-ef6b-479c-8a2f-9f344d94d8a7');
$data = (array)$element->data();
$pathtoimgjbimage = $data[0]['file'];
$width = '380';
$height = '250';
$thumbInfo = $zoo->jbimage->resize($pathtoimgjbimage, $width, $height);
// echo "<pre>";