Skip to content

Instantly share code, notes, and snippets.

View ericjeker's full-sized avatar
👋

Eric Jeker ericjeker

👋
View GitHub Profile
@ericjeker
ericjeker / bad.component.ts
Last active March 13, 2020 06:40
Example of a bad Angular component
@Component({
selector: 'app-page-list',
templateUrl: 'page-list.component.html',
stylesUrl: 'page-list.component.scss'
})
class PageList {
title: string;
actions: [];
dataset: [];
// that's too many booleans
@ericjeker
ericjeker / Vagrantfile
Created March 10, 2018 07:11
Vagrant box with Docker compose
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
RangeError: Maximum call stack size exceeded
at indexOf(/vendor.bundle.js:7580:17)
at Array.<anonymous>(/vendor.bundle.js:7601:21)
at Object.stringify(<anonymous>)
at stringify(/vendor.bundle.js:7588:15)
at Raven._makeRequest(/vendor.bundle.js:6487:22)
at Raven._sendProcessedPayload(/vendor.bundle.js:6410:56)
at Raven._send(/vendor.bundle.js:6352:22)
at Raven._processException(/vendor.bundle.js:6126:14)
at Raven._handleStackInfo(/vendor.bundle.js:6032:14)
{
"name": "angular-cli-project",
"version": "0.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@angular-devkit/build-optimizer": {
"version": "0.0.13",
"resolved": "https://registry.npmjs.org/@angular-devkit/build-optimizer/-/build-optimizer-0.0.13.tgz",
"integrity": "sha512-yEMkYU4YU8XlA5OauPhg22ZEWJ4X2VhiFKUwfeo4UWJ7lz4XWiuBJocrT5NHWqI1S0rOLpSixLXG9byvFMbavA==",
{
"name": "angular-cli-project",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
too much recursion[Learn More] zone.js:2758
patchXHR/openNative</< zone.js:2758
patchMethod/proto[name] zone.js:1274
_instrumentBreadcrumbs/</< raven.js:1023
_makeRequest raven.js:1704
_sendProcessedPayload raven.js:1628
_send raven.js:1570
_processException raven.js:1344
_handleStackInfo raven.js:1250
captureException raven.js:388
@ericjeker
ericjeker / install.sh
Created July 23, 2014 12:43
Vagrant shell provision file
#!/usr/bin/env bash
# Update the package list
sudo apt-get update
sudo apt-get upgrade -y
# Install more recent PPA (do not do that except you are sure of what you are doing)
sudo apt-get install -y python-software-properties