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
function onTap (el, callback) { | |
var allowClick = true; | |
var allowTouch = false; | |
$(el).on({ | |
touchstart: function () { | |
allowClick = false; | |
allowTouch = true; | |
}, | |
touchcancel: function () { | |
allowTouch = 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
$(document).ready(function() { | |
var data = $('body').data(); | |
$("#thing-1").load(data.path + "resource-1"); | |
$("#thing-2").load(data.path + "resource-2"); | |
}); |
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
# Font Squirrel Font-face Generator Configuration File | |
# Upload this file to the generator to recreate the settings | |
# you used to create these fonts. | |
{"mode":"expert","formats":["ttf","woff","eot","svg"],"tt_instructor":"default","options_subset":"advanced","subset_custom":"","subset_custom_range":"f000-f073,f200-f273","filename_suffix":"-webfont","emsquare":"2048","spacing_adjustment":"0","rememberme":"Y"} |
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
<!-- Sample content for demonstration --> | |
<p><a href="#" onclick="return setMessage();">Set Blocking Message</a></p> | |
<p><a href="#" onclick="return unsetMessage();">Unset Blocking Message</a></p> | |
<!-- Sample script for demonstration - see setMessageOnParent() function --> | |
<script> | |
try { | |
opera.setOverrideHistoryNavigationMode('compatible'); | |
history.navigationMode = 'compatible'; |
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
script.onload = then; | |
script.onreadystatechange = function () { | |
if (/loaded|complete/.test(script.readyState)) { | |
script.onreadystatechange = null; | |
then(); | |
} | |
}; | |
function then () { |
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 UA = navigator.userAgent; | |
if (UA.match('Android') && !UA.match('Kindle')) { | |
tryIframeApproach(data.app_link, data.store_link.android); | |
} | |
else if (UA.match('iPhone|iPad|iPod')) { | |
tryIframeApproach(data.app_link, data.store_link.ios); | |
} | |
else { | |
location.href = data.web_link; | |
} |
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
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 | |
Deny from all | |
Options None | |
Options +FollowSymLinks | |
# Set the catch-all handler to prevent scripts from being executed. | |
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 | |
<Files *> | |
# Override the handler again if we're run later in the evaluation list. | |
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003 |
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 | |
function print_backtrace() { | |
$x = debug_backtrace(); | |
for ($i = 0, $l = count($x); $i < $l; $i++) { | |
echo $x[$i]['file'], ':', $x[$i]['line'], "\n"; | |
echo ($l - $i), ': ', $x[$i]['function'], '('; | |
foreach ($x[$i] ['args'] as $j => $arg) { | |
echo ($j > 0 ? ', ' : ''), | |
is_scalar($arg) ? $arg : | |
((is_array($arg) || is_object($arg)) ? json_encode($arg) : |
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
jQuery(function ($) { | |
var $commits = $('.commit-message'); | |
var message = $commits.text(); | |
var rally_tickets = $.unique(message.match(/(US|DE|TA)-\d{3,}/g) || []).sort(); | |
var rally_references = rally_tickets.map(function (ticket) { | |
return '* [' + ticket + '](https://rally1.rallydev.com/#/search?keywords=' + ticket + ')'; | |
}).filter(identity); | |
var $files = $('.file .meta .info .js-selectable-text'); | |
var files = $files.text(); |
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
$icons: ( | |
action-left: "A", | |
action-right: "B" | |
); |