This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as gulp from 'gulp'; | |
import * as htmlMin from 'gulp-htmlmin'; | |
import * as gzip from 'gulp-gzip'; | |
import * as del from 'del'; | |
import * as jsonMinify from 'gulp-json-minify'; | |
import * as vinylPaths from 'vinyl-paths'; | |
import * as stripDebug from 'gulp-strip-debug'; | |
import * as stripComments from 'gulp-strip-comments'; | |
const copyFnArray = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {customAttribute, bindable, LogManager} from 'aurelia-framework'; | |
const logger:Logger = LogManager.getLogger("attached"); | |
/** | |
* MIT License. Patrick Eisenmann. | |
* Apply this attribute to an element to have a callback invoked when the element added to the DOM | |
* | |
* @param {Function} callback. Required. The function to be invoked. | |
* The first argument to the callback is the Element that had the attached on it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div repeat.for="item of items"> | |
<a href="#" click.trigger="toggleRow($index)">${item.name}<span class="fa ${ selectedRow === $index ? 'fa-caret-up' : 'fa-caret-down' }"></span></a> | |
<div show.bind="selectedRow === $index"> | |
--- ${item.color} | |
</div> | |
</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": "tslint:latest", | |
"rules": { | |
"callable-types": true, | |
"interface-name": false, | |
"interface-over-type-literal": true, | |
"max-classes-per-file": false, | |
"max-line-length": [true, 500], | |
"member-ordering": [true, { "order": [ | |
"static-field", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>${message}</h1> | |
<table border="1"> | |
<tbody> | |
<template repeat.for="item of items" containerless> | |
<tr> | |
<td>${item.id}</td> | |
<td>${item.name}</td> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>${message}</h1> | |
<table border="1"> | |
<tbody> | |
<template repeat.for="item of items" containerless> | |
<tr> | |
<td>${item.id}</td> | |
<td>${item.name}</td> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { inject } from 'aurelia-framework'; | |
import { Router, RouterConfiguration } from 'aurelia-router'; | |
import { AppStorage } from './_resources/app-storage'; | |
import { AuthorizeStep } from './_resources/authorize-step'; | |
import { PagePostRender } from './_resources/page-post-render'; | |
import { PageWatcher } from './_resources/page-watcher'; | |
/** | |
* App Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<input type="text" value.bind="_filter"> | |
<hr> | |
<div repeat.for="item of filteredItems">${item.id} - ${item.text}</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="type-ahead-filter-value-converter"></require> | |
<input type="text" value.bind="_filter"> | |
<hr> | |
<div repeat.for="item of items | typeAheadFilter:'text':_filter">${item.text}</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop the check server so that it can read port 443 | |
sudo chef-server-ctl stop | |
# Generate the cert | |
certbot certonly --standalone -d [.....URL.....] | |
# Cert gets generated in ‘/etc/letsencrypt/live/[.....URL.....]’ | |
# edit the chef server file to make sure it has the right stuff | |
nano /etc/opscode/chef-server.rb |
NewerOlder