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
/********************************************** | |
* Ink v1.0.5 - Copyright 2013 ZURB Inc * | |
**********************************************/ | |
/* Client-specific Styles and Reset */ | |
#outlook a { | |
padding:0; | |
} |
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 | |
require_once 'EventPriorityQueue.php'; | |
/** | |
* Class EventHandler | |
*/ | |
class EventHandler { | |
/** | |
* Holds all events in an array of EventPriorityQueues | |
* |
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 | |
/** | |
* Class Event | |
*/ | |
class Event { | |
/** | |
* Contains the function of the Event | |
* |
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
$testLocalFunction = function() { | |
echo 'Hello World<br/>'; | |
}; | |
echo var_dump($testLocalFunction); // object(Closure)[1] |
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
def dataPartition(data: Array[DataPoint], output: Array[Array[DataPoint]], defaultSize: Int, remainingRest: Int): Array[Array[DataPoint]] = { | |
if (data.nonEmpty) { | |
val thisPartitionSize = if (remainingRest > 0) { defaultSize + 1} else { defaultSize } | |
val nextRemainingRest = if (remainingRest > 0) { remainingRest - 1 } else { remainingRest } | |
val thisPartition = data.slice(0, thisPartitionSize) | |
val remainingData = data.drop(thisPartitionSize) | |
dataPartition(remainingData, output :+ thisPartition, defaultSize, nextRemainingRest) | |
} else { | |
output |