Skip to content

Instantly share code, notes, and snippets.

View khorramk's full-sized avatar
🏠
Working from home

Khorram Khondkar khorramk

🏠
Working from home
  • Northampton
  • 19:08 (UTC +01:00)
View GitHub Profile
# 1. Build our Angular app
FROM node:alpine as builder
WORKDIR /app
COPY package.json package-lock.json ./
ENV CI=1
RUN npm ci
COPY . .
RUN npm run build -- --prod --output-path=/dist
@khorramk
khorramk / cors fix
Created January 29, 2021 21:34
Client side Cors error fix
fetch(url, {
method: "get", //put your method
headers: {
"Content-Type": "application/json",
"X-Requested-With": "XMLHttpRequest",
"Access-Control-Allow-Origin": "*"
},
mode: 'no-cors'
});
@khorramk
khorramk / NASA countdownliftof game
Created December 4, 2017 22:20
countdown liftoff
/*
* Programming Quiz: Countdown, Liftoff! (4-3)
*
* Using a while loop, print out the countdown output above.
*/
// your code goes here
var tSeconds = 60;
while (tSeconds >= 0){