I hereby claim:
- I am tazer on github.
- I am rambo3swe (https://keybase.io/rambo3swe) on keybase.
- I have a public key ASBASz7wstMwnwLc52BKAkAIateo8_qpFoncqmpADJmMkgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| public class CacheHelper : ICacheHelper | |
| { | |
| private readonly ICache _cache; | |
| public CacheHelper(ICache cache) | |
| { | |
| this._cache = cache; | |
| } | |
| public IEnumerable<T> GetResult<T>(string cacheKey, Func<IEnumerable<T>> getDatabaseResultsFunc) |
| // Conventions: | |
| // We use angles in degrees in clock-wise fashion | |
| RobotHelpers = {}; | |
| MathHelpers = {}; | |
| RobotHelpers.cannon_rotation_direction = {}; | |
| RobotHelpers.shoot = {}; | |
| RobotHelpers.target = {}; | |
| RobotHelpers.moving_direction = {}; |
| var gatewaysByDestinationAndShipQuery = session.Query<Available_Gateway, Available_Gateways>(); | |
| foreach (var destination in destinations) | |
| { | |
| gatewaysByDestinationAndShipQuery = gatewaysByDestinationAndShipQuery.Where(x => x.PortCodes.Any(y => destination == y)); | |
| } | |
| foreach (var ship in ships) | |
| { | |
| gatewaysByDestinationAndShipQuery = gatewaysByDestinationAndShipQuery.Where(x => x.ShipCodes.Any(y => ship == y)); | |
| } |
| public class TheDefaultCategory : ICreateCriteria<Category> | |
| { | |
| public DetachedCriteria GetCriteria() | |
| { | |
| return DetachedCriteria.For<Category>().Add(Restrictions.Eq("Default", true)); | |
| } | |
| } |