Skip to content

Instantly share code, notes, and snippets.

View jacine's full-sized avatar
😁

Jacine Luisi jacine

😁
View GitHub Profile
@bbenjamin
bbenjamin / drupalJqueryRemoval.md
Last active February 7, 2023 13:21
Issues relevant to Drupal JavaScript modernization and jQuery removal

Presentation Slides

https://docs.google.com/presentation/d/17Zpy5fZQsWsoZBhisA3rQiZy_JrK9MPR_HdgAisQ9XI/edit?usp=sharing

jQuery UI

Keybase proof

I hereby claim:

  • I am jacine on github.
  • I am jacine (https://keybase.io/jacine) on keybase.
  • I have a public key whose fingerprint is ED1C D152 92C1 D401 F241 0837 2C54 AE7F 3308 6C2B

To claim this, I am signing this object:

@mortendk
mortendk / menu--main.html.twig
Created May 9, 2016 01:11
complete menu link control to the max Drupal twig
{% import _self as menus %}
{#
We call a macro which calls itself to render the full tree.
@see http://twig.sensiolabs.org/doc/tags/macro.html
#}
{{ menus.menu_links(items, attributes, 0) }}
{% macro menu_links(items, attributes, menu_level) %}
{% import _self as menus %}
@jacine
jacine / setup.md
Last active September 24, 2016 15:14
Drupal 8 setup

Drupal 8 Setup

  1. Copy sites/default/default.settings.php, renaming to sites/default/settings.local.php.
  2. Copy sites/default/development.services.yml, renaming to sites/default/services.yml.

Changes in settings.local.php:

@todo Write out details. https://gist.github.com/jacine/4520c74beb5b77ef5af8

@jacine
jacine / settings.local.php
Last active January 30, 2018 16:45
settings.local.php
<?php
/**
* @file
* Local development override configuration feature.
*
* To activate this feature, copy and rename it such that its path plus
* filename is 'sites/default/settings.local.php'. Then, go to the bottom of
* 'sites/default/settings.php' and uncomment the commented lines that mention
* 'settings.local.php'.
@isramv
isramv / simple_social_share_example.md
Created February 5, 2016 18:50
Simple social share icons for D8 twig.

Simple social share icons D8.

hook_preprocess().

// Social share icons.
  if($hook == 'node') {
    if($vars['node']->getType() == 'resource') {
      global $base_root;
      $vars['base_root'] = $base_root;
      //
@christian-blades-cb
christian-blades-cb / composer_lock_merge.coffee
Last active February 7, 2017 17:51
Merge composer.lock files
#!/usr/bin/env coffee
#################################################################
# credit goes to: jphass, because I totally ripped off his code #
# (https://gist.github.com/jphaas/ad7823b3469aac112a52) #
#################################################################
#################################################################################################
# INSTALLING #
# #
@desandro
desandro / jquery-layout-review.md
Created January 28, 2013 18:13
layout thrashing in jQuery
@include handhelds {
table.responsive {
width: 100%;
thead {
display: none;
}
tr {
display: block;
}
td, th {