Installez rapidement un Serveur Web, git, des librairies python, WiringPi, nodejs et Node-RED pour votre Raspberry Pi. Pratique et utile quand vous venez d'installer Raspbian.
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
<!DOCTYPE html><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<base href="http://ryanscherf.net/demos/swipe/"><div style="margin:-1px -1px 0;padding:0;border:1px solid #999;background:#fff"><div style="margin:12px;padding:8px;border:1px solid #999;background:#ddd;font:13px arial,sans-serif;color:#000;font-weight:normal;text-align:left">This is Google's cache of <a href="http://ryanscherf.net/demos/swipe/" style="text-decoration:underline;color:#00c">http://ryanscherf.net/demos/swipe/</a>. It is a snapshot of the page as it appeared on 21 Nov 2010 05:48:08 GMT. The <a href="http://ryanscherf.net/demos/swipe/" style="text-decoration:underline;color:#00c">current page</a> could have changed in the meantime. <a href="http://www.google.com/intl/en/help/features_list.html#cached" style="text-decoration:underline;color:#00c">Learn more</a><br><br><div style="float:right"><a href="http://webcache.googleusercontent.com/search?q=cache:o0JlW6UUorUJ:ryanscherf.net/demos/swipe/+jquery+swipe&hl |
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 | |
/** | |
* Gravity Wiz // Gravity Forms // Dynamic Category Select | |
* | |
* Allows the user to drill down from a top level category to a child category. | |
* | |
* @version 1.0 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/.../ |
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( 'user_register', 'add_user_to_sendy_list' ); | |
function add_user_to_sendy_list( $user_id ) { | |
$list = 'SENDY_LIST_ID'; | |
$url = 'http://SENDY_INSTALL_URL/subscribe'; | |
$user = get_userdata( $user_id ); | |
$email = $user->data->user_email; | |
$name = $user->data->user_nicename; |
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 | |
/** | |
* WP_Query 'meta_query' for "Date Start" and "Date End" custom fields. | |
* Conditions are (relation = 'OR'): | |
* 1. If "Date End" does not exist, compare "Date Start" only. | |
* 2. If "Date End" exists, show events in between that and "Date Start". | |
*/ | |
'meta_query' => array( |
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 | |
/** | |
* mana functioncust and definitions. | |
* | |
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
* | |
* @package mana | |
*/ | |
if ( ! function_exists( 'mana_setup' ) ) : |
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
# add this script in product liquid (Just before addtocart form) | |
<!-- Code added for Inventory in Pipeline --> | |
<script> | |
var inv_qty = {}; | |
{% for var in product.variants %} | |
inv_qty[{{- var.id -}}] = {{ var.inventory_quantity | default: 0 }}; | |
{% endfor %} | |
</script> | |
{% if current_variant.inventory_management == "shopify" %} |
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 | |
/** | |
* Disables comments, Add below to existing function.php file. | |
*/ | |
/** Disable support for comments and trackbacks in post types. */ | |
function df_disable_comments_post_types_support() { | |
$post_types = get_post_types(); | |
foreach ( $post_types as $post_type ) { | |
if ( post_type_supports( $post_type, 'comments' ) ) { |
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 if (!defined('ABSPATH')) die('Restricted Area'); | |
/* | |
* Plugin Name: Gravity Forms Enhancements | |
* Description: Tweaks for Gravity Forms plugin. | |
* Version: 20191102 | |
* Author: Aurélien Denis | |
* Author URI: https://wpchannel.com/ | |
*/ |
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 add_blog_category_color(){ | |
$categories = get_categories(array( 'hide_empty' => 0, )); | |
if ( ! empty( $categories ) ) { | |
echo '<style type="text/css">'; | |
foreach( $categories as $category ) { | |
$category_taxonomy = $category->taxonomy; | |
$category_id = $category->term_id; | |
$category_slug = $category->slug; | |
$category_color = get_field('blog_category_color',$category_taxonomy . '_' . $category_id); |
OlderNewer