Skip to content

Instantly share code, notes, and snippets.

View mcsee's full-sized avatar
🏠
Working from home

mcsee mcsee

🏠
Working from home
View GitHub Profile
<?
StrategySupervisedHelper::getInstance()->optimize($processId);
<?
private function optimize($process);
?>
function logInfo(array $infoToLog) {
SingletonLogger::info($infoToLog);
}
<?
SingletonLogger::info($infoToLog);
<?
function logInfo(array $infoToLog) {
$loggingFunction = function() use ($infoToLog) {
SingletonLogger::info($infoToLog);
};
$loggingFunction($infoToLog);
}
<?
$loggingFunction = function() use ($infoToLog) {
SingletonLogger::info($infoToLog);
};
new SupervisedLearningAlgorithm{$processId, $loggingFunction);
<?
(new SupervisedLearningAlgorithm())->optimize($processId);
<?
$elizabeth = $charlotte->mother();
$charlotte = $elizabeth->mother();
<?
final class God extends Singleton {
}
$christianGod = new God();
<? public function optimize($processId);