If you use IntellijIDEA that was installed from Jetbrains Toolbox:
- Look for the
idea.properties
in the directory:%AppData%\Roaming\JetBrains\IntelliJIdea2021.3
- Add this line in that file:
java.net.useSystemProxies=true
const tf = require('@tensorflow/tfjs-node'); | |
const image = require('get-image-data'); | |
const fs = require('fs'); | |
var path = require('path'); | |
const classes = ['rock', 'paper', 'scissors']; | |
exports.makePredictions = async (req, res, next) => { | |
const imagePath = `./public/images/${req && req['filename']}`; | |
try { |
// More Explanations on | |
// | |
const express = require('express'); | |
const multer = require('multer'); | |
const controller = require('../controllers/PredictController'); | |
const filename = `test-image-${Date.now().toString()}.jpg`; | |
// configure multer | |
const storage = multer.diskStorage({ |
var createError = require('http-errors'); | |
var express = require('express'); | |
var path = require('path'); | |
var cookieParser = require('cookie-parser'); | |
var logger = require('morgan'); | |
var indexRouter = require('./routes/index'); | |
var usersRouter = require('./routes/users'); | |
var app = express(); |
If you use IntellijIDEA that was installed from Jetbrains Toolbox:
idea.properties
in the directory:
%AppData%\Roaming\JetBrains\IntelliJIdea2021.3
java.net.useSystemProxies=true
Open cmd/terminal and run these commands along with your own proxy host and port.
npm config set proxy http://[YOUR PROXY HOST]:[PORT]
npm config set https-proxy http://[YOUR PROXY HOST]:[PORT]
npm config set http-proxy http://[YOUR PROXY HOST]:[PORT]
In the machine.config
file under these 2 folders:
Add this configuration in the bottom (before the last closing tag):
<system.net>
============TASK 1========================== | |
T1PUBLICBILL=public-billing-service-593 (change this with yours) | |
cd | |
cd ~/pet-theory/lab07/unit-api-billing | |
gcloud builds submit --tag gcr.io/$PROJECT_ID/billing-staging-api:0.1 | |
gcloud run deploy $T1PUBLICBILL --image gcr.io/$PROJECT_ID/billing-staging-api:0.1 | |
gcloud run services list |
#!bin/sh | |
ls -lah |
{ | |
"cmd": ["g++.exe", "${file}", "-o", "${file_base_name}.exe", "&&" , "${file_base_name}.exe<inputf.in>outputf.in"], | |
"shell":true, | |
"working_dir":"$file_path", | |
"selector":"source.cpp" | |
} |