Skip to content

Instantly share code, notes, and snippets.

View Manuel-S's full-sized avatar

Manuel Schweigert Manuel-S

  • Karlsruhe, Germany
View GitHub Profile
@filipw
filipw / CompiledPropertyAccessor.cs
Last active March 4, 2024 04:17
removed unnecessary classes
using System;
using System.Linq.Expressions;
using System.Reflection;
using WebApi.Delta;
namespace Hst.Deals.API.Infrastructure
{
internal class CompiledPropertyAccessor<TEntityType> : PropertyAccessor<TEntityType> where TEntityType : class
{
private Action<TEntityType, object> _setter;

main.js:

export function configure(aurelia) {
  aurelia.use
    .standardConfiguration()
    .developmentLogging();

  // Assuming a file named "knockout-custom-attribute.js", containing the
  // custom attribute class defined above, exists in the root of the project:
 aurelia.use.globalResources('./knockout-custom-attribute');
@jdanyow
jdanyow / bootstrap-validation\bootstrap-form-validation-renderer.js
Last active November 27, 2018 20:08
Aurelia - bootstrap form validation feature
import {inject} from 'aurelia-dependency-injection';
import {validationRenderer} from 'aurelia-validation';
@validationRenderer
@inject(Element)
export class BootstrapFormValidationRenderer {
constructor(boundaryElement) {
this.boundaryElement = boundaryElement;
}