This file contains hidden or 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 f in *.mp4 | |
do | |
echo "Converting $f" | |
name=`echo "$f" | sed -e "s/.mp4$//g"` | |
ffmpeg -i "$f" -vn -acodec libmp3lame -ac 2 -ab 160k -ar 48000 "$name.mp3" | |
done |
This file contains hidden or 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
@ECHO OFF | |
REM Usage: | |
REM install_apk MyApp.apk | |
adb install %1 |
This file contains hidden or 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 | |
$date = '22/02/2014'; | |
$date = date( str_replace( "/", "-", $date ) ); | |
$date = date("Y-m-d", strtotime( $date ) ); | |
echo $date; //2014-02-22 |
This file contains hidden or 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 loc = self.parent.location; | |
var url = loc.href; | |
var ebaycom = ".ebay.com/"; | |
var ebayes = ".ebay.es/"; | |
var origin, destination; | |
origin = ""; | |
if (url.indexOf(ebaycom) >= 0) { | |
origin = ebaycom; | |
destination = ebayes; | |
} else if (url.indexOf(ebayes) >= 0) { |
This file contains hidden or 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
'EXCEL Macro | |
'open url with default browser | |
Sub callWebPage(url) | |
ActiveWorkbook.FollowHyperlink _ | |
Address:=url, _ | |
NewWindow:=True, _ | |
AddHistory:=True | |
End Sub | |
'usage |
This file contains hidden or 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 | |
/* | |
* @goliver79 | |
* woocommerce hide empty categories in woocommerce widget "product categories" | |
*/ | |
function woo_hide_product_categories_widget( $list_args ){ | |
$list_args[ 'hide_empty' ] = 1; | |
return $list_args; | |
} |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Static Templates | |
* | |
* If most of your site content is in .php template files, and you're tired of | |
* creating new pages, assigning them page templates, creating page templates | |
* then doing it all over again on production, this plugin is for you. | |
* | |
* Examples: | |
* |
This file contains hidden or 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 | |
/* | |
* woocommerce hide category items count in shop thumbnails | |
*/ | |
function woo_hide_subcategory_count_html( $html ){ | |
return ''; | |
} | |
add_filter( 'woocommerce_subcategory_count_html', 'woo_hide_subcategory_count_html' ); |
This file contains hidden or 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 | |
/* | |
* @goliver79 | |
* get only products with price | |
* ordered by date DESC (newer first) | |
*/ | |
$posts = new WP_Query ( array ( | |
'post_type' => 'product', | |
'order' => 'DESC', | |
'orderby' => 'date', |
This file contains hidden or 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(document).ready( function () { | |
$ = jQuery; | |
var table = $('#plans2').DataTable({ | |
language: { | |
processing: "Procesando...", | |
search: "Buscar :", | |
lengthMenu: "Ver _MENU_ elementos", | |
info: "Viendo _START_ a _END_ de <b>_TOTAL_ elementos</b>", | |
infoEmpty: "Viendo 0 a 0 de 0 elementos", | |
infoFiltered: "(filtrados de _MAX_ elementos en total)", |