Skip to content

Instantly share code, notes, and snippets.

View MrCroft's full-sized avatar

Marian Stoica MrCroft

  • Bucharest, Romania
View GitHub Profile
@MrCroft
MrCroft / settings.json
Created June 25, 2021 16:27
VSCode Color Customizations - Inspired from https://www.hirez.io colors
{
"workbench.colorCustomizations": {
// Main Color: #ffdb00
// Accent Color: #ffe85b
// TITLE BAR
"titleBar.activeBackground": "#ffdb00",
"titleBar.activeForeground": "#000000",
// "titleBar.inactiveBackground": "#ffe85b",
"titleBar.inactiveForeground": "#e7e7e799",
@MrCroft
MrCroft / zone-node-redirect-error
Created March 5, 2018 16:24
zone-node redirect error
Unhandled Promise rejection: Can't set headers after they are sent. ; Zone: <root> ; Task: Promise.then ; Value: Error: Can't set headers after they are sent.
at validateHeader (_http_outgoing.js:494:11)
at ServerResponse.setHeader (_http_outgoing.js:501:3)
at ServerResponse.header (/var/www/pdp.xxx/app/node_modules/express/lib/response.js:767:10)
at ServerResponse.send (/var/www/pdp.xxx/app/node_modules/express/lib/response.js:170:12)
at done (/var/www/pdp.xxx/app/node_modules/express/lib/response.js:1004:10)
at /var/www/pdp.xxx/app/modules/express-engine/src/main.ts:99:11
at ZoneDelegate.invoke (/var/www/pdp.xxx/app/node_modules/zone.js/dist/zone-node.js:388:26)
at Zone.run (/var/www/pdp.xxx/app/node_modules/zone.js/dist/zone-node.js:138:43)
at /var/www/pdp.xxx/app/node_modules/zone.js/dist/zone-node.js:858:57