Skip to content

Instantly share code, notes, and snippets.

View cyberlex404's full-sized avatar
๐Ÿ 
Working from home

Lex Misiuro cyberlex404

๐Ÿ 
Working from home
View GitHub Profile
selectr:
remote: https://github.com/Mobius1/Selectr
license:
name: MIT
url: https://github.com/Mobius1/Selectr/blob/master/LICENSE
gpl-compatible: true
css:
theme:
https://cdn.jsdelivr.net/gh/mobius1/selectr@latest/dist/selectr.min.css: { type: external, minified: true }
js:
(function ($, Drupal, settings) {
"use strict";
Drupal.behaviors.YandexMapsSimple = {
attach: function (context) {
drupalSettings['geofield_yamaps_simple'].init_count ++;
console.log(drupalSettings['geofield_yamaps_simple'].init_count);
<?php
namespace Drupal\braslavskie_bat\Controller;
use Drupal\braslavskie_bat\BatFullCalendarEvents;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Url;
use Drupal\housing_rooms\Entity\HousingRoomInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Entity\EntityTypeManager;
<?php
namespace Drupal\housing\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Drupal\Core\Routing\RoutingEvents;
use Symfony\Component\Routing\RouteCollection;
class HousingPageRouteSubscriber extends RouteSubscriberBase{
@cyberlex404
cyberlex404 / Drupal\housing_gallery\Plugin\RulesAction\HousingMediaCalc.php
Last active December 16, 2017 18:10
Drupal 8 actions for support Rules & VBO
@cyberlex404
cyberlex404 / SubscriptionIsActive.php
Created December 23, 2017 04:03
How to create a new Selection Rule(Condition) for Panels in Drupal 8
<?php
/**
* Created by PhpStorm.
* User: Lex
* Date: 23.12.2017
* Time: 6:52
*/
namespace Drupal\housing\Plugin\Condition;
<?php
namespace Drupal\housing\Plugin\RulesAction;
use Drupal\housing\Entity\HousingPageInterface;
use Drupal\node\NodeInterface;
use Drupal\rules\Core\RulesActionBase;
/**
* Provides a 'Housing Path Update' action.
@cyberlex404
cyberlex404 / xdebug-php.md
Created December 27, 2017 13:33 — forked from ankurk91/xdebug-mac.md
php xDebug on Ubuntu/Mac and phpStorm 2017

๐Ÿชฒ Install and Configure xDebug on Ubuntu/Mac and PhpStorm ๐Ÿ˜

  • Assuming that you have already installed php and apache
  • Install xDebug php extension
# Ubuntu 16.04, php 7.0
sudo apt-get install php-xdebug

# Ubuntu 14.04, php 5.6 
sudo apt-get install php5-xdebug
(function ($, Drupal, settings) {
"use strict";
Drupal.behaviors.housingActionContact = {
attach: function (context) {
var button = $(".house-action-phones");
var housingId = button.data('housing');
var goalParams =
{
<?php
/**
* Created by PhpStorm.
* User: Lex
* Date: 18.03.2015
* Time: 14:13
*/
/**