- https://github.com/congtrieu112/phim
- https://github.com/shaddyy21/Lavish-Lawn
- https://github.com/sohilgupta/datamelons
- https://github.com/jtebeau/mmm
- https://github.com/mohitkr05/_wplove
- https://github.com/jimchristie/dev_jimchristie_me
- https://github.com/vee879/wordpress_4_3_1
- https://github.com/hamedb89/wp-theme-boilerplate
- https://github.com/master2be1/redux-framework
- https://github.com/DarrenJansen/Sites
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 cv2 | |
import time | |
import multiprocessing | |
import os | |
start_time = time.time() | |
# Used when trying to thread | |
def process_thread(ports): | |
for i in ports: |
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
// Avg downloads per customer | |
function sc_edd_avg_downloads_per_customer( $atts ) { | |
$amount = 0; | |
$query = new WP_Query( array( 'post_type' => 'download' ) ); | |
foreach( $query->posts as $post ) { | |
$amount = $amount + edd_get_download_sales_stats( $post->ID ); | |
} | |
$amount = $amount / edd_count_total_customers(); | |
return number_format( $amount, 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
// recent payments | |
function sc_edd_recent_payments( $atts ) { | |
$p_query = new EDD_Payments_Query( array( | |
'number' => 12, | |
'status' => 'publish' | |
) ); | |
$payments = $p_query->get_payments(); |
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 map = {87: false, 83: false}; // Update checked keys | |
$( document ).keydown( function( e ) { | |
if ( e.keyCode in map ) { | |
map[e.keyCode] = true; | |
if ( map[87] && map[83] ) { // update checking of keys | |
console.log('here'); // Action goes here | |
} | |
} | |
}).keyup(function(e) { | |
if ( e.keyCode in map ) { |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
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
/*! | |
SerializeJSON jQuery plugin. | |
https://github.com/marioizquierdo/jquery.serializeJSON | |
version 2.6.0 (Apr, 2015) | |
Copyright (c) 2012, 2015 Mario Izquierdo | |
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) | |
and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. | |
*/ | |
(function( $ ) { |
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 compiler_action( $options, $css, $changed_values ) { | |
$keys = array( | |
'header_color', | |
'header_footer_color' | |
); | |
$compile = false; | |
foreach ( $changed_values as $key => $value ) { | |
if ( in_array( $key, $keys ) ) { |
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
# Defaults for ps-watcher initscript | |
# sourced by /etc/init.d/ps-watcher | |
# installed at /etc/default/ps-watcher by the maintainer scripts | |
# prevent startup without configuration file | |
# set the below varible to 1 in order to allow ps-watcher to start | |
startup=1 | |
# Specify your configfile here | |
CONFIG="/etc/ps-watcher.conf" |
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 | |
Redux::setSection( $opt_name, array( | |
'title' => __( 'Text Area', 'redux-framework-demo' ), | |
'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . '<a href="http://docs.reduxframework.com/core/fields/textarea/" target="_blank">http://docs.reduxframework.com/core/fields/textarea/</a>', | |
'id' => 'opt-textarea-subsection', | |
'subsection' => true, | |
'fields' => array( | |
array( | |
'id' => 'background-parallax', |