Skip to content

Instantly share code, notes, and snippets.

View MarcGuay's full-sized avatar

Marc Guay MarcGuay

  • Montreal, Quebec, Canada
View GitHub Profile
$wp_customize->add_setting( 'scss-paragraph-font-size', array(
'sanitize_callback' => 'scss_number_format',
) );
$wp_customize->add_control( 'scss-paragraph-font-size', array(
'type' => 'number',
'priority' => 10,
'section' => 'fonts',
'label' => 'Paragraph Font Size',
'input_attrs' => array(
@MarcGuay
MarcGuay / gist:5c1bd8ab2a17027297f4
Created September 4, 2015 13:00
get_theme_mods() vs get_theme_mod()
// wp-content/themes/twentyfifteen/inc.customizer.php
$wp_customize->add_setting( 'test-color', array(
'default' => '#f72525',
'sanitize_callback' => 'sanitize_hex_color',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'test-color', array(
'label' => __( 'Test Color', 'twentyfifteen' ),
'section' => 'colors',
libmysqlclient18:
Installed: 5.6.24-1ubuntu14.04
Candidate: 5.6.24-1ubuntu14.04
Version table:
*** 5.6.24-1ubuntu14.04 0
100 /var/lib/dpkg/status
5.5.49-0ubuntu0.14.04.1 0
500 http://ca.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://ca.archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
5.5.35+dfsg-1ubuntu1 0
libmysqlclient-dev:
Installed: (none)
Candidate: 5.5.49-0ubuntu0.14.04.1
Version table:
5.5.49-0ubuntu0.14.04.1 0
500 http://ca.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://ca.archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
5.5.35+dfsg-1ubuntu1 0
500 http://ca.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
apt-get build-dep php5
apt-get install -y php5 php5-dev php-pear autoconf automake curl libcurl3-openssl-dev build-essential libxslt1-dev re2c libxml2 libxml2-dev php5-cli bison libbz2-dev libreadline-dev
apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libxpm4 libltdl7 libltdl-dev
apt-get install -y libssl-dev openssl
apt-get install -y gettext libgettextpo-dev libgettextpo0
apt-get install -y libicu-dev
apt-get install -y libmhash-dev libmhash2
apt-get install -y libmcrypt-dev libmcrypt4