Skip to content

Instantly share code, notes, and snippets.

View leobauza's full-sized avatar

Leo leobauza

View GitHub Profile
@leobauza
leobauza / zero_js_alter.php
Created April 18, 2016 14:35
JS alter for Zero theme
<?php
/**
* Implements hook_js_alter().
*/
function zero_js_alter(&$js) {
$exclude = array(
'settings' => FALSE,
'misc/jquery.js' => FALSE,
'misc/drupal.js' => FALSE,
'misc/jquery.once.js' => FALSE,
@leobauza
leobauza / zero_preprocess_node.php
Last active April 18, 2016 15:01
Preprocess the node template
<?php
/**
* Implements hook_preprocess_node().
*/
function zero_preprocess_node(&$vars) {
// Replace classes array with nothing
$vars["classes_array"] = array();
}
@leobauza
leobauza / Vue-v-React.js
Created July 12, 2017 12:09
Some comparisons between Vue.js and React
const Vue = new Vue();
0x3D812DfC8e58b0B6e1fc813C768FCD5f316b2331
0x3d812dfc8e58b0b6e1fc813c768fcd5f316b2331
@leobauza
leobauza / SketchSystems.spec
Last active April 8, 2019 02:36
Traffic Light
Traffic Light
Power On*
power loss -> Power Off
Green*
tick -> Yellow
Yellow
tick -> Red
Red
tick -> Green