Skip to content

Instantly share code, notes, and snippets.

View thejaff2's full-sized avatar

Robert Kling thejaff2

View GitHub Profile
@thejaff2
thejaff2 / app.html
Created April 7, 2020 08:35 — forked from gist-master/app.html
Grid: Excel export
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<ak-grid k-data-source.bind="datasource"
k-toolbar.bind="['excel']"
k-excel.bind="{ fileName: 'Kendo UI Grid Export.xlsx' }">
<ak-col k-title="Contact Name" k-field="ContactName">
</ak-grid>
</template>
@thejaff2
thejaff2 / app.html
Last active April 6, 2020 17:28 — forked from gist-master/app.html
Grid: Grouping
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<ak-grid k-data-source.bind="datasource" k-pageable.bind="pageable" k-sortable.bind="true" id="grid" >
<!--k-columns.bind="columns">-->
<ak-col k-title="Product">
<ak-col k-title="Product Name" k-field="ProductName" >
<ak-template for="groupFooterTemplate">
export class CostasMultiWalk {
rows: number[]; // Holds the column index for each row point
freeCols: boolean[]; // Keeps track of which columns that are still free (unoccupied)
dv: string[]; // Holds the displacement vectors
curRow: number; // Current row during search/backtracking
constructor(private order: number) {
}
private init(): void {
@thejaff2
thejaff2 / costas-counter.ts
Last active April 13, 2018 20:13
Typescript class for finding the number of Costas arrays for any given order
export class CostasCounter {
rows: number[] = []; // Holds the column index for each row point
freeCols: boolean[] = []; // Keeps track of which columns that are still free (unoccupied)
dv: string[] = []; // Holds the displacement vectors
curRow: number; // Current row during search/backtracking
totalFound: number = 0;
totalFoundCenter: number = 0;