Skip to content

Instantly share code, notes, and snippets.

View isramv's full-sized avatar
🐧

Israel M isramv

🐧
View GitHub Profile
@isramv
isramv / d8_lando_quickstart.md
Last active October 12, 2018 16:58
drupal 8 lando quickstart

How to quickstar a Drupal8 site for local dev with lando

composer create-project drupal-composer/drupal-project:8.x-dev d86 --stability dev --no-interaction

cd d86

lando init

? What recipe do you want to use? drupal8 ? Where is your webroot relative to the init destination? web

@isramv
isramv / mary.md
Last active August 16, 2018 20:30
What is what

terminus

terminus is for phanteon

compass

is to compile sass to css

cd themes/custom/gift_planning

@isramv
isramv / emails.md
Last active July 12, 2018 16:23
emails

Welcome email:

To:

@isramv
isramv / gist:bbca2861b72cae4b6eef58e0b8f35b56
Created May 24, 2018 17:31
resize disable toolbar drupal 8
// credits https://github.com/arshad
(function ($) {
Drupal.behaviors.dieToolbardie = {
attach: function (context) {
window.matchMedia('(min-width: 975px)').addListener( function(event) {
event.matches ? $('#toolbar-item-administration', context).click() : $('.toolbar-item.is-active', context).click();
});
}
};
" Make IE Better Compatible "
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
======================================================
IE6 Only
==================
_selector {...}
@isramv
isramv / script.js
Created November 3, 2017 18:39
vision bxSlider MP4 and Youtube autoplay
// working with bxSlider.js
// Youtube and MP4 autoplay videos on Header Sliders.
(function($) {
var CB = {
slider: $('.bxslider'),
video: {},
youtubeVideos: [],
onLoad: function() {
var videoItem = CB.slider.get(0).children.item(1);
// check first slide to check if youtube video.

Keybase proof

I hereby claim:

  • I am isramv on github.
  • I am isramv_73 (https://keybase.io/isramv_73) on keybase.
  • I have a public key ASAVO1uqK8jgmO5NnA-oRlYnlU3xJni8-bsfO9jzuZFyLQo

To claim this, I am signing this object:

@isramv
isramv / config.yml
Last active May 15, 2017 06:16
Opengist drupal vm configuration file
---
# `vagrant_box` can also be set to geerlingguy/centos6, geerlingguy/centos7,
# geerlingguy/debian8, geerlingguy/ubuntu1404, geerlingguy/ubuntu1204, etc.
vagrant_box: geerlingguy/ubuntu1404
vagrant_user: vagrant
vagrant_synced_folder_default_type: nfs
vagrant_gui: false
# If you need to run multiple instances of Drupal VM, set a unique hostname,
# machine name, and IP address for each instance.

Contribution setup instructions

Fork DrupalConsole

Fork your own copy of the DrupalConsole repository to your account

Clone

Get a copy of your recently cloned version of console in your machine.

$ git clone git@github.com:[your-git-user-here]/drupal-console.git
@isramv
isramv / gist:0ba4354bc73a8210272efd143a871708
Created February 13, 2017 22:08
path api drupal 8 jsonapi
<?php
/**
* @file
*
* Contains \Drupal\path_rest\Controller\PathRestController.
*
*/
namespace Drupal\path_rest\Controller;