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
(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
.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 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
<?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
/** | |
* Based on goog.userAgent.flash | |
* @license Apache-2.0 | |
* @see {@link https://code.google.com/p/closure-library/source/browse/closure/goog/useragent/flash.js} | |
*/ | |
function getFlashVersion() { | |
var getVersion = function(desc) { | |
var matches = desc.match(/[\d]+/g); | |
if (!matches) { | |
return ""; |
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
// Handle links with href started with '#' only. | |
jQuery(document).on('click', 'a[href]', function(e) { | |
// target element id | |
var id = jQuery(this).attr('href'); | |
if (!id.match(/^#/) || jQuery(id).length === 0 || jQuery(this).hasClass('ui-tabs-anchor')) { | |
return; | |
} | |
// prevent standard hash navigation (avoid blinking in IE) |
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 | |
add_action('admin_footer', 'qtranslate_slug_snippet'); | |
function qtranslate_slug_snippet() { | |
?> | |
<script> | |
function string_to_slug(str) { | |
str = str.replace(/^\s+|\s+$/g, ''); // trim | |
str = str.toLowerCase(); |
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' | |
}; |
NewerOlder