My list of interresting Nugets packages
View light-strategy.js
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
/* | |
Light strategy that shows your light entities. | |
To use: | |
- store this file in `<config>/www/light-strategy.js` | |
- Add lovelace resource: `/local/light-strategy.js`, type JavaScript Module | |
- Create a new Lovelace dashboard and set as content: | |
views: | |
- title: Lights | |
strategy: | |
type: 'custom:light-strategy' |
View Git_CheatSheet.md
Git CheatSheet
Usefull commands
Amend a commit with changing message
git commit --amend ----no-edit
Fixup using rebase
[alias]
View Books.md
DDD, TDD
- Clean Code: A Handbook of Agile Software Craftsmanship by Robert Martin aka Uncle Bob
- Analysis Patterns by Martin Fowler
- Blue Book by Eric Evans
- The pragmatic programmer by Andrew Hunt & David Thomas
- The Software Craftsman: Professionalism, Pragmatism, Pride by Sandro Mancuso
- Patterns of Enterprise Application Architecture by Martin Fowler
- Refactoring by Martin Fowler
- Working Effectively with Legacy Code by Michael Feathers
View Articles.md
Articles
Cyrdup aka Cyrille Dupuydauby
View DomainServiceService.cs
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
namespace Demo.Service | |
{ | |
public class DomainServiceService | |
{ | |
public DomainServiceService(IDomainService[] domainServices) | |
{ | |
foreach (var service in domainServices) | |
{ | |
var name = service.GetName(); |
View ES6 Angular Directive with injection
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
class myDirective { | |
constructor(userService) { | |
this.template = `<div>{{fullName}}</div>`; | |
this.restrict = 'E'; | |
this.scope = { | |
user: '=' | |
}; | |
this.link = function(scope, element) { | |
scope.fullName = userService.getFullName(scope.user); | |
}; |
View Class1.cs
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Fdc.Web.Controllers.WebApi; | |
using Microsoft.Win32.SafeHandles; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; |