TODO
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.Security.Claims; | |
namespace YourProject.Interfaces | |
{ | |
/// <summary> | |
/// This interface provides a way to inject the user into the services without | |
/// crossing responsibilities. | |
/// </summary> | |
/// <example> | |
/// var userId = _principalProvider.ClaimsUser.GetUserId(); |
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.Collections.Generic; | |
public interface IOperationResult | |
{ | |
public bool Succeeded { get; } | |
public IEnumerable<OperationError> Errors { get; } | |
} | |
public interface IOperationResult<out T>: IOperationResult |
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
/// <summary> | |
/// Added auditable metadata to the entity mapping. | |
/// </summary> | |
/// <typeparam name="TProperty"></typeparam> | |
/// <param name="builder"></param> | |
public static void AddAuditableMetadata<TProperty>([NotNull] this EntityTypeBuilder<TProperty> builder) where TProperty : class, IAuditableEntity | |
{ | |
builder.HasOne(t => t.CreatedBy).WithMany().HasForeignKey(t => t.CreatedById); | |
builder.Property(t => t.CreatedOn).HasColumnName(nameof(AuditableEntity.CreatedOn)); | |
builder.Property(t => t.UpdatedOn).HasColumnName(nameof(AuditableEntity.UpdatedOn)); |
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
[Main] | |
Old is First=1 | |
Old on Left=1 | |
Default Compare is to Prev=1 | |
Go to First Diff=0 | |
Check Encodings=1 | |
Wrap Around=0 | |
Compact NavBar=1 | |
Ignore Spaces=0 | |
Detect Moves=1 |
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 { Component } from '@angular/core'; | |
import { GlobalConfig, Toast, ToastPackage, ToastrService } from 'ngx-toastr'; | |
import { BootstrapContextEnum } from '../../models/bootstrap-context-enum'; | |
@Component({ | |
selector: '[bootstrap-toast-component]', | |
template: ` | |
<div | |
class="toast {{ containerClass }} show" | |
role="alert" |
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
protected override void OnModelCreating(ModelBuilder builder) | |
{ | |
base.OnModelCreating(builder); | |
//.... | |
var dateTimeConverter = new ValueConverter<DateTime, DateTime>( | |
v => v.ToUniversalTime(), | |
v => DateTime.SpecifyKind(v, DateTimeKind.Utc)); | |
var nullableDateTimeConverter = new ValueConverter<DateTime?, DateTime?>( |
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.Diagnostics; | |
using System.Linq.Expressions; | |
namespace Extensions | |
{ | |
[DebuggerStepThrough] | |
public static class PredicateExtensions | |
{ |
This is a list of recuiter companies that either
- Don't actually read/understand your skill profile.
- Don't pay attention to location requirements
- Don't pay attention to your job type (full time, contract) requirements.
Company | Email Suffix (@xyz.com) |
---|
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
{ | |
"path": "mod_t3s4ebw/crystal_flower_plant.json", | |
"enabled": true, | |
"id": "ebwizardry:crystal_flower_plant", | |
"plant_name": "Crystal Flower", | |
"seed_name": "Magic Seeds", | |
"seed_items": [ | |
{ | |
"item": "t3s4ebw:magic_seed", | |
"meta": 0, |