Skip to content

Instantly share code, notes, and snippets.

View hanssens's full-sized avatar

Juliën Hanssens hanssens

View GitHub Profile
@hanssens
hanssens / C# Template
Last active August 29, 2015 13:56 — forked from adambyram/C# Template
C# build template for CodeRunner on OSX
using System;
using System.Collections.Generic;
using System.Linq;
namespace CodeRunnerCSharp
{
class Program
{
public static void Main (string[] args)
{
@hanssens
hanssens / app.html
Created May 6, 2016 08:01 — forked from JeroenVinke/app.html
Aurelia - Kendo UI Playground
<template>
<ak-chart k-title.bind="{text: 'Gross Domestic product growth \n /GDP annual %/'}"
k-legend.bind="{position: 'bottom'}"
k-series-defaults.bind="seriesDefaults"
k-series.bind="series"
k-value-axis.bind="valueAxis"
k-category-axis.bind="categoryAxis"
k-tooltip.bind="tooltip">
</ak-chart>
</template>
@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>
@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 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 / app.html
Last active January 11, 2018 15:47 — forked from jdanyow/app.html
Aurelia Gist - Only allow numbers
<template>
<input type="text"
value.bind="amount"
keypress.trigger="validate($event)">
</template>
@hanssens
hanssens / LowercaseDocumentFilter.cs
Last active February 16, 2018 15:26 — forked from rafalkasa/LowercaseDocumentFilter.cs
Updated to exclude parameters from being lowercased (thanks to @jonorogers)
using System.Collections.Generic;
using System.Linq;
using Swashbuckle.AspNetCore.Swagger;
using Swashbuckle.AspNetCore.SwaggerGen;
namespace Heartwork.Api.Application.Filters
{
public class LowercaseDocumentFilter : IDocumentFilter
{
public void Apply(SwaggerDocument swaggerDoc, DocumentFilterContext context)
@hanssens
hanssens / index.js
Created March 29, 2018 13:00 — forked from MoOx/index.js
Export/import github labels
// go on you labels pages
// eg https://github.com/cssnext/cssnext/labels
// paste this script in your console
// copy the output and now you can import it using https://github.com/popomore/github-labels !
var labels = [];
[].slice.call(document.querySelectorAll(".label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),
@hanssens
hanssens / package.json
Created March 2, 2019 08:59 — forked from niespodd/package.json
Making web3/bitcore-lib work with Angular 6
{...
"scripts": {
"postinstall": "node patch.js",
...
}
}
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var elements = document.body.getElementsByTagName('*');
var items = [];
for (var i = 0; i < elements.length; i++) {
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) {
items.push(elements[i]);
}
}