Skip to content

Instantly share code, notes, and snippets.

View vermario's full-sized avatar

Mario Vercellotti vermario

View GitHub Profile
@vermario
vermario / 0_reuse_code.js
Created March 24, 2016 07:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@vermario
vermario / new_gist_file.php
Created March 24, 2016 07:39
Drupal8: check if a module is installed
<?php
if (\Drupal::moduleHandler()->moduleExists('my_module')) {
}
?>
<script type="text/javascript" src="//giroola.checkfront.com/lib/interface--31.js"></script>
<!-- CHECKFRONT BOOKING PLUGIN v23-->
<div id="CHECKFRONT_WIDGET_01"><p id="CHECKFRONT_LOADER" style="background: url('//giroola.checkfront.com/images/loader.gif') left center no-repeat; padding: 5px 5px 5px 20px">Searching Availability...</p></div>
<script>
new DROPLET.Widget ({
host: 'giroola.checkfront.com',
target: 'CHECKFRONT_WIDGET_01',
category_id: '8',
lang_id: 'it',
locale_id: 'it_IT',