Skip to content

Instantly share code, notes, and snippets.

View L-four's full-sized avatar

Kyah Rindlisbacher L-four

View GitHub Profile
@leymannx
leymannx / drupal_8_menu_get_object.php
Created August 19, 2016 11:38
Drupal 8 menu get object
<?php
$node = Drupal::request()->attributes->get('node');
?>
@RandalK
RandalK / gist:2505687
Created April 27, 2012 04:09 — forked from L-four/gist:2405585
g+ full sized images and google image search
;(function(ready, window){
// loading stuffs
var req = { paths: { jquery: "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" }, };
// if missing requirejs hook define func
if (!window.require && !window.define) {
window.define = function(mod, list, callback) {
if (mod != 'jquery') return;
delete window.define;
@xtian
xtian / html5boilerplate.jade
Last active December 23, 2023 15:05
HTML5 Boilerplate in jade
!!! 5
html(class='no-js')
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
title
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')