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
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: > | |
A basic CloudFormation template for an RDS Aurora cluster. | |
Parameters: | |
DatabaseUsername: | |
AllowedPattern: "[a-zA-Z0-9]+" | |
ConstraintDescription: must be between 1 to 16 alphanumeric characters. |
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 App; | |
/** | |
* Interface iGenericUtilities to be implemented by any Concrete Utility Class | |
* @package App | |
*/ | |
interface iGenericUtilities { | |
public function saveToFile($filename, $data); |
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 App; | |
/** | |
* Base Class Animal | |
* @package App | |
*/ | |
class Animal | |
{ |
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(Symfony\Component\Debug\Exception\FlattenException)#87 (10) { | |
["message":"Symfony\Component\Debug\Exception\FlattenException":private]=> | |
string(35) "No route found for "POST /product/"" | |
["code":"Symfony\Component\Debug\Exception\FlattenException":private]=> | |
int(0) | |
["previous":"Symfony\Component\Debug\Exception\FlattenException":private]=> | |
object(Symfony\Component\Debug\Exception\FlattenException)#85 (10) { | |
["message":"Symfony\Component\Debug\Exception\FlattenException":private]=> | |
string(0) "" | |
["code":"Symfony\Component\Debug\Exception\FlattenException":private]=> |
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 | |
// implementers are responsible for doing the necessary math, store the data in whatever structure it requires | |
interface IForecaster | |
{ | |
public function fetchForecastResult(); | |
} | |
// only encapsulates the result of a forecast, DOES NOT DO ANY CALCULATIONS OR LOGIC | |
interface IForecastResult |
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
import __main__ | |
#__main__.__requires__ = ['ReviewBoard'] | |
import pkg_resources | |
import os | |
import sys | |
import site | |
site.addsitedir('/usr/lib/python2.6/site-packages') | |
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
import os | |
import sys | |
import site | |
site.addsitedir('/usr/local/reviewboard/reviewboard_env/lib/python2.6/site-packa | |
ges') | |
activate_env=os.path.expanduser("/usr/local/reviewboard/reviewboard_env/bin/acti | |
vate_this.py") | |
execfile(activate_env, dict(__file__=activate_env)) |
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
import __main__ | |
__main__.__requires__ = ['ReviewBoard'] | |
import pkg_resources | |
import os | |
import sys | |
os.environ['DJANGO_SETTINGS_MODULE'] = "reviewboard.settings" | |
os.environ['PYTHON_EGG_CACHE'] = "/var/www/reviewboard/tmp/egg_cache" | |
os.environ['HOME'] = "/var/www/reviewboard/data" |
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
public boolean authenticate( String name, String voterId ) { | |
Voter voter = getVoter( name ); | |
if ( voter == null ) { | |
return false; | |
} | |
if ( voter.getVoterId().equals(voterId)) { | |
return true; | |
} | |
return false; | |
} |