Skip to content

Instantly share code, notes, and snippets.

Avatar

winterlimelight

View GitHub Profile
@winterlimelight
winterlimelight / app.html
Created Aug 1, 2017 — forked from PWKad/app.html
DI inheritance
View app.html
<template>
<require from="./sort"></require>
<require from="./customele"></require>
<table>
<tr
as-element="customele"
repeat.for="entry of entries | sort: { propertyName: 'on', direction: 'descending' }"
entry.bind="entry">
</tr>
</table>
@winterlimelight
winterlimelight / EncryptedConfiguration.cs
Last active Feb 16, 2018
appsettings encrypted provider
View EncryptedConfiguration.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text.RegularExpressions;
using Newtonsoft.Json.Linq;
using Microsoft.Extensions.Configuration;
namespace Settings
{
View SampleUsage.html
<!-- See https://winterlimelight.com/2017/02/21/typeahead-and-aurelia/ for details on prepare-query -->
<contractui-element-typeahead
style="display: inline-block"
initial-value.bind="value"
labeltext=""
hinttext="Type a..."
prepare-query.bind="prepareQueryFn"
on-select.call="processResult(suggestion)">
</contractui-element-typeahead>
You can’t perform that action at this time.