Skip to content

Instantly share code, notes, and snippets.

View hanssens's full-sized avatar

Juliën Hanssens hanssens

View GitHub Profile
@hanssens
hanssens / index.html
Created November 8, 2017 14:33
Timeline in pure css
<!doctype html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="timeline">
<div class="container left">
@hanssens
hanssens / nuget-package-config.csproj
Created October 25, 2017 09:42
NuGet package config, in .csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Description>Description</Description>
<Copyright>Copyright</Copyright>
<PackageLicenseUrl>licenseurl</PackageLicenseUrl>
<PackageProjectUrl>projecturl</PackageProjectUrl>
<PackageIconUrl>iconurl</PackageIconUrl>
<RepositoryUrl>repourl</RepositoryUrl>
@hanssens
hanssens / app.html
Created February 26, 2017 20:35 — forked from jdanyow/app.html
Aurelia Accessible Autocomplete with Filtering
<template>
<require from="./autocomplete"></require>
<form>
<label class="form-component">
Country:<br/>
<autocomplete service.bind="suggestionService.country"
value.bind="model.country"
placeholder="Enter country..."
change.delegate="model.city = null">
</autocomplete>
@hanssens
hanssens / Issues-with-dotnet-core-and-vs2017.md
Last active February 23, 2017 14:13
Issues with dotnet-core and Visual Studio 2017

dotnet-core

  • The tooling... damni
  • Split between project.json (release) vs .csproj (in progress)
  • Lack of third party support for DEBUGGING, due to MS licensing
  • Lack of third party support for the .csproj changes, due to rigorous changes
  • Missing API's for:
    • System.Security.Cryptography.RijndaelDanager
    • System.Diagnostics.PerformanceCounter
@hanssens
hanssens / app.html
Created January 28, 2017 15:31
StackOverflow #41759721: Aurelia KendoUI Bridge not doing anything
<template>
<require from="aurelia-kendoui-bridge/datepicker/datepicker"></require>
<div id="example">
<div class="k-content">
<h4>Show e-mails from:</h4>
<input id="datepicker" style="width: 200px" /> <!-- works ok when setting the kendo widget in viewmodel -->
<input ak-datepicker="k-value.bind: '1/11/2016'" /> <!-- doesn't work, shows just the input box-->
<input ak-datepicker ak-datepicker.ref="datepicker" style="width: 100%" /> <!-- neither does this (also just the input box) -->
@hanssens
hanssens / app.html
Created January 27, 2017 12:20 — forked from JeroenVinke/app.html
Aurelia KendoUI
<!-- put your view here -->
<template>
<p>Loaded</p>
</template>
@hanssens
hanssens / app.html
Created January 26, 2017 22:24
Aurelia GistRun script, Javascript flavoured
<template>
<h3>${message}</h3>
</template>
@hanssens
hanssens / event-aggregator.ts
Created January 25, 2017 16:17
Example pub/sub with Aurelia's EventAggregator
// the PUB:
import {EventAggregator} from 'aurelia-event-aggregator';
@inject(EventAggregator)
export class YourClass {
constructor(EventAggregator) {
this.ea = EventAggregator;
}
attached() {
@hanssens
hanssens / BindingFactory.cs
Created December 5, 2016 12:18
BindingFactory - Helpers for adding WsHttpBinding/WsHttpsBinding to dotnet core projects.
public static class BindingFactory
{
/// <summary>
/// A poor man's implementation for dotnet-core support of WsHttpBinding (plain, http).
/// </summary>
/// <param name="endpointAddress">Full http endpoint address.</param>
public static System.ServiceModel.Channels.Binding CreateWsHttpBinding(string endpointAddress)
{
var result = new System.ServiceModel.Channels.CustomBinding();
var textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement();
@hanssens
hanssens / app.html
Created July 26, 2016 13:31 — forked from JeroenVinke/app.html
Aurelia Kendo - Grid - binding to local data
<template>
<ak-grid k-data-source.bind="datasource"
k-selectable="row"
k-on-change.delegate="rowSelected($event.detail)">
<ak-col k-title="ProductName" k-field="ProductName"></ak-col>
<ak-col k-title="Unit Price" k-field="UnitPrice" k-format="{0:c}" k-width="130px"></ak-col>
<ak-col k-title="Units In Stock" k-field="UnitsInStock" k-width="130px"></ak-col>
<ak-col k-field="Discontinued" k-width="130px"></ak-col>
</ak-grid>
</template>