Skip to content

Instantly share code, notes, and snippets.

View winterlimelight's full-sized avatar

winterlimelight

View GitHub Profile
@winterlimelight
winterlimelight / app.html
Created August 1, 2017 03:22 — forked from plwalters/app.html
DI inheritance
<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 February 16, 2018 17:41
appsettings encrypted provider
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
{
@winterlimelight
winterlimelight / SampleUsage.html
Last active January 30, 2020 05:41
Aurelia Typeahead
<!-- 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>