#Installing Taiga on CentOS 6 (x64)
##Dependencies ...
yum update -y
yum groupinstall "Development Tools" -y
yum install libxslt-devel libxml2-devel libXt-devel curl git tmux -y
##Installing PostgreSQL
#Installing Taiga on CentOS 6 (x64)
##Dependencies ...
yum update -y
yum groupinstall "Development Tools" -y
yum install libxslt-devel libxml2-devel libXt-devel curl git tmux -y
##Installing PostgreSQL
| <wpcf-fields-select-option-australia> | |
| <title>Australia</title> | |
| <value>1</value> | |
| </wpcf-fields-select-option-australia> | |
| <wpcf-fields-select-option-canada> | |
| <title>Canada</title> | |
| <value>2</value> | |
| </wpcf-fields-select-option-canada> | |
| <wpcf-fields-select-option-france> | |
| <title>France</title> |
This function returns the nearest aspect ratio of a width and height within a limited range of possible aspect ratios.
In other words, while 649x360 technically has an aspect ratio of 649:360, it’s often useful to know that the nearest normal aspect ratio is actually 9:5 (648x360).
nearestNormalAspectRatio(width, height, [side], [maxWidth], [maxHeight])
| # Based on https://github.com/sass/libsass/wiki/Building-with-autotools | |
| # Install dependencies | |
| apt-get install automake libtool | |
| # Fetch sources | |
| git clone https://github.com/sass/libsass.git | |
| git clone https://github.com/sass/sassc.git libsass/sassc | |
| # Create configure script |
| <?php | |
| /** | |
| * Plugin Name: WooCommerce Enable Free Shipping on a Per Product Basis | |
| * Plugin URI: https://gist.github.com/BFTrick/d4a21524a8f7b25ec296 | |
| * Description: Enable free shipping for certain products | |
| * Author: Patrick Rauland & eugenf | |
| * Author URI: http://speakinginbytes.com/ | |
| * Version: 1.0.2 | |
| * | |
| * This program is free software: you can redistribute it and/or modify |
Spurred by recent events (https://news.ycombinator.com/item?id=8244700), this is a quick set of jotted-down thoughts about the state of "Semantic" Versioning, and why we should be fighting the good fight against it.
For a long time in the history of software, version numbers indicated the relative progress and change in a given piece of software. A major release (1.x.x) was major, a minor release (x.1.x) was minor, and a patch release was just a small patch. You could evaluate a given piece of software by name + version, and get a feeling for how far away version 2.0.1 was from version 2.8.0.
But Semantic Versioning (henceforth, SemVer), as specified at http://semver.org/, changes this to prioritize a mechanistic understanding of a codebase over a human one. Any "breaking" change to the software must be accompanied with a new major version number. It's alright for robots, but bad for us.
SemVer tries to compress a huge amount of information — the nature of the change, the percentage of users that wil
A semantic version selector (short: semsel) is a string that can match only onto specific semantic versions (semver). A semsel mainly consists of one or multiple comperators combined with inner logical ANDs and outer ORs.
A complete example could look like this:
>0.0.1-b.1337 <=0.0.2- || 0.0.3 +debug* || ~1.0 || 2.0.x +with* || 2.1.0- - 2.1.1- !2.1.1-b.9 || [3.1,3.3)
| <?php | |
| # SHORTS | |
| # DIRECTORY SEPARATOR | |
| define( 'DS', DIRECTORY_SEPARATOR ); | |
| # PATH SEPARATOR | |
| define( 'PS', PATH_SEPARATOR ); | |
| # Absolute path to the WordPress directory. | |
| ! defined( 'ABSPATH' ) | |
| AND define( 'ABSPATH', dirname( __FILE__ ).DS ); |