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
( | |
Tutorial found at https://fash7y.wordpress.com/2011/12/03/solved-how-to-set-up-https-with-openssl-in-wamp/ | |
Tested with Apache 2.4.9 and got it working. | |
Note: http://stackoverflow.com/questions/16658038/cant-open-config-file-usr-local-ssl-openssl-cnf-on-windows | |
If error during creating key file. | |
) | |
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
// Closure | |
(function() { | |
/** | |
* Decimal adjustment of a number. | |
* | |
* @param {String} type The type of adjustment. | |
* @param {Number} value The number. | |
* @param {Integer} exp The exponent (the 10 logarithm of the adjustment base). | |
* @returns {Number} The adjusted value. | |
*/ |
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 1 (without leap check?) | |
////////////////////////////////////// | |
$date=new DateTime(); | |
$date->setDate(2008,2,29); | |
function addMonths($date,$months){ | |
$init=clone $date; | |
$modifier=$months.' months'; |
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
-- phpMyAdmin SQL Dump | |
-- version 3.4.11.1deb2+deb7u1 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: localhost | |
-- Generation Time: Jan 20, 2015 at 01:42 PM | |
-- Server version: 5.5.40 | |
-- PHP Version: 5.4.36-0+deb7u3 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
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
# | |
# Basic Party Model implementation for MySQL. | |
# - Parties are either People or Organizations. | |
# - Party names are tracked separately, including first_used and last_used as dates. | |
# - Parties can have e-mails addresses, phone numbers, and physical addresses. | |
# - Parties can have Relationships with one another. | |
# | |
# | |
# Party Model: http://www.tdan.com/view-articles/5014/ | |
# SO answer that helped me get started: http://stackoverflow.com/questions/5466163/same-data-from-different-entities-in-database-best-practice-phone-numbers-ex/5471265#5471265 |
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 | |
/** | |
* Joins an array of strings into a comma-separated string of readable output. | |
* Array ['John', 'Paul', 'George', 'Ringo'] becomes the string "John, Paul, George, and Ringo". | |
* | |
* @param array $items | |
* @param bool|true $oxfordComma | |
* @param string $conjunction | |
* @return string |
NewerOlder