Skip to content

Instantly share code, notes, and snippets.

View Burick's full-sized avatar
🏠
Работаю из дома

Burick Burick

🏠
Работаю из дома
View GitHub Profile
@Burick
Burick / clear-select
Last active August 29, 2015 14:27 — forked from meyercc/clear-select
LESS Mixin that clears browsers' default select box styles.
.clear-select {
border: none;
border-radius: 0;
outline: none;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
-o-appearance: none;
text-indent: 0.01px; // Need this to hide default select in FF
text-overflow: ''; // Need this to hide default select in FF
<?php
if ($modx->context->key !== 'mgr' ) {
$parts = array_reverse(explode('/', $_SERVER['REQUEST_URI']));
if ($parts[0]) {
$alias = str_replace('.html', '', $parts[0]);
} else {
$alias = $parts[1];
}
if ($res = $modx->getObject('modResource', array('alias' => $alias))) {
/**
* The first create app to link https://console.developers.google.com
* Later save json file of created app to own site. Path to the file transmit to GoogleHandler initialize method
*
* composer.json
* {
* "require": {
* "asimlqt/php-google-spreadsheet-client": "2.3.*", // https://github.com/asimlqt/php-google-spreadsheet-client
* "google/apiclient": "^2.0.0@RC"
* }
<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>
@Burick
Burick / chunk.product.content.tpl
Last active September 26, 2018 18:14 — forked from vgrish/chunk.product.content.tpl
Карточка товара
<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]]'>
@Burick
Burick / php_func.txt
Last active July 14, 2016 10:47 — forked from jaytaph/gist:807dda9b3d307702dc37
Php Functions
86937 isset
43159 echo
31697 empty
29252 substr
26146 count
24248 is_array
22572 strlen
19365 sprintf
18090 unset
16584 str_replace
@Burick
Burick / Sublime Text 3 Build 3103 License Key - CRACK
Last active January 29, 2017 20:56
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
Preferences -> Settings - User и добавить туда следующую строчку: "update_check": false,
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
# NPM CheatSheet.
# Super easy intall: npm comes with node now.
# To create your own npm package: https://www.npmjs.org/doc/misc/npm-developers.html
# More: https://www.npmjs.org/doc/
# 1. NPM Command Lines.
# Local mode is the default.
# Use --global or -g on any command to operate in global mode instead.
@Burick
Burick / npm-cheat-sheet.md
Created March 21, 2017 13:32 — forked from AvnerCohen/npm-cheat-sheet.md
Node.js - npm Cheat Sheet

Node.js - npm Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

##List of less common (however useful) NPM commands

######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:

@Burick
Burick / grid-push-pull.less
Created June 2, 2017 08:02 — forked from Evanion/grid-push-pull.less
Responsive push/pull for uikit
/* Small */
@media (max-width: @breakpoint-small-max) {
[class*='uk-push-small-'],
[class*='uk-pull-small-'] { position: relative; }
/*
* Push
*/