This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Template for adding plenty of easy logging to your code. | |
*/ | |
var severityLevel = configs.severity || 1, | |
log = {}; | |
// Quick messages, not intended to post unless debugging is needed. | |
log.debug = function (message, data) { | |
log.post(0, message, data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Example of Behave JS with public and private functions, | |
* using flexible private function to process results. Shown | |
* here firing on page load and AJAX submits. | |
*/ | |
(function ($) { | |
// Note {only: false} allows AJAX context rather than ready. | |
var behave = Drupal.behave('myBehavior', {only: false}), | |
behavior = behave.behavior(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ensure and setup namespace. | |
var Tabia = window.Tabia || {}; | |
(function ($, module) { | |
// Add utility functions. | |
module.myFunction = function () { | |
console.log('Separate files are nice'); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Determine if user is a dev on an admin page. | |
*/ | |
function _tableau_dev_on_admin() { | |
if (user_has_role(3) && path_is_admin(current_path())) { | |
return TRUE; | |
} | |
return FALSE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout-large: Desktop | |
layout-medium: Tablet | |
layout-small: Mobile Layout | |
skill-front: Front-end | |
tag-IE: Internet Explorer | |
tag-mobile: Mobile | |
skill-back: Back-end | |
skill-ops: Operations | |
tag-localize: Localize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Josh Lind | |
email: jlind@tableau.com | |
# Favorite stuff to do... | |
favSkills: | |
- layout-large | |
- skill-front | |
- tag-mobile | |
- skill-back | |
- cust-mktg-leadGen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Ms. Awesome | |
email: awesome@example.com | |
# Favorite stuff to do... | |
favSkills: | |
# Front-end | |
- layout-large | |
- layout-medium | |
- layout-small | |
- skill-front |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT n.nid as 'node-id', n.tnid as 'translation-nid', n.title, n.language, d.field_on_demand_value as 'ondemand', u.alias AS url | |
FROM node as n | |
LEFT JOIN url_alias as u | |
ON u.source = CONCAT('node/', n.nid) | |
LEFT JOIN field_data_field_on_demand as d | |
ON d.entity_id = n.nid | |
WHERE n.type = 'webinar' | |
ORDER BY nid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in ./*-icon*;do mv -- "$i" "${i//-icon/}";done |