Skip to content

Instantly share code, notes, and snippets.

View pierre-dargham's full-sized avatar

Pierre Dargham pierre-dargham

View GitHub Profile

La vraie chanson française

Par ordre alphabétique des artistes

Richard Anthony

  • Amoureux de ma femme
  • Et j'entends siffler le train

Hugues Aufray

  • Céline
<?php
/*
Plugin Name: WPG Environment Informations
Description: WPG Environment Informations
Version: 0.1.0
*/
namespace Globalis\EnvironmentInfo;
add_action('admin_bar_menu', __NAMESPACE__.'\\add_environment_info', 10);
@pierre-dargham
pierre-dargham / acf-add-group-field-position-before-title.php
Created October 17, 2016 17:11
ACF Before Title : Adds a choice "High (before title) to ACF field groups position drop-down"
<?php
/*
Plugin Name: ACF Before Title
Description: Adds a choice "High (before title) to ACF field groups position drop-down"
Author: Pierre Dargham
Author URI: https://github.com/pierre-dargham/
Version: 1.0
*/
@pierre-dargham
pierre-dargham / queens.oz
Created June 17, 2016 13:53
Oz Constraint logic programming : 2016-03-21 Exercice 2 (Queens)
% Author: Pierre Dargham
% Author-URI : https://github.com/pierre-dargham
declare
fun {Board Width}
proc {Script Solution}
% Board and Cells
@pierre-dargham
pierre-dargham / ships.oz
Last active June 16, 2016 15:00
Oz Constraint logic programming : 2016-03-21 Exercice 1 (Ships)
% Author: Pierre Dargham
% Author-URI : https://github.com/pierre-dargham
declare
fun {Transport Fleet Number DailyDelayCost}
% Types of ships
Types = {Record.arity Fleet}
proc {Script Solution}
@pierre-dargham
pierre-dargham / gist:77602c53c8e50ac32c7b
Last active August 29, 2015 14:26 — forked from corsonr/gist:6367944
WooCommerce - Get featured products IDs
/**
* Function that returns an array containing the IDs of the featured products.
*
* @since 2.0
* @access public
* @return array
*/
function woo_get_featured_product_ids() {
// Load from cache
$featured_product_ids = get_transient( 'wc_featured_products' );