I hereby claim:
- I am Srdjan on github.
- I am srdjan (https://keybase.io/srdjan) on keybase.
- I have a public key whose fingerprint is 2921 E5C1 5268 9C43 CBC2 F09B 2795 2062 AEFD BC91
To claim this, I am signing this object:
using System; | |
using System.Collections.Generic; | |
namespace ConsoleApplication1 { | |
class Program { | |
static void Main() { | |
//-- define an Action that will perfom a query | |
Action<List<string>> query = r => r.AddRange(QuerySomething()); | |
//-- invoke it and show results ;) |
var get = (function() { | |
var overrides = { | |
getAll: function() { | |
console.log('return all...'); | |
return this; | |
}, | |
getById: function(args) { | |
console.log('return by id:' + args); | |
return this; | |
}, |
getAll(); | |
getById(5); | |
getByExpr('id > 5'); |
get(); | |
get(5); | |
get('id > 5'); |
namespace Simplr.Middleware { | |
public class ResourceResolver : MiddlewareBase { | |
public override Task Process(IContext context) {...} | |
} | |
public class HypermediaValidator : MiddlewareBase { | |
public override Task Process(IContext context) {...} | |
} | |
//... | |
//additional middleware components | |
} |
using SimplR.Resources; | |
using SimplR.Hypermedia; | |
using SimplR.Services; | |
using App.Domain.Users; | |
namespace App.Resources.Users { | |
public class UsersResource : Resource<User> { | |
public override List<User> Get() {...} | |
public override User Get(int id) {...} | |
public override User Post(User user) {...} |
using Simplr.Middleware; | |
namespace App.Runner { | |
internal static class Program { | |
static void Main() { | |
var _pipeline = new Pipeline() | |
.Use(new ResourceResolver()) | |
.Use(new HypermediaValidator()) | |
.Use(new ApiCall()) | |
.Use(new HypermediaUpdater()) |
using SimplR.Resources; | |
using SimplR.Hypermedia; | |
using SimplR.Services; | |
using App.Domain.Users; | |
namespace App.Handlers.Users { | |
public class UsersHandler : IHandler<User> { | |
public List<User> Query(Expression expr) {...} | |
public void CreateCommand(User user) {...} | |
public void UpdateCommand(User user) {...} |
I hereby claim:
To claim this, I am signing this object:
//- Model: ---------------------------------------- | |
items = Observable [] | |
completeAll = Observable(false) | |
completeAll.observe (val) -> | |
items.forEach (i) -> | |
i.checked(val) | |
model = | |
removeFinished: -> |