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
{ | |
"require": { | |
"guzzle/guzzle": "~3.1", | |
"stripe/stripe-php": "1.*", | |
"swiftmailer/swiftmailer": ">=4.2.0,<4.3-dev", | |
"ppi/framework": "2.0" | |
}, | |
"extra": { | |
"branch-alias": { | |
"dev-master": "2.0-dev" |
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
#!/bin/bash | |
mkdir /etc/httpd/ssl | |
cd /etc/httpd/ssl | |
echo -e "Enter your virtual host FQDN: \nThis will generate the default name for Apache SSL Certificate and Key!" | |
read cert | |
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out $cert.key | |
chmod 600 $cert.key | |
openssl req -new -key $cert.key -out $cert.csr |
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 | |
/** | |
* @author Paul Dragoonis <dragoonis@php.net> | |
* @license http://opensource.org/licenses/mit-license.php MIT | |
* @package Cache | |
* @link http://www.ppiframework.com/docs/cache.html | |
* @link https://github.com/nicolasff/phpredis | |
*/ | |
namespace PPI\Cache; |
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
// Object calisthenics... | |
// actual version | |
public function checkExistsAction() | |
{ | |
$email = $this->post('email'); | |
$customerID = 1; | |
$accountHelper = $this->getService('user.account.helper'); | |
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
Foursquare_Index: | |
pattern: /foursquare/ | |
defaults: { _controller: "FourSquareModule:Index:index" } |
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
var map = null, | |
latitude = null, | |
longitude = null, | |
infoWindow = null; | |
function initialize() { | |
var latlng = null; | |
var myOptions = { | |
mapTypeId:google.maps.MapTypeId.ROADMAP |
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
var map = null, | |
latitude = null, | |
longitude = null, | |
infoWindow = null; | |
function useDefaultLocation() { | |
latitude = 31.8391; | |
longitude = -106.5631; | |
} | |
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 | |
namespace FourSquareModule\Controller; | |
use FourSquareModule\Controller\Shared as SharedController; | |
class Index extends SharedController | |
{ | |
public function indexAction() | |
{ |
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
var map = null, | |
latitude = null, | |
longitude = null, | |
infoWindow = null; | |
function initialize() { | |
var latlng = null; | |
var myOptions = { | |
mapTypeId:google.maps.MapTypeId.ROADMAP |
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 | |
namespace FourSquareModule\Classes; | |
class ApiHandler | |
{ | |
protected $secret; | |
protected $key; | |
protected $cache; |