Skip to content

Instantly share code, notes, and snippets.

Avatar

Varad Kshirsagar Varad2305

  • Hyderabad
View GitHub Profile
View digital_clock.js
function updateClock(){
var currentTime = new Date();
var currentHours = currentTime.getHours();
var currentMins = currentTime.getMinutes();
var currentSecs = currentTime.getSeconds();
currentMins = ( currentMins < 10 ? "0" : "" ) + currentMins;
currentSecs = ( currentSecs < 10 ? "0" : "" ) + currentSecs;
var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
View digital_clock.html
<span id="clock">&nbsp;</span>
<body onload="updateClock();setInterval('updateClock()', 1000 )">
View model.py
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.metrics import roc_auc_score
from sklearn.preprocessing import StandardScaler
from src.algorithms import DAGMM,LSTMAD
View DCSC.cpp
#include <bits/stdc++.h>
using namespace std;
void DFS(long long v,map<long long, vector<long long>> &adj,vector<long long> &ans){
ans.push_back(v);
auto itr = adj.find(v);
if(itr != adj.end()){
vector<long long> aux = itr->second;
You can’t perform that action at this time.