Skip to content

Instantly share code, notes, and snippets.

View abdulmuneer22's full-sized avatar

Muneer PP abdulmuneer22

View GitHub Profile
'use strict';
// proxy configurator on apigateway
var httpProxy = require('http-proxy');
var HttpProxyRules = require('http-proxy-rules');
// // Set up proxy rules instance for routing
// var proxyRules = new HttpProxyRules({
// rules: {
// '.*/api/': 'http://127.0.0.1:8093/api/',
'use strict';
// proxy configurator on apigateway
var httpProxy = require('http-proxy');
// Create reverse proxy instance
var proxy = httpProxy.createProxy();
function forwardToInternalPath(req, res) {
const TextField = styled.input`
::-webkit-input-placeholder {
color: red;
}
::-moz-placeholder {
color: red;
opacity: 1;
}
@abdulmuneer22
abdulmuneer22 / cloudSettings
Created August 20, 2018 15:37
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-08-20T15:37:47.762Z","extensionVersion":"v3.0.0"}
@abdulmuneer22
abdulmuneer22 / launch.json
Created April 30, 2020 13:04 — forked from cecilemuller/launch.json
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Node Inspector",
"type": "node",
"request": "launch",
"args": ["${workspaceRoot}/src/service.ts"],
"runtimeArgs": ["-r", "ts-node/register"],
"cwd": "${workspaceRoot}",
import { chain } from "icepick";
const slotsStub = [
{
slot: 0,
vehicleNumber: "",
color: ""
},
{
slot: 1,