Skip to content

Instantly share code, notes, and snippets.

View moderndeveloperllc's full-sized avatar

Mark Garrett moderndeveloperllc

View GitHub Profile
@moderndeveloperllc
moderndeveloperllc / poly2-serving-regex.ini
Created June 7, 2017 16:56
Polymer 2 differential serving regex
Chrome\/(49|[5-9]\d+)|AppleWebKit\/(60[2-9]|6[1-9]\d)|Firefox\/(5[1-9]|[6-9]\d)|OPR\/(4[5-9]|[5-9]\d)|Edge\/(15\.15\d{3}|15\.1[6-9]\d{3}|15\.[2-9]\d{4}|1[6-9]|[2-9]\d)
@moderndeveloperllc
moderndeveloperllc / webpack.config.js
Last active August 21, 2019 14:30
webpack config - BabelMultiTargetPlugin and HtmlWebpackDeployPlugin
'use strict';
const BabelMultiTargetPlugin = require('webpack-babel-multi-target-plugin').BabelMultiTargetPlugin;
const HtmlWebpackDeployPlugin = require('html-webpack-deploy-plugin');
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
const {InjectManifest} = require('workbox-webpack-plugin');
const {resolve, join} = require('path');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const fs = require('fs');
@moderndeveloperllc
moderndeveloperllc / accordion.js
Last active December 11, 2019 22:34
vaadin-accordion - click listener not working?
<iron-form id="userForm">
<form>
<vaadin-form-layout .responsive-steps="${this.steps}">
<vaadin-form-item>
<vaadin-accordion id="aclList" opened="null">
<vaadin-accordion-panel theme="small">
<div slot="summary">Access Control List (Advanced use only)</div>
<div id="checkboxGroups">${this._displayAclList(this.jwt['usr']['aclList'])}</div>
</vaadin-accordion-panel>
</vaadin-accordion>