var cache = [];
console.log(JSON.parse(JSON.stringify(this, function(key, value) {
if (typeof value === 'object' && value !== null) {
if (cache.indexOf(value) !== -1) {
return;
}
cache.push(value);
}
return value;
This file contains hidden or 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
/*eslint-disable no-var*/ | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var AureliaWebpackPlugin = require('aurelia-webpack-plugin'); | |
var ProvidePlugin = require('webpack/lib/ProvidePlugin'); | |
module.exports = { | |
context: __dirname, | |
devServer: { |
This file contains hidden or 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
/*eslint-disable no-var*/ | |
var path = require('path'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var AureliaWebpackPlugin = require('aurelia-webpack-plugin'); | |
var ProvidePlugin = require('webpack/lib/ProvidePlugin'); | |
var FaviconsWebpackPlugin = require('favicons-webpack-plugin'); | |
var pkg = require('./package.json'); | |
var outputFileTemplateSuffix = '-' + pkg.version; |
This file contains hidden or 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> | |
<label> | |
<input type="checkbox" ref="showHeader" checked="false"> | |
Show Header? | |
</label> | |
<h1 if.bind="showHeader.checked" ref="theHeader">${message}</h1> | |
The header is: ${theHeader} | |
</template> |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
This file contains hidden or 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
<!-- Video element (live stream) --> | |
<label>Video Stream</label> | |
<video autoplay id="video" width="640" height="480"></video> | |
<!-- Canvas element (screenshot) --> | |
<label>Screenshot (base 64 dataURL)</label> | |
<canvas id="canvas" width="640" height="480"></canvas> | |
<!-- Capture button --> | |
<button id="capture-btn">Capture!</button> |
Connects the sortable to a script that can save it via ajax
A Pen by Matthijs Alles on CodePen.
This file contains hidden or 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
Abstract: | |
Hooks existing preferences/about/quit functionality from an existing Java app into handlers for the Mac OS X application menu. | |
Tailored to provide compatibility with the Java 9 EA releases so that the app may be built on other platforms. Note that there | |
is no compatibility with Java 8, though all that is required is to change java.awt.desktop -> com.apple.eawt in all handler methods | |
This work was inspired by an OSX compatibility layer provided by Apple that used a different API. This is an otherwise original | |
contribution and is a reimplementation using newer interface methods. | |
Usage: |
This file contains hidden or 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
.. snip ... | |
installPushStateEvents() { | |
this.router.pushState.actions.set('ChangeState', (state) => { | |
if (state['StateTabOpen'] === 'hide' || !state['StateTabOpen']) { | |
this.closeTab(); | |
} else if (state['StateTabOpen']) { | |
this.openTab(state['StateTabOpen']); | |
} | |
if (state['StateTopicID'] && state['StateTopicID'] !== this.topicState.currentTopicId) { |
This file contains hidden or 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
export class FileDrop { | |
dragoverListener = undefined; | |
dropListener = undefined; | |
el = undefined; | |
constructor(el) { | |
this.el = el; | |
} |
OlderNewer