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
/** | |
Usage: Just include this script after Marionette and Handlebars loading | |
IF you use require.js add script to shim and describe it in the requirements | |
*/ | |
(function(Handlebars, Marionette) { | |
Marionette.Handlebars = { | |
path: 'templates/', | |
extension: '.handlebars' | |
}; |
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 globstar($pattern, $flags = 0) { | |
if (stripos($pattern, '**') === false) { | |
$files = glob($pattern, $flags); | |
} | |
else { | |
$position = stripos($pattern, '**'); | |
$rootPattern = substr($pattern, 0, $position - 1); | |
$restPattern = substr($pattern, $position + 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
(function() { | |
class YT_Max { | |
constructor() { | |
this.maximized = false; | |
this.resizeHander = (event => { | |
this.setStyles(); | |
}); | |
} |
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
#!/bin/bash | |
for ufw in `iptables -L | grep 'Chain ufw' | awk '{ print $2 }'`; do iptables -F $ufw; done | |
for ufw in `iptables -L | grep 'Chain ufw' | awk '{ print $2 }'`; do | |
iptables -D INPUT -j $ufw | |
iptables -D FORWARD -j $ufw | |
iptables -D OUTPUT -j $ufw | |
done |
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 "//fonts.googleapis.com/css?family=Lato"; | |
.pp-card .pp-card-content p { font-weight: normal; line-height: 1.2; } | |
.pp-phases-item.pp-phase-done, | |
.pp-card .pp-card-footer, | |
.pp-card .pp-card-footer .pp-card-users, | |
.pp-open-card .pp-empty-state-container { display:none; } |
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
errorOccurred = lastErrorOccurred = new Date().getTime(); | |
_back = function(h) { | |
if (_backOk) { | |
if (_backCallback) { | |
_backCallback(); | |
_backCallback = null; | |
} | |
var hh = parseInt(h); | |
var m = $.browser.netscape ? 2 : $.browser.msie ? 3 : 7; | |
if (hh > m) { |
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
.tw-bootstrap { | |
/*! | |
* Bootstrap v3.3.7 (http://getbootstrap.com) | |
* Copyright 2011-2016 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
*/ | |
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ | |
/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ | |
/*# sourceMappingURL=bootstrap.css.map */ | |
} |
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 wp_filter_dump($name) { | |
global $wp_filter; | |
$handlers = array(); | |
if (!isset($wp_filter[$name])) { | |
return $handlers; | |
} |
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 xhr(url, post) { | |
var req = window.ActiveXObject | |
? new ActiveXObject('Microsoft.XMLHTTP') | |
: new XMLHttpRequest(); | |
if (post) { | |
req.open("POST", url, true); | |
req.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); | |
req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); | |
req.setRequestHeader('Connection', 'close'); | |
req.send(post); |
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
javascript:(function(){zoomFile.size=zoomFile.maxSize;top.location.href=zoomFile.mGetImageURL()})(); |
NewerOlder