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
var mobile = /iPad|iPhone|iPod|android/.test(navigator.userAgent) && !window.MSStream; | |
if (mobile) { | |
$('body').on('touchstart click doubleclick keydown', function() { | |
$("audio[autoplay='autoplay']").each( | |
function(){ | |
this.play(); | |
this.removeAttribute('autoplay'); | |
}); | |
}); | |
} |
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 | |
// Override glossify_links theme function in your template.php file | |
function themename_glossify_links($vars) { | |
global $base_url; | |
drupal_add_css(drupal_get_path('module', 'glossify') . '/glossify.css'); | |
if ($vars['type'] == 'taxonomy') { | |
$path = 'taxonomy/term/' . $vars['id']; | |
} | |
else { |
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
#!/usr/bin/python | |
import cgi | |
import sys | |
import elementtree.ElementTree as ET | |
from jira.client import JIRA | |
instance_url = 'jira_instance_url' | |
instance_username = 'jira_instance_username' | |
instance_password = 'jira_instance_password' | |
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
import os | |
import pyrax | |
import pyrax.exceptions as exc | |
import shutil | |
import datetime | |
import sys | |
from multiprocessing import Process | |
import uuid | |
def get_container(): |
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
from jira.client import JIRA | |
import pickle | |
instance_url = 'https://XXXXXXXXXXX.atlassian.net' | |
instance_username = 'XXXXXXXXXXX.XXXXXXXXXXX' | |
instance_password = 'XXXXXXXXXXX' | |
role_to_add_group_to = 'Developers' | |
group_to_add_to_role = 'SEO' | |
options = { |