- (0.5h) Create table for Products, Product Properties, Specific Product Properties (Each Product would be associated with a Listing Category).
- (7.5h) Create Product admin screens:
- (1.5h) Create Products table.
- (1.0h) Create table
- (0.5h) Delete Products action.
- (1.5h) Create Add/Edit Products action.
- Create associated Listing Category id.
- (1.0h) Create action to Add/Edit (global) Product Properties.
- Associate related Extra Fields to the Product category.
- (1.5h) Create Products table.
- (2.0h) Create action to Add/Edit (specific) Product Properties.
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
# convert MOV to AVI using MEncoder | |
mencoder ${fl} -o ${fl/mov/avi} -oac mp3lame -ovc lavc | |
# convert MOV to AVI using ffmpeg | |
ffmpeg -i ${fl} -sameq -vcodec msmpeg4v2 -acodec pcm_u8 ${fl/mov/avi} | |
# create audio track | |
mplayer -ao pcm -vo null -vc dummy -dumpaudio -dumpfile ${fl/mov/mp3} ${fl/mov/avi} |
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 | |
// Additions to main functions.php file - eventbrite 32bit php problems - referenced from http://wvega.com/850/getting-eventbrite-api-wordpress-plugin-to-work-on-systems-with-32-bit-builds-of-php/ | |
function wvega_850_filter_event_permalink( $url ) { // eg. http://mysite.com/events/july-test-drive-11829569561 | |
if ( function_exists( 'eventbrite_is_event' ) && eventbrite_is_event() ) { | |
$url = sprintf( '%1$s/%2$s/%3$s-%4$s/', | |
esc_url( home_url() ), // protocol://domain | |
sanitize_title( get_queried_object()->post_name ), // page-with-eventbrite-template | |
sanitize_title( get_post()->post_title ), // event-title |
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 Timepicker - v1.3.2 - 2016-05-10 | |
* http://timepicker.co | |
* | |
* Enhances standard form input fields helping users to select (or type) times. | |
* | |
* Copyright (c) 2016 Willington Vega; Licensed MIT, GPL | |
*/ | |
"undefined"!=typeof jQuery&&!function(a,b){function c(a,b,c){return new Array(c+1-a.length).join(b)+a}function d(){if(1===arguments.length){var b=arguments[0];return"string"==typeof b&&(b=a.fn.timepicker.parseTime(b)),new Date(0,0,0,b.getHours(),b.getMinutes(),b.getSeconds())}return 3===arguments.length?new Date(0,0,0,arguments[0],arguments[1],arguments[2]):2===arguments.length?new Date(0,0,0,arguments[0],arguments[1],0):new Date(0,0,0)}a.TimePicker=function(){var b=this;b.container=a(".ui-timepicker-container"),b.ui=b.container.find(".ui-timepicker"),0===b.container.length&&(b.container=a("<div></div>").addClass("ui-timepicker-container").addClass("ui-timepicker-hidden ui-helper-hidden").appendTo("body").hide(),b.ui=a("<div></div>").addClass("ui-timepicker").addClass("ui-widget ui-widget-conte |
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 | |
$regions_query = new WP_Meta_Query( $query_object->query['_regions_query'] ); | |
$regions_clauses = $regions_query->get_sql( 'post', $this->db->posts, 'ID', $query_object ); | |
$regions_clauses['join'] = str_replace( $this->db->postmeta, AWPCP_TABLE_AD_REGIONS, $regions_clauses['join'] ); | |
$regions_clauses['join'] = preg_replace( "/mt(\d+)/", 'listing_regions\1', $regions_clauses['join'] ); | |
$regions_clauses['join'] = str_replace( 'post_id', 'ad_id', $regions_clauses['join'] ); | |
$regions_clauses['where'] = str_replace( $this->db->postmeta, AWPCP_TABLE_AD_REGIONS, $regions_clauses['where'] ); |
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 | |
# Based on https://trac.ffmpeg.org/wiki/CompilationGuide/Centos | |
# Remove ffmpeg-related packages | |
yum remove ffmpeg SDL alsa-lib celt enca ffmpeg-libs flac fontconfig fribidi gsm lame-libs libICE libSM libXdamage libXext libXfixes libXi libXtst libXxf86vm libass libasyncns libcdio libdc1394 libogg liboil libraw1394 librtmp libsndfile libtheora libusb1 libv4l libva libvorbis mesa-dri-drivers mesa-dri-filesystem mesa-dri1-drivers mesa-libGL mesa-private-llvm openal-soft openjpeg-libs pulseaudio-libs schroedinger speex x264-libs xvidcore | |
# Compile ffmpeg from sources, as explained in https://trac.ffmpeg.org/wiki/CompilationGuide/Centos. | |
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel |
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
# a fully-functional Python unittest example where we have a | |
# Tornado web application that is being tested: | |
# | |
# taken from https://groups.google.com/forum/#!topic/python-tornado/hnz7JmXqEKk | |
# originally posted by Jeremy Whitlock | |
import tornado.httpserver | |
import tornado.httpclient | |
import tornado.ioloop | |
import tornado.web |
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 | |
echo $before_widget . $before_title . $title . $after_title; | |
echo '<div align="center">'; | |
echo '<form method="post" action="'. url_searchads() .'" onsubmit="if (this.keywordphrase.value == \'Search by keyword\') { this.keywordphrase.value = \'\'; } return true;">'; | |
echo '<input type="hidden" name="a" value="dosearch"/>'; | |
$keywordphrase = stripslashes_deep(awpcp_post_param('keywordphrase')); | |
if ($instance['show_keyword'] == 1) { |