Skip to content

Instantly share code, notes, and snippets.

View PramodDutta's full-sized avatar
🎯
Focusing

Promode PramodDutta

🎯
Focusing
View GitHub Profile
from abc import ABC, abstractmethod
class PC:
def __init__(self):
print("PC initialized")
class MotherBoard:
def start(self):
print("MotherBoard started")

What is HTTP?

  • HTTP is Hyper Text Transfer Protocolo.

image

Research about API Testing, What is it, How to do it?

Client Server Arch.

print("dada');
package oct.ex_18102024_Strings_Wrapper;
public class Test {
public static void main(String[] args) {
ABC a = new ABC();
a.f1();
}
}
class XYZ{
public class MaxNumber {
public static void main(String[] args) {
int num1 = 10; // Example number 1
int num2 = 20; // Example number 2
// Using ternary operator to find maximum
int max = (num1 > num2) ? num1 : num2;
// Printing the result
System.out.println("The maximum of " + num1 + " and " + num2 + " is: " + max);
import java.util.Scanner;
public class UserInput {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Taking user input
System.out.print("Enter your name: ");
String name = scanner.nextLine();
@PramodDutta
PramodDutta / 03_10_2024_Lab001.java
Created October 3, 2024 00:47
Doubt regarding the Hello World
package Oct.ex_02102024_MainMethod;
public class Lab001 {
public static void main(String[] args){
System.out.println("Hello World!");
System.out.println("pramod");
}
}
@PramodDutta
PramodDutta / code.py
Created September 10, 2024 03:19
Code to upload a doc to Drive
import os
import io
from google.oauth2 import service_account
from googleapiclient.discovery import build
from googleapiclient.http import MediaFileUpload
# Set up the Drive API
SCOPES = ['https://www.googleapis.com/auth/drive.file']
SERVICE_ACCOUNT_FILE = 'path/to/credentials.json'
@PramodDutta
PramodDutta / PostmanTest.js
Created September 8, 2024 05:44
Postman Testcases Writing notes
console.log("After running the API")
console.log("Testcases written by Us")
console.log(pm.info.requestName);
// Postman Syntax for Text is based on the ChaiJS
console.log(pm.response.text()); // text response
console.log(pm.response.json()); // json response
console.log(pm.response.code); // 200