This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Profile Card</title> | |
<link rel="stylesheet" href="styles.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import math | |
import os | |
import random | |
import re | |
import sys | |
def cycleStr(s): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const fs = require('fs'); | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf-8'); | |
let inputString = ''; | |
let currentLine = 0; | |
let res = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from 'express'; | |
import multer from 'multer'; | |
import Image from './../models/upload.model'; | |
const router = express.Router(); | |
// multer local storage | |
const storage = multer.diskStorage({ | |
destination: function (req, file, cb) { | |
cb(null, './uploads'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Switch to Dark Mode Only */ | |
function modeSwitcher() { | |
sessionStorage.setItem('theme', 'dark'); | |
let theme = sessionStorage.getItem('theme'); | |
document.documentElement.setAttribute('data-theme', 'dark'); | |
} | |
$(document).ready(function () { | |
modeSwitcher(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example test case | |
describe("Test Case Name", () => { | |
// Test case goes here | |
it("test case name", () => { | |
// cypress commands goes here | |
cy.visit("/"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ProjectTaskRepository } = require('../../repository/project-task') | |
const { CalendarRepository } = require('../../repository/calendars'); | |
const { ProjectSchedulerBudgetRepository } = require("../../repository/project-scheduler-budget"); | |
const error = require("../action-helper/common-error"); | |
const throwError = error.throwError; | |
const moment = require('moment'); | |
class GetEarnedValueofTask { | |
constructor(project_id) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ProjectSchedulerRepository } = require('../../repository/projectscheduler'); | |
const { ProjectTaskRepository } = require('../../repository/project-task'); | |
const { CalendarRepository } = require('../../repository/calendars'); | |
const { ConstructManageApi } = require('../../service-apis/construct-manage-api'); | |
const error = require("../action-helper/common-error"); | |
const throwError = error.throwError; | |
const objectID = require('mongodb').ObjectID; | |
const moment = require('moment'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/************************* | |
* EDITOR SETTINGS START * | |
*************************/ | |
// format the code on hitting the save | |
"editor.formatOnSave": true, | |
// font face | |
"editor.fontSize": 14, |
NewerOlder