Skip to content

Instantly share code, notes, and snippets.

View jishcem's full-sized avatar

Ajeesh jishcem

View GitHub Profile
public class SchoolFilterSpecification : BaseSpecification<School>
{
public SchoolFilterSpecification(string state, string district)
: base(s => (s.State.Length != 0 && s.State == state) &&
(s.District.Length != 0 && s.District == district))
{
}
}
@jishcem
jishcem / CustomStrategy.php
Created September 8, 2015 09:07
PHP League Router Custom Strategy
<?php
namespace MyApp\Strategies;
use League\Route\Strategy\AbstractStrategy;
use League\Route\Strategy\StrategyInterface;
class CustomStrategy extends AbstractStrategy implements StrategyInterface {
/**
* Dispatch the controller, the return value of this method will bubble out and be
module.exports = {
data: function () {
return {
modal: '#register_modal'
}
},
ready: function(){
this.modal.modal()