Skip to content

Instantly share code, notes, and snippets.

View styles.css
This file has been truncated, but you can view the full file.
@import url(https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,400i,500,600,700,800,900);
@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,600,700);
@charset "UTF-8";/* You can add global styles to this file, and also import other style files *//*!
* NOTICE: (c) 2019 ConsumerInfo.com, Inc, an Experian company.
* All Rights Reserved.
* The material contained herein is protected by copyright and trade secret law.
* Unauthorized use, copying, or dissemination is strictly prohibited.
* All material contained herein is subject to Experian's confidential information policies.
View webpack-access-federated-containers-plugin.js
/*
Makes your remote containers low level API accessible via:
import accessFederatedContainer from "access-federated-containers";
accessFederatedContainer("app2")
*/
/** @typedef {import("webpack").Compiler} Compiler */
/** @typedef {import("webpack").Compilation} Compilation */
View machine.js
const routes = {
auth: {
login: "/auth/login",
reset: "/auth/reset-password"
},
apply: {
documents: "/apply/upload-docs",
income: "/apply/income",
name: "/apply/name",
review: "/apply/review",
@PatrickJS
PatrickJS / emit-all-plugin.js
Created Feb 28, 2022 — forked from DrewML/emit-all-plugin.js
Output every file in a webpack build to the specified dist directory in the webpack config. Each file is output after having each loader run against it, but before the webpack module wrapper is added.
View emit-all-plugin.js
const path = require('path');
module.exports = class EmitAllPlugin {
constructor(opts = {}) {
this.ignorePattern = opts.ignorePattern || /node_modules/;
}
shouldIgnore(path) {
return this.ignorePattern.test(path);
}
@PatrickJS
PatrickJS / getOrLoadRemote.js
Created Feb 27, 2022 — forked from ScriptedAlchemy/getOrLoadRemote.js
The Right Way to Load Dynamic Remotes
View getOrLoadRemote.js
/**
*
* @param {string} remote - the remote global name
* @param {object | string} shareScope - the shareScope Object OR scope key
* @param {string} remoteFallbackUrl - fallback url for remote module
* @returns {Promise<object>} - Federated Module Container
*/
const getOrLoadRemote = (remote, shareScope, remoteFallbackUrl = undefined) =>
new Promise((resolve, reject) => {
// check if remote exists on window
@PatrickJS
PatrickJS / BrowserDeviceInfo.js
Created Jan 30, 2022
chrome emulated device info
View BrowserDeviceInfo.js
var devices = [
{ name: 'Desktop - Huge', width: 2880, height: 1800, ratio: 2, type: 'desktop' },
{ name: 'Desktop - Extra Large', width: 1920, height: 1080, ratio: 1, type: 'desktop' },
{ name: 'Desktop - Large', width: 1440, height: 900, ratio: 1, type: 'desktop' },
{ name: 'Desktop - HiDPI', width: 1366, height: 768, ratio: 1, type: 'desktop' },
{ name: 'Desktop - MDPI', width: 1280, height: 800, ratio: 1, type: 'desktop' },
{ name: 'Laptop with HiDPI screen', width: 1440, height: 900, ratio: 2, type: 'desktop' },
{ name: 'Laptop with MDPI screen', width: 1280, height: 800, ratio: 1, type: 'desktop' },
{ name: 'Laptop with touch', width: 1280, height: 950, ratio: 1, type: 'desktop' },
{ name: 'Tablet - Portrait', width: 768, height: 1024, ratio: 1, type: 'tablet' },
@PatrickJS
PatrickJS / BrowserDeviceInfo.js
Created Jan 30, 2022 — forked from TrevorJTClarke/BrowserDeviceInfo.js
A quick list of browsers and devices for use in testing. Chrome is used for all devices that need simulation.
View BrowserDeviceInfo.js
var devices = [
{ name: 'Desktop - Huge', width: 2880, height: 1800, ratio: 2, type: 'desktop' },
{ name: 'Desktop - Extra Large', width: 1920, height: 1080, ratio: 1, type: 'desktop' },
{ name: 'Desktop - Large', width: 1440, height: 900, ratio: 1, type: 'desktop' },
{ name: 'Desktop - HiDPI', width: 1366, height: 768, ratio: 1, type: 'desktop' },
{ name: 'Desktop - MDPI', width: 1280, height: 800, ratio: 1, type: 'desktop' },
{ name: 'Laptop with HiDPI screen', width: 1440, height: 900, ratio: 2, type: 'desktop' },
{ name: 'Laptop with MDPI screen', width: 1280, height: 800, ratio: 1, type: 'desktop' },
{ name: 'Laptop with touch', width: 1280, height: 950, ratio: 1, type: 'desktop' },
{ name: 'Tablet - Portrait', width: 768, height: 1024, ratio: 1, type: 'tablet' },
@PatrickJS
PatrickJS / haproxy.config
Created Jan 25, 2021 — forked from bwiggs/haproxy.config
HAProxy Config File Example
View haproxy.config
global
#debug # uncomment to enable debug mode for HAProxy
defaults
mode http # enable http mode which gives of layer 7 filtering
timeout connect 5000ms # max time to wait for a connection attempt to a server to succeed
timeout client 50000ms # max inactivity time on the client side
timeout server 50000ms # max inactivity time on the server side
backend legacy # define a group of backend servers to handle legacy requests