This file contains hidden or 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
// scrape.js | |
const puppeteer = require("puppeteer"); | |
const fs = require("fs"); | |
const path = require("path"); | |
// Home page as direct access sometimes denies access | |
const TARGET_URL = "https://tgeapcet.nic.in/default.aspx"; | |
async function scrapeAllotments() { |
This file contains hidden or 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
#include <bits/stdc++.h> | |
using namespace std; | |
using dbl = double; | |
using ll = long long; | |
using str = string; | |
using ch = char; | |
using vll = vector<ll>; | |
using pll = pair<ll, ll>; | |
using mpll = map<ll, ll>; |
This file contains hidden or 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
//Enter required header files | |
#include <stdio.h> | |
#include <math.h> | |
int eq(double a, double b) { | |
return fabs(a-b) < 1e-5; | |
} | |
/** | |
* @brief Returns the distance between the given two 2D points using the distance formula d((x1,y1), (x2,y2)) = sqrt((x1-x2)^2 + (y1-y2)^2). |
This file contains hidden or 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
#include <bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
long long n, h, k; | |
cin >> n >> h >> k; | |
long long hi[n]; | |
long long gi[n]; |
This file contains hidden or 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
[ | |
{ | |
"batch": "10 Class- Term 2", | |
"id": "28714-4782" | |
}, | |
{ | |
"batch": "11J1-A0S", | |
"id": "28740-4782" | |
}, | |
{ |
This file contains hidden or 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 cheerio from "cheerio"; | |
import fetch from "node-fetch"; | |
import fs from "fs/promises" | |
const ALLOWED_CLASSES = { | |
"REGULAR CLASS-H": "Regular Class", | |
"MERGE CLASS-H": "Merge Class" | |
}; | |
const DEFAULT_BATCH = "31216-4846" |
This file contains hidden or 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
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"target": "es6" | |
}, | |
"exclude": ["node_modules", "**/node_modules/*"] | |
} |
This file contains hidden or 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
React Vite Tailwind setup |
This file contains hidden or 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
Winston Logger Config |
This file contains hidden or 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
Package.json for vanilla js (Parcel) |
NewerOlder