Skip to content

Instantly share code, notes, and snippets.

View Thanood's full-sized avatar

Daniel Bendel Thanood

  • Cologne, Germany
View GitHub Profile
@Thanood
Thanood / designer.html
Last active August 29, 2015 14:24
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
@Thanood
Thanood / ag-grid.js
Last active March 8, 2016 13:47
simple ag-grid wrapper
import { bindable, inlineView } from 'aurelia-framework';
import * as ag from 'ag-grid';
@inlineView(`
<template class="ag-blue" style="align-self: stretch; flex-grow: 1; -ms-flex: 0 1 auto; flex: 1 1 100%;">
<require from="ag-grid/dist/ag-grid.css"></require>
<require from="ag-grid/dist/theme-blue.css"></require>
</template>
`)
export class AgGrid {
<autocomplete data.two-way="filterValues" selected.bind="selectedFilter>
</autocomplete>
import {Promise, P} from 'bluebird';
export function configure(aurelia) {
window.Promise = Promise;
window.P = P;
aurelia.use
.standardConfiguration()
.developmentLogging();
jQueryUiAdapter.prototype.openDialog = function (settings) {
var dfd = system.defer();
var defaultSettings = {
appendTo: 'body',
dialogHost: 'dialogHost',
dialogPromise: dfd,
title: '',
cssClass: '',
viewmodel: null,
autoOpen: false,
System.config({
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system",
"es7.decorators",
"es7.classProperties"
]
@Thanood
Thanood / observer-locator.js
Last active April 1, 2016 09:44
observer-locator.js
import { ObserverLocator } from 'aurelia-binding';
import { inject } from 'aurelia-dependency-injection';
@inject(ObserverLocator)
export class App {
constructor(observerLocator) {
this.subscription = observerLocator.getObserver(this, 'selectedValue');
this.subscription.subscribe(this.selectedValueChanged);
}
detached() {
import {bindable,noView,customElement, processContent} from 'aurelia-framework';
//import {skipContentProcessing} from 'aurelia-templating';
import ace from "ace";
import "ace/theme-monokai";
import "ace/mode-javascript";
import beautify from 'js-beautify';
import css__beautify from 'js-beautify/beautify-css';
import html__beautify from 'js-beautify/beautify-html';
@Thanood
Thanood / app.html
Created February 24, 2016 09:23 — forked from jdanyow/app.html
Aurelia - Search Input
<template>
<require from="./search"></require>
<search execute.call="doSearch(query)" delay.bind="400"></search>
<ul>
<li repeat.for="query of queries">${query}</li>
</ul>
</template>
@Thanood
Thanood / app.html
Last active February 29, 2016 16:55
Aurelia - repeat over number
<template>
<require from="./paging"></require>
<paging></paging>
<!--<paging num="6"></paging>-->
</template>