This file contains hidden or 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 | |
/** | |
* A simple script that acts as a request mirror. | |
* It will return a JSON object containing all sorts of information | |
* relating to the request it received. | |
*/ | |
$url = 'http://'; | |
if (isset($_SERVER['HTTPS'])) { |
This file contains hidden or 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
# ...where con = php app/console | |
con doctrine:database:drop --force; | |
con doctrine:database:create; | |
con doctrine:schema:create; | |
con doctrine:fixtures:load |
This file contains hidden or 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
#!/usr/bin/env php | |
<?php | |
/** | |
* A simple script to get newly-cloned project up and running quickly. | |
* | |
* The general idea: we spend lots of time copying files/creating dirs | |
* when setting up new projects. This script will do most all of that for us. | |
* | |
* @author Joshua Morse <[email protected]> |
This file contains hidden or 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
#!/usr/bin/env php | |
<?php | |
/** | |
* A convinient way to get a Silex project up and running quickly. | |
* Currently incomplete. | |
* | |
* @author Joshua Morse <[email protected]> | |
*/ |
This file contains hidden or 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 | |
/** | |
* Returns the result of a supplied position in the Fibonacci Sequence. | |
* | |
* @param mixed $n | |
* @access public | |
* @return integer | |
*/ | |
function get_fibonacci_position($n) |