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 create_category_translate() { | |
$currentScreen = get_current_screen(); | |
if ( $currentScreen->base == "settings_page_mlang" ) { | |
$categories = get_custom_categories("portfolio_category"); | |
foreach ($categories[1] as $cat) { | |
pll_register_string("Category", $cat); |
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
body { | |
-webkit-font-smoothing: antialiased; | |
} |
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 squares_content($) { | |
var $selector = $('.views-row'); | |
var max = Math.max.apply(Math, $selector.map(function(){ return $(this).height(); }).get()); | |
$selector.height(max); | |
})(jQuery); |
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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
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 the_category_filter($thelist,$separator=' ') { | |
if(!defined('WP_ADMIN')) { | |
$exclude = array('A', 'B', 'C', 'D'); //as categorias para esconder | |
$cats = explode($separator,$thelist); | |
$newlist = array(); | |
foreach($cats as $cat) { | |
$catname = trim(strip_tags($cat)); | |
if(!in_array($catname,$exclude)) |
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 | |
/** | |
* Description of ArraytoCSV | |
* | |
* @author Haroon Abbasi (Thanks) | |
* @modified Tamás András Horváth | |
* | |
* Usage: | |
* | |
* $arrytoCSV = new ArraytoCSV(); |
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
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |
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 doc = app.activeDocument; | |
var layer = doc.activeLayer; | |
var group = layer.parent.layers; | |
function main() { | |
for (var i = 0; i < group.length; i++) { | |
layer.visible = true; | |
savePNG(i); | |
if (i + 1 >= group.length) { | |
break; |
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
// ==UserScript== | |
// @name Steam Price Comparison - Unpowered edition | |
// @version 2.3.3 | |
// @namespace http://steamunpowered.eu/comparison-script/ | |
// @description Displays prices from all regions in the Steam store and convert them to your local currency | |
// @copyright 2011+, KindDragon; 2010+, Zuko; Original author: Tor (http://code.google.com/p/steam-prices/) | |
// @homepage http://userscripts.org/scripts/show/149928 | |
// @download http://userscripts.org/scripts/source/149928.user.js | |
// @update http://userscripts.org/scripts/source/149928.meta.js | |
// @license MIT License; http://www.opensource.org/licenses/mit-license.php |
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
Get-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} |