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
{- OVERVIEW ------------------------------------------------------ | |
A "Tree" represents a binary tree. A "Node" in a binary tree | |
always has two children. A tree can also be "Empty". Below I have | |
defined "Tree" and a number of useful functions. | |
This example also includes some challenge problems! | |
---------------------------------------------------------------- | |
-} |
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 Ipark\ApplicationBundle\Behat\Util; | |
use Prooph\Common\Messaging\Message; | |
use Prooph\EventSourcing\AggregateRoot; | |
use Prooph\EventSourcing\EventStoreIntegration\AggregateTranslator; | |
use Prooph\EventStore\Aggregate\AggregateType; | |
use Prooph\ServiceBus\EventBus; | |
use Prooph\ServiceBus\Plugin\Router\RegexRouter; |
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 Ipark\ApplicationBundle\Messaging\ServiceBus\Infrastructure; | |
use Ipark\FrameworkBundle\Common\SecurityHelper; | |
use Prooph\Common\Messaging\NoOpMessageConverter; | |
use Prooph\ServiceBus\CommandBus; | |
use Prooph\ServiceBus\Plugin\Auditing\CommandAuditor; | |
use Prooph\ServiceBus\Plugin\Auditing\RawMessageSerializer; | |
use Prooph\ServiceBus\Plugin\Auditing\SecretMessageSerializer; | |
use Prooph\ServiceBus\Plugin\Router\RegexRouter; |
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 React from "react"; | |
import {connect} from "react-redux"; | |
import {routeActions} from "react-router-redux"; | |
import {makePayment} from "./memberActions"; | |
import MakePaymentForm from "./MakePaymentForm"; | |
const MakePayment = ({onMakePayment, params: {id}}) => { | |
return ( | |
<div className="container"> | |
<div className="row"> |
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 React from "react"; | |
import {connect} from "react-redux"; | |
import {changeMonthFeeWasFinished, changeMonthFeeWasCancelled} from "./monthDucks"; | |
/** | |
* component | |
*/ | |
export const ChangeMonthFeeForm = ({month, submit, reset}) => { | |
let fee; |
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 React from "react"; | |
import {connect} from "react-redux"; | |
import {changingOfMonthFeeWasRequested} from "./monthDucks"; | |
import ChangeMonthFeeForm from "./ChangeMonthFeeForm"; | |
/** | |
* component | |
*/ | |
export const Month = ({showForm, month, onClick}) => { | |
return ( |
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 | |
# put this file at: .git/hooks/post-checkout | |
# and make it executable | |
# You can install it system wide too, see http://stackoverflow.com/a/2293578/685587 | |
PREV_COMMIT=$1 | |
POST_COMMIT=$2 | |
NOCOLOR='\x1B[0m' |
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 Collection; | |
class CollectionEntry | |
{ | |
/** | |
* @var CollectionEntryInner[] | |
*/ | |
protected $collection; |
NewerOlder