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
{ | |
"department": "Computer Science and Engineering", | |
"university": "Bangladesh Army International University of Science and Technology", | |
"faculty": [ | |
{ | |
"name": "Mohammad Asaduzzaman Khan", | |
"designation": "Associate Professor & Acting Dean, Faculty of ECE", | |
"email": "[email protected]", | |
"phone": "01711-003233" | |
}, |
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; | |
#define LL long long | |
#define sz(x) (int)(x).size() | |
#define trace(x) cerr << #x << " = " << x << '\n'; | |
#define trace2(x,y) cerr << #x << "=" << x << "\t" << #y << "=" << y << '\n'; | |
template<class T> T lcm(T a, T b) {return ( abs(a * b) / gcd(a, b));} | |
#define MOD (int)(1e9 + 7) |
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
function extractIdParts(id) { | |
if (id.length < 16) { | |
throw new Error("ID Length cannot be less than 16."); | |
} | |
const regex = /(\d{3})(\d{2})(\d{1})(\d{2})(\d{5})(\d{3})/; | |
const match = regex.exec(id); | |
if (!match) { | |
throw new Error("Invalid ID format"); |
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
{ | |
"totalBscCredit": 145, | |
"semesters": [ | |
{ | |
"semesterName": "First Semester", | |
"courses": [ | |
{ | |
"isSessional": false, | |
"courseCode": "CSE 113", | |
"courseTitle": "Discrete Mathematics", |
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
const winston = require("winston"); | |
const expressWinston = require("express-winston"); | |
const config = require("./base"); | |
/*-------------------GENERAL LOGGER-------------------*/ | |
const generalLogger = winston.createLogger({ | |
exitOnError: false, | |
format: winston.format.combine(winston.format.timestamp(), winston.format.json()), | |
transports: [ | |
new winston.transports.File({ filename: "logs/error.log", level: "error" }), |
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
@echo off | |
rem 1. Check if Python is installed | |
python --version > nul 2>&1 | |
if %errorlevel% neq 0 ( | |
echo Python is not installed. Installing Python... | |
start /wait python_installer.exe | |
) | |
rem 2. Add a specified path to environment and system variable |
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
set UNITY_VERSION=%1% | |
c: | |
set JAVA_HOME=c:\Program Files\Unity\Hub\Editor\%UNITY_VERSION%\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\ | |
set ANDROID_HOME=c:\Program Files\Unity\Hub\Editor\%UNITY_VERSION%\Editor\Data\PlaybackEngines\AndroidPlayer\ | |
cd %ANDROID_HOME%SDK\tools\bin\ | |
echo.> %USERPROFILE%\.android\repositories.cfg | |
cmd /C sdkmanager --update | |
cmd /C sdkmanager "platform-tools" "platforms;android-29" |
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
// if it doesn't get the actual list, copy new xPath from Elements | |
let conts = getElementByXpath("/html/body/ytd-app/div/ytd-page-manager/ytd-browse/ytd-two-column-browse-results-renderer/div[1]/ytd-section-list-renderer/div[2]/ytd-item-section-renderer/div[3]/ytd-playlist-video-list-renderer/div[3]"); | |
let tsvData = "No.\t Title\t Link\n"; | |
// loop through all contents | |
for(let i = 0; i < conts.childElementCount; i++) { | |
let cont = conts.childNodes[i].childNodes[3].childNodes[1].childNodes[3].childNodes[1].childNodes[3]; | |
let link = "https://youtube.com" + cont.getAttribute("href").split('&')[0]; | |
let title = cont.getAttribute("title"); |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SnapClosest : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
void Start() | |
{ | |
//Snap(); |
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
/* | |
How-to: | |
Simply drag and drop in /Editor folder. | |
*/ | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class SmartRenovate : EditorWindow | |
{ |