Snippets Collections
#include<stdio.h>
#include<stdlib.h>
 
struct myArray
{
    int total_size;
    int used_size;
    int *ptr;
};
 
void createArray(struct myArray * a, int tSize, int uSize){
    // (*a).total_size = tSize;
    // (*a).used_size = uSize;
    // (*a).ptr = (int *)malloc(tSize * sizeof(int));
 
    a->total_size = tSize;
    a->used_size = uSize;
    a->ptr = (int *)malloc(tSize * sizeof(int));
}

void show(struct myArray *a){
    for (int i = 0; i < a->used_size; i++)
    {
        printf("%d\n", (a->ptr)[i]);
    }
}

void setVal(struct myArray *a){
    int n;
    for (int i = 0; i < a->used_size; i++)
    {
        printf("Enter element %d  :",i+1);
        scanf("%d", &n);
        (a->ptr)[i] = n;
    }
}
 
int main(){
    struct myArray marks;
    createArray(&marks, 10, 5);
    printf("We are running setVal now\n");
    setVal(&marks);
 
    printf("We are running show now\n");
    show(&marks);
 
    return 0;
}
const pdfFileName = 'example/path/to/file.pdf'; // replace with your PDF file name variable
const fileNameWithoutExtension = pdfFileName.replace(/\.[^/.]+$/, '').replace(/[\/\\.,]/g, '');
console.log(fileNameWithoutExtension);
import { Modules, Tableplans, OpeningHours, ClosedDates } from 'meteor/mrwinston:data';
import { useTracker } from 'meteor/react-meteor-data';
import i18n from 'meteor/universe:i18n';
import { Meteor } from 'meteor/meteor';

import { makeStyles, FormControl, InputLabel, MenuItem, Select, Typography, TextField, Paper } from '@material-ui/core';
import { DatePicker, TimePicker } from '@material-ui/pickers';
import React, { useState, useMemo, useEffect } from 'react';
import { useHistory, useParams } from 'react-router';

import { isValidEmail, isValidPhoneNumber } from '/both/lib/form_utils';
import GlobalStore from '../../../../stores/GlobalStore';
import Loading from '../../../shared/Loading';
import Material from '/client/lib/material';

import DurationTimeSelector from './DurationTimeSelector';
import ReservationsStepper, { Step } from './Stepper';

const useStyles = makeStyles(({ spacing, breakpoints }) => ({
  container: {
    padding: spacing(2),

    [breakpoints.down('sm')]: {
      gridTemplateRows: '1fr auto',
      display: 'grid',
      minHeight: 350,
      height: '80%',
    },
  },
  stepTitle: {
    marginBottom: spacing(2),
  },
  form: {
    gridTemplateColumns: '1fr 1fr',
    gap: `${spacing(2)}px`,
    display: 'grid',

    [breakpoints.down('sm')]: {
      flexDirection: 'column',
      display: 'flex',
    },
  },
  fullWidth: {
    gridColumn: 'span 2',
  },
  button: {
    marginTop: spacing(2),
    marginLeft: 'auto',
    display: 'block',
  },
  closed: {
    marginTop: spacing(2),
  },
  notVisible: {
    display: 'none',
  },
}));

export default function ReservationForm() {
  const currentDate = useMemo(() => {
    const date = new Date();

    date.setMinutes(Math.ceil(date.getMinutes() / 15) * 15 + 30);

    return date;
  }, []);

  const { tenantId } = useParams();
  const history = useHistory();
  const classes = useStyles();

  const [ready, moduleSettings, tableplans, userProfile] = useTracker(() => {
    const subs = [
      Meteor.subscribe('modules', { tenantId, type: 'reservations' }),
      Meteor.subscribe('tableplans'),
      Meteor.subscribe(OpeningHours._name, { tenantId, type: OpeningHours.forTypes.DEFAULT }),
      Meteor.subscribe(ClosedDates._name, { tenantId, type: OpeningHours.forTypes.DEFAULT }),
    ];

    return [
      subs.every((s) => s.ready()),
      {
        maxStartDate: 30,
        minStartDate: 10,
        maxDuration: 5 * 60,
        minDuration: 120,
        maxPeople: 5,
        minPeople: 1,
        durationGranularity: 30,
        ...Modules.reservations.get().settings,
      },
      Tableplans.find().fetch(),
      Meteor.user()?.profile ?? {},
    ];
  }, []);

  const [tableplan, setTableplan] = useState('');
  const [date, setDate] = useState(currentDate);
  const [duration, setDuration] = useState('');
  const [comment, setComment] = useState('');
  const [people, setPeople] = useState(1);
  const [phone, setPhone] = useState('');
  const [email, setEmail] = useState('');
  const [name, setName] = useState('');
  const [step, setStep] = useState(0);

  const [loading, setLoading] = useState(false);

  const setStateFromEvent = (setState) => (event) => {
    setState(event.target.value);
  };

  function createReservation() {
    const formData = {
      name,
      email,
      phone,
      date,
      duration,
      comment,
      tableplan,
    };

    const reservation = {
      ...formData,
      people: parseInt(people, 10),
    };

    setLoading(true);
    Meteor.call('createReservation', reservation, i18n.getLocale(), (err) => {
      setLoading(false);

      if (err) {
        console.error(err);

        if (err.reason.includes('Overlapping')) {
          Material.toast(i18n.__(`reservation.create.${err.reason}`), {
            autoHideDuration: 6000,
          });
        } else {
          Material.toast(err.toString());
        }

        setStep(0);
      } else {
        GlobalStore.set('lastReservation', reservation);
        history.push(`/${tenantId}#reservation-created`);
      }
    });
  }

  const shouldDisableDate = (momentDate, { onlyCheckDate = true } = {}) => {
    const jsDate = momentDate instanceof Date ? momentDate : momentDate.toDate();

    if (ClosedDates.getEntriesOn(OpeningHours.forTypes.DEFAULT, jsDate, onlyCheckDate, { direct: true }).length > 0) {
      return true;
    }

    return OpeningHours.isClosedOn(OpeningHours.forTypes.DEFAULT, jsDate, { direct: true, onlyCheckDate });
  };

  const durationEntries = useMemo(() => {
    const elements = [];

    if (moduleSettings.allDuration > 0) {
      setDuration(moduleSettings.allDuration);

      return elements;
    }

    console.log(moduleSettings);

    for (let i = moduleSettings.minDuration; i <= moduleSettings.maxDuration; i += moduleSettings.durationGranularity) {
      elements.push(
        <MenuItem key={i} value={i}>
          {(i / 60).toLocaleString(i18n.getLocale(), { minimumFractionDigits: 1 })} {i18n.__('reservation.create.hours')}
        </MenuItem>
      );
    }

    return elements;
  }, [moduleSettings]);

  // Fix react-target div styling on this page
  useEffect(() => {
    const e = document.getElementById('react-target');

    if (e) {
      e.style.height = '100vh';
    }

    return () => {
      if (e) {
        e.style.height = '';
      }
    };
  }, []);

  useEffect(() => {
    if (tableplans[0]?._id) {
      setTableplan(tableplans[0]._id);
    }
  }, [tableplans]);

  useEffect(() => {
    setDuration(moduleSettings.minDuration);
    setPhone(userProfile.telephone ?? '');
    setPeople(moduleSettings.minPeople);
    setEmail(userProfile.email ?? '');
    setName(userProfile.name ?? '');
    setComment('');
  }, [ready]);

  const maxDate = useMemo(() => new Date(currentDate.getTime() + moduleSettings.maxStartDate * 1000 * 60 * 60 * 24), [
    currentDate,
    moduleSettings.maxStartDate,
  ]);
  const minDate = useMemo(() => new Date(currentDate.getTime() + moduleSettings.minStartDate * 1000 * 60), [
    currentDate,
    moduleSettings.minStartDate,
  ]);

  const isClosed = useMemo(() => (date ? shouldDisableDate(date, { onlyCheckDate: false }) : false), [date]);

  const isPhoneInvalid = useMemo(() => !isValidPhoneNumber(phone, { ignoreEmpty: true }), [phone]);
  const isEmailInvalid = useMemo(() => !!email && !isValidEmail(email), [email]);

  const steps = useMemo(
    () => [
      {
        isOk: !!date && !!duration,
        title: 'reservation.create.dateDetails',
        content: (
          <>
            <DatePicker
              value={date}
              inputVariant="outlined"
              required
              onChange={(event) => setDate(event.toDate())}
              label={i18n.__('reservation.create.date')}
              shouldDisableDate={shouldDisableDate}
              showTodayButton
              maxDate={maxDate}
              minDate={minDate}
              disablePast
              autoOk
            />
            <TimePicker
              value={date}
              inputVariant="outlined"
              required
              onChange={(event) => setDate(event.toDate())}
              ampm={false}
              minutesStep={15}
              disablePast
              label={i18n.__('reservation.create.time')}
            />
            {moduleSettings.minDuration % 30 === 0 && moduleSettings.durationGranularity % 30 === 0 && durationEntries.length < 15 ? (
              <FormControl
                variant="outlined"
                color="secondary"
                className={moduleSettings.allDuration > 0 ? classes.notVisible : classes.fullWidth}
                required
              >
                <InputLabel shrink>{i18n.__('reservation.create.end.label')}</InputLabel>
                <Select label={i18n.__('reservation.create.end.label')} value={duration} onChange={setStateFromEvent(setDuration)}>
                  {durationEntries}
                </Select>
              </FormControl>
            ) : (
              <DurationTimeSelector
                value={duration}
                onChange={setDuration}
                className={classes.fullWidth}
                moduleSettings={moduleSettings}
                label={i18n.__('reservation.create.end.label')}
              />
            )}
          </>
        ),
      },
      {
        isOk: !!name && !!email && !isEmailInvalid && !!phone && !isPhoneInvalid && !!people,
        title: 'reservation.create.contactDetails',
        content: (
          <>
            <TextField
              id="name"
              variant="outlined"
              color="secondary"
              label={i18n.__('reservation.create.name')}
              required
              name="name"
              value={name}
              onChange={setStateFromEvent(setName)}
            />
            <TextField
              id="email"
              variant="outlined"
              color="secondary"
              label={i18n.__('reservation.create.email')}
              name="email"
              required
              error={isEmailInvalid}
              helperText={isEmailInvalid && i18n.__('reservation.create.invalidEmail')}
              type="email"
              value={email}
              onChange={setStateFromEvent(setEmail)}
            />
            <TextField
              id="phone"
              variant="outlined"
              color="secondary"
              type="tel"
              label={i18n.__('reservation.create.phone')}
              name="phone"
              error={isPhoneInvalid}
              helperText={isPhoneInvalid && i18n.__('reservation.create.invalidPhoneNumber')}
              required
              value={phone}
              onChange={setStateFromEvent(setPhone)}
            />
            <TextField
              type="number"
              variant="outlined"
              color="secondary"
              id="people"
              required
              label={i18n.__('reservation.create.people')}
              name="people"
              value={people}
              onChange={setStateFromEvent(setPeople)}
              autoComplete="off"
              inputProps={{
                min: moduleSettings.minPeople,
                max: moduleSettings.maxPeople,
              }}
            />
          </>
        ),
      },
      {
        isOk: !!tableplan,
        title: 'reservation.create.miscellaneousDetails',
        content: (
          <>
            <FormControl variant="outlined" color="secondary" required>
              <InputLabel shrink>{i18n.__('reservation.create.tableplan')}</InputLabel>
              <Select label={i18n.__('reservation.create.tableplan')} value={tableplan} onChange={setStateFromEvent(setTableplan)}>
                {tableplans.map((tp) => (
                  <MenuItem key={tp._id} value={tp._id}>
                    {tp.name}
                  </MenuItem>
                ))}
              </Select>
            </FormControl>
            <TextField
              id="comment"
              variant="outlined"
              color="secondary"
              label={i18n.__('reservation.create.comment')}
              name="comment"
              value={comment}
              onChange={setStateFromEvent(setComment)}
              autoComplete="off"
            />
          </>
        ),
      },
    ],
    [
      classes.fullWidth,
      comment,
      date,
      duration,
      durationEntries,
      email,
      isEmailInvalid,
      isPhoneInvalid,
      maxDate,
      minDate,
      moduleSettings,
      name,
      people,
      phone,
      tableplan,
      tableplans,
    ]
  );

  if (!ready) {
    return <Loading />;
  }

  return (
    <>
      <Typography component="h2" variant="h4" gutterBottom>
        {i18n.__('reservation.create.open')}
      </Typography>
      <Paper className={classes.container}>
        <ReservationsStepper
          step={step}
          loading={loading}
          onChange={setStep}
          steps={steps.length}
          onSubmit={createReservation}
          nextAvailable={!loading && steps[step]?.isOk && !isClosed}
        >
          <form>
            {steps.map(({ title, content }, index) => (
              // eslint-disable-next-line react/no-array-index-key
              <Step key={`${title}-${index}`} step={step} index={index}>
                <Typography className={classes.stepTitle} component="h3" variant="h6">
                  {i18n.__(title)}
                </Typography>
                <div className={classes.form}>{content}</div>
              </Step>
            ))}
            {isClosed && <Typography className={classes.closed}>{i18n.__('reservation.create.closed')}</Typography>}
          </form>
        </ReservationsStepper>
      </Paper>
    </>
  );
}
let  x1 = 0;
let  y1 = 0;
let  x2 = 0;
let  y2 = 0;

let easing1 =0.01;
let easing2 =0.1;

function setup() {

    createCanvas(windowWidth, windowHeight);
    background(0);

}

function draw() {
    background(300*mouseX/width, 
    200*mouseX/width+200*mouseY/height, 
    300*mouseY/height,150);
  
    //print mouse location
    fill(255);
    textSize(15)
    text(int(mouseX)+","+int(mouseY),50,50)
    translate(-300, -250);

    let currentMouseX = mouseX;
    let currentMouseY = mouseY;

    x1+= (currentMouseX - x1) * easing1;
    y1+= (currentMouseY - y1) * easing1;

    x2 = map(mouseX, 0, windowWidth, x1 - 80, x1 + 80);
    x2+= (currentMouseX - x2) * easing2;
    
    y2 = map(mouseY, 0, windowWidth, y1 - 60, y1 + 60);
    y2+= (currentMouseY - y2) * easing2;
  
    noStroke();

    // head
    drawCircle(255, x1 + 300, y1 + 200, 200);

    // shodow
    drawCircle(240, x1 + 305, y1 + 220, 160,);

    // eyes
    drawCircle(30, x2 + 265, y2 + 210, 13);
    drawCircle(30, x2 + 335, y2 + 210, 13);

}

function drawCircle(color, x, y, size){
    fill(color);
    noStroke();
    // ellipse(x, y, w, [h])
    ellipse(x,y,size);
}

function windowResized(){
    resizeCanvas(windowWidth, windowHeight);
  }
var  x1 = 0;
var  y1 = 0;
var  x2 = 0;
var  y2 = 0;

var easing1=0.1
var easing2=0.05


function windowResized(){
  resizeCanvas(windowWidth, windowHeight);
}

function setup() {
    pixelDensity(1)
    createCanvas(windowWidth, windowHeight);
    background(0);
}

function draw() {
  
    //background
    fill(color(300*mouseX/width, 200*mouseX/width+200*mouseY/height, 300*mouseY/height,150));
    rect(0, 0, width, height);
    
    //text
    fill(255-mouseX, 255-mouseX/2-mouseY/3, 255- mouseY/3);
	textSize(30);
    textAlign(CENTER);
	text('I’ll follow you~ ',width/2,mouseY+200);  
    
    //location
    textSize(15)
    text(int(mouseX)+","+int(mouseY),50,50)

    var targetX1 = mouseX;
    x1 = x1 + (targetX1 - x1) * easing1;
    var targetY1 = mouseY;
    y1 = y1 + (targetY1 - y1) * easing1;
  
    var targetX2 = mouseX;
    x2 = map(mouseX, 0, windowWidth, x1 - 80, x1 + 80);
    x2 = x2 + (targetX2 - x2) * easing1;
    var targetY2 = mouseY;
    y2 = map(mouseY, 0, windowWidth, y1 - 60, y1 + 60);
    y2 = y2 + (targetY2 - y2) * easing1;
  
    print(mouseX, mouseY);
    translate(-300, -250);
   
    // head
    fill(255);
    noStroke();
    ellipse(x1 + 300, y1 + 200, 200, 200);
    
    //shodow
    fill(240);
    noStroke();
    ellipse(x1 + 305, y1 + 220, 160, 160);

    // eyes
    fill(30);
    noStroke();
    ellipse(x2 + 265, y2 + 180, 13, 13);
  
    fill(30);
    noStroke();
    ellipse(x2 + 335, y2 + 180, 13, 13);
  
    document.ontouchmove = function(event) {
    event.preventDefault();
}
  
}

 

/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.mycompany.mavenproject1;

/**
 *
 * @author thatv
 */
import java.util.ArrayList;
import java.util.List;

public class Product {
    private int id;
    private String title;
    private double price;
    private int quantity;
    private double total;
    private double discountPercentage;
    private double discountedPrice;

    public Product(int id, String title, double price, int quantity, double total, double discountPercentage, double discountedPrice) {
        this.id = id;
        this.title = title;
        this.price = price;
        this.quantity = quantity;
        this.total = total;
        this.discountPercentage = discountPercentage;
        this.discountedPrice = discountedPrice;
    }

    // getters and setters omitted for brevity
}

public class Main {
    public static void main(String[] args) {
        String text = "id:59,title:Spring and summershoes,price:20,quantity:3,total:60,discountPercentage:8.71,discountedPrice:55\n"
                + "id:88,title:TC Reusable Silicone Magic Washing Gloves,price:29,quantity:2,total:58,discountPercentage:3.19,discountedPrice:56";

        List<Product> products = new ArrayList<>();
        String[] lines = text.split("\\n");

        for (String line : lines) {
            String[] attributes = line.split(",");
            int id = Integer.parseInt(attributes[0].split(":")[1]);
            String title = attributes[1].split(":")[1];
            double price = Double.parseDouble(attributes[2].split(":")[1]);
            int quantity = Integer.parseInt(attributes[3].split(":")[1]);
            double total = Double.parseDouble(attributes[4].split(":")[1]);
            double discountPercentage = Double.parseDouble(attributes[5].split(":")[1]);
            double discountedPrice = Double.parseDouble(attributes[6].split(":")[1]);

            Product product = new Product(id, title, price, quantity, total, discountPercentage, discountedPrice);
            products.add(product);
        }
        // Do something with the list of products...
    }
}
    public getAll throws Exception {
        String input = "id:59,title:Spring and summershoes,price:20,quantity:3,total:60,discountPercentage:8.71,discountedPrice:55\n" +
                       "id:88,title:TC Reusable Silicone Magic Washing Gloves,price:29,quantity:2,total:58,discountPercentage:3.19,discountedPrice:56";
        
        // Convert the input string to a byte array
        byte[] bytes = input.getBytes();
        
        // Create a ByteArrayInputStream from the byte array
        ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
        
        // Create an ObjectInputStream from the ByteArrayInputStream
        ObjectInputStream ois = new ObjectInputStream(bis);
        
        // Read the objects one by one and add them to a list
        List<Product> products = new ArrayList<>();
        while (true) {
            try {
                Product product = (Product) ois.readObject();
                products.add(product);
            } catch (EOFException e) {
                break;  // End of file reached
            }
        }
        
        // Close the streams
        ois.close();
        bis.close();
        
        // Print the list of products
        for (Product product : products) {
            System.out.println(product);
        }
    }
}
class Product implements Serializable {
    private String id;
    private String title;
    private double price;
    private int quantity;
    private double total;
    private double discountPercentage;
    private double discountedPrice;

    // constructor, getters and setters
    
    @Override
    public String toString() {
        return "Product{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", price=" + price +
                ", quantity=" + quantity +
                ", total=" + total +
                ", discountPercentage=" + discountPercentage +
                ", discountedPrice=" + discountedPrice +
                '}';
    }
   public static void writeProductToFile(Product product, String filePath) throws IOException {
    // Open the file for appending
    FileWriter fw = new FileWriter(filePath, true);
    
    // Convert the product to a string
    String productString = String.format("id:%s,title:%s,price:%.2f,quantity:%d,total:%.2f,discountPercentage:%.2f,discountedPrice:%.2f\n",
                                          product.getId(), product.getTitle(), product.getPrice(),
                                          product.getQuantity(), product.getTotal(), product.getDiscountPercentage(),
                                          product.getDiscountedPrice());
    
    // Write the string to the file
    fw.write(productString);
    
    // Close the file
    fw.close();
}
//This method takes a Product object and a file path as input parameters. 
//    It first opens the file for appending using a FileWriter.
//    It then converts the Product object to a string using the String.format() method.
//            This method uses placeholders to format the string with the values of the
//            Product object's properties. Finally, the method writes the string to the
//            file using the FileWriter.write() method and closes the file using the 
//            FileWriter.close() method.
//
//Note that in this example, we are assuming that the file already exists
//    and we are appending to it. If the file does not exist, you will need
//            to modify the code to create the file first.
}
var box = document.createElement("div");
box.className = "ads AdSense adpopup adszone adslot AD300";
box.style.height = "1px";

var observer = new MutationObserver(function () {
  if (document.body.contains(box)) {
    console.log("It's in the DOM!");
    observer.disconnect();
    setTimeout(function () {
      var hasAdblocker = !box.offsetHeight;
      console.log({ hasAdblocker });
    }, 0);
  }
});

observer.observe(document.body, {
  attributes: false,
  childList: true,
  characterData: false,
  subtree: true,
});

document.body.appendChild(box);
#include <stdio.h>
#include <stdlib.h>

struct node {
    int data;
    struct node *next;
};

struct node *head;

void insert_at_beginning(int value);
void insert_at_last(int value);
void insert_at_position(int value, int position);
void insert_after_value(int value, int data);

void delete_at_beginning();
void delete_at_last();
void delete_at_position(int position);
void delete_after_value(int value);

void print_list();
void print_reverse(struct node* current);

int find_index(int_value);

void find_all_indices(int value);

void reverse_list();

int main() {
    int option, choice, value, position, data;
    while (1) {
        printf("\nMENU\n");
        printf("1. Insert values\n");
        printf("2. Delete values from the list\n");
        printf("3. Traverse the list\n");
        printf("4. Find the index of 1st occurence of value in list\n");
        printf("5. Find all indices correspoding to occurence of value\n");
        printf("6. Reverse the sequence of value in the list\n");
        printf("Enter your option: ");
        scanf("%d", &option);
        
        switch(option){
            case 1:
                printf("1. Insert at beginning\n");
                printf("2. Insert after last\n");
                printf("3. Insert at position\n");
                printf("4. Insert after a particular value\n");
                printf("5. Exit\n");
                printf("Enter your choice: ");
                scanf("%d", &choice);
                
                switch (choice) {
                    case 1:
                        printf("Enter value to insert: ");
                        scanf("%d", &value);
                        insert_at_beginning(value);
                        break;
                    case 2:
                        printf("Enter value to insert: ");
                        scanf("%d", &value);
                        insert_at_last(value);
                        break;
                    case 3:
                        printf("Enter value to insert: ");
                        scanf("%d", &value);
                        printf("Enter position to insert: ");
                        scanf("%d", &position);
                        insert_at_position(value, position);
                        break;
                    case 4:
                        printf("Enter value to insert after: ");
                        scanf("%d", &value);
                        printf("Enter data to insert: ");
                        scanf("%d", &data);
                        insert_after_value(value, data);
                        break;
                    case 5:
                        exit(0);
                    default:
                        printf("Invalid choice\n");
                        break;
                }
                break;
            case 2:
                printf("1. Delete at beginning\n");
                printf("2. Delete after last\n");
                printf("3. Delete at position\n");
                printf("4. Delete after a particular value\n");
                printf("5. Exit\n");
                printf("Enter your choice: ");
                scanf("%d", &choice);
                
                switch (choice) {
                    case 1:
                        delete_at_beginning(value);
                        break;
                    case 2:
                        delete_at_last(value);
                        break;
                    case 3:
                        printf("Enter position to delete: ");
                        scanf("%d", &position);
                        delete_at_position(position);
                        break;
                    case 4:
                        printf("Enter value to delete a node after that particular value: ");
                        scanf("%d", &value);
                        delete_after_value(value);
                        break;
                    case 5:
                        exit(0);
                    default:
                        printf("Invalid choice\n");
                        break;
                }
                break;
            case 3:
                printf("1. Print all the values in list\n");
                printf("2. Print values in reverse\n");
                printf("3. Exit\n");
                printf("Enter your choice: ");
                scanf("%d", &choice);
                
                switch (choice) {
                    case 1:
                        print_list();
                        break;
                    case 2:
                        printf("List in reverse order: ");
                        print_reverse(head);
                        printf("\n");
                        break;
                }
                break;
            case 4:
                printf("Enter value to find index: ");
                scanf("%d", &value);
                int index = find_index(value);
                if (index == -1) {
                    printf("Value not found\n");
                } 
                else {
                    printf("Index of first occurrence of %d: %d\n", value, index);
                }
                break;
            case 5:
                printf("Enter value to find all indices: ");
                scanf("%d", &value);
                find_all_indices(value);
                break;
            case 6:
                reverse_list();
                printf("List reversed successfully\n");
                break;
        }
    }
}

void insert_at_beginning(int value) {
    struct node *new_node = (struct node*) malloc(sizeof(struct node));
    new_node->data = value;
    new_node->next = head;
    head = new_node;
    printf("Value %d inserted at beginning\n", value);
}

void insert_at_last(int value) {
    if (head == NULL) {
        insert_at_beginning(value);
        return;
    }

    struct node *current = head;
    while (current->next != NULL) {
        current = current->next;
    }

    struct node *new_node = (struct node*) malloc(sizeof(struct node));
    new_node->data = value;
    new_node->next = NULL;
    current->next = new_node;

    printf("Value %d inserted after last\n", value);
}

void insert_at_position(int value, int position) {
    if (position == 0) {
        insert_at_beginning(value);
        return;
    }

    struct node *current = head;
    int i = 0;
    while (i < position - 1 && current != NULL) {
        current = current->next;
        i++;
    }

    if (current == NULL) {
        printf("Invalid position\n");
        return;
    }

    struct node *new_node = (struct node*) malloc(sizeof(struct node));
    new_node->data = value;
    new_node->next = current->next;
    current->next = new_node;

    printf("Value %d inserted at position %d\n", value, position);
}

// Function to insert a new node after a particular value in the linked list
void insert_after_value(int value, int data) {
    if (head == NULL) {
        printf("List is empty\n");
        return;
    }
    struct node* current = head;
    while (current != NULL && current->data != value) {
        current = current->next;
    }
    if (current == NULL) {
        printf("Value not found\n");
        return;
    }
    struct node* new_node = (struct node*) malloc(sizeof(struct node));
    new_node->data = data;
    new_node->next = current->next;
    current->next = new_node;
}


// Function to delete the first node from the linked list
void delete_at_beginning() {
    if (head == NULL) {
        printf("List is empty\n");
        return;
    }
    struct node* temp = head;
    head = head->next;
    free(temp);
}

// Function to delete the last node from the linked list
void delete_at_last() {
    if (head == NULL) {
        printf("List is empty\n");
        return;
    }
    if (head->next == NULL) {
        free(head);
        head = NULL;
        return;
    }
    struct node* current = head;
    while (current->next->next != NULL) {
        current = current->next;
    }
    free(current->next);
    current->next = NULL;
}

// Function to delete a node at a particular position/index in the linked list
void delete_at_position(int position) {
    if (head == NULL) {
        printf("List is empty\n");
        return;
    }
    if (position == 0) {
        delete_at_beginning();
        return;
    }
    struct node* current = head;
    int i;
    for (i = 0; i < position - 1 && current != NULL; i++) {
        current = current->next;
    }
    if (current == NULL || current->next == NULL) {
        printf("Invalid position\n");
        return;
    }
    struct node* temp = current->next;
    current->next = temp->next;
    free(temp);
}

// Function to delete the node after a particular value in the linked list
void delete_after_value(int value) {
    if (head == NULL) {
        printf("List is empty\n");
        return;
    }
    struct node* current = head;
    while (current != NULL && current->data != value) {
        current = current->next;
    }
    if (current == NULL || current->next == NULL) {
        printf("Value not found or last node\n");
        return;
    }
    struct node* temp = current->next;
    current->next = temp->next;
    free(temp);
}

void print_list() {
    struct node *current = head;
    printf("List: ");
    while (current != NULL) {
        printf("%d ", current->data);
        current = current->next;
    }
    printf("\n");
}

void print_reverse(struct node* current) {
    if (current == NULL) {
        return;
    }
    print_reverse(current->next);
    printf("%d ", current->data);
}

// Function to find the index of the first occurrence of a value in the linked list
int find_index(int value) {
    int index = 0;
    struct node* current = head;
    while (current != NULL) {
        if (current->data == value) {
            return index;
        }
        index++;
        current = current->next;
    }
    return -1; // Value not found
}

// Function to find all indices corresponding to the occurrence of a value in the linked list
void find_all_indices(int value) {
    int index = 0;
    struct node* current = head;
    printf("Indices of all occurrences of %d: ", value);
    while (current != NULL) {
        if (current->data == value) {
            printf("%d ", index);
        }
        index++;
        current = current->next;
    }
    printf("\n");
}

// Function to reverse the sequence of values in the linked list
void reverse_list() {
    struct node *prev_node, *current_node, *next_node;
    current_node = head;
    prev_node = NULL;
    while (current_node != NULL) {
        next_node = current_node->next;
        current_node->next = prev_node;
        prev_node = current_node;
        current_node = next_node;
    }
    head = prev_node;
}
# get the column names and move the last column to the front
cols = list(df.columns)
cols = [cols[-1]] + cols[:-1]

# reindex the dataframe with the new column order
df = df.reindex(columns=cols)
The given code defines a function called moneyFormatter that takes a number num as an argument and returns a formatted string representing that number in USD currency format.

Here's a breakdown of the code:

let p = num.toFixed(2).split('.');: The toFixed method of the Number object is used to format the input number num as a string with two decimal places. Then, the split method is used to split this string at the decimal point, storing the resulting array in p.

The return statement uses string concatenation and several methods to format the string:

'$ ' is concatenated to the start of the string to indicate that the amount is in USD currency format.

(p[0].split('')[0]=== '-' ? '-' : '') checks if the number is negative or not by checking the first character of the integer part of the number. If it's negative, a minus sign is added to the string. If it's positive, an empty string is added.

p[0].split('').reverse().reduce(function (acc, num, i, orig) {... reverses the order of the digits in the integer part of the number using the split, reverse, and reduce methods.

num === '-' ? acc : num + (i && !(i % 3) ? ',' : '') + acc; checks if the current digit is a minus sign. If it is, it is ignored. Otherwise, it is added to the string along with a comma every three digits (except for the first digit) to represent the thousands separator.

. is concatenated to the formatted string.

p[1] is concatenated to the end of the formatted string to represent the decimal part of the number.

Overall, this function takes a number as input and returns a string formatted to represent that number in USD currency format with a thousands separator and two decimal places.





int a[]={1,2,3,4,5};
  bool res=binary_search(a,a+5,20);
  int ind=lower_bound(a,a+5,3)-a;
  int indi=upper_bound(a,a+5,3)-a;
  cout<<indi<<endl;
int a[]={1,2,3,4,5};
  bool res=binary_search(a,a+5,20);
  cout<<res<<endl;
#include <bits/stdc++.h>
using namespace std;
 
int main() {
	long long t;
	cin>>t;
	while(t--)
	{
	   long long n, q;
	   cin>>n>>q;
	   long long a[n];
	   long long sum1=0, sum2=0;
	   for(long long i=0;i<n;i++)
	   {
	      cin>>a[i];
	   }
	   long long int prefsum[n+1];
	   prefsum[0]=0;
	   for(int i=0;i<n;i++)
	   {
	       sum1+=a[i];
	       prefsum[i+1]=sum1;
	       
	   }
	   while(q--)
	   {
	      long long l,r,k;
	      cin>>l>>r>>k;
	      long long int p=prefsum[r]-prefsum[l-1];
	      sum2=prefsum[n]+((k*(r-l+1))-p);
	      if(sum2%2==1) cout<<"YES\n";
         else cout<<"NO\n";
	   }
	}
	return 0;
}
class Sample 
{int a;
	{
		System.out.println("Inside Non-static/Instance block");
		a=100;
	}
	Sample()
		{
			System.out.println("Inside Constructors"+  a);
			a = 2000;
			System.out.println("Hello World!"+a);
		}
	Sample(boolean x)
		{
			System.out.println("Inside Constru"+a);
			a=3000;
			System.out.println("Hello World!"+a);
		}

	public static void main(String[] args) 
	{
		System.out.println("Start");
		Sample s1 = new Sample();
		Sample s2 = new Sample(true);
		System.out.println("Stop");

	}
}
import java.util.Scanner;

public class Main{
  public static void main(String[] args) {
    int ans = sum2();
    System.out.println("Your Answer = "+ans);
    
  }

    static int sum2(){
        Scanner in = new Scanner(System.in);
        System.out.print("Enter Number 1 : ");
        int num1 = in.nextInt();
        System.out.print("Enter Number 2 : ");
        int num2 = in.nextInt();

        int sum = num1+num2;
        return sum;
    }
}    
 @Test

    public void testChangeProfileName (){
        // GIVEN

        String newName  = getRandomString();

        String currentPassword = "te$t$tudent";

        provideEmail("demo@class.com");

        providePassword();

        clickSubmitBtn();

 

        // WHEN

        openUserProfilePage();

        setName(newName);

        setCurrentPassword(currentPassword);

 

 

        // THEN

        Assert.assertTrue(getSuccessPopUp().isDisplayed());

}
https://user-images.githubusercontent.com/104761482/209774134-9e63bfed-d768-4455-a860-028305c85e17.png
    @BeforeSuite
    static void setupClass() {
        WebDriverManager.chromedriver().setup();
    }
    @BeforeMethod
    public static void launchBrowser() {
        driver = new ChromeDriver();

After the Chrome 111 update, you can no longer kick off a chromedriver instance unless you add an additional chrome option:
"--remote-allow-origins=*"

ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-notifications","--remote-allow-origins=*", "--incognito","--start-maximized");
driver = new ChromeDriver(options);

Below are the list of available and most commonly used arguments for ChromeOptions class

start-maximized: Opens Chrome in maximize mode
incognito: Opens Chrome in incognito mode
headless: Opens Chrome in headless mode
disable-extensions: Disables existing extensions on Chrome browser
disable-popup-blocking: Disables pop-ups displayed on Chrome browser
make-default-browser: Makes Chrome default browser
version: Prints chrome browser version
disable-infobars: Prevents Chrome from displaying the notification ‘Chrome is being controlled by automated software
  @BeforeMethod
  public static void launchBrowser() {
    ChromeOptions options = new ChromeOptions();
    options.addArguments("--disable-notifications", "--remote-allow-origins=*", "--incognito", "--start-maximized");
    driver = new ChromeDriver(options);
    driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
  }
https://user-images.githubusercontent.com/104761482/226163463-60878675-57ea-4cb4-b116-ffd6a541bdf8.png
[[https://user-images.githubusercontent.com/104761482/226163536-29b48154-2c7a-49f5-8ae7-fdd1f2e3c553.png ]]
import java.util.Scanner;

public class Main{
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    System.out.print("Enter Your Year : ");
    int n = in.nextInt();
    
    if(n%100==0){
      if(n%400==0){
        System.out.println("Its Leap/Century Year");
      }
      else{
        System.out.println("Not a Leap year");
      }
    }else if(n%4==0){
      System.out.println("Its a Leap Year");
    }
    else{
      System.out.println("Not a leap year");
    }
  } 
}
import java.util.Scanner;

public class Main{
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    System.out.println("Enter Your Number");
    int n = in.nextInt();
    int sum = 0;
    while(n>0){
      int lastdig = n%10;
       sum = sum+lastdig;
       n = n/10;
    }
    System.out.println(sum);
  } 
}
#next-button {
  background-image: url('path/to/image.jpg');
  background-size: cover;
  transition: background-position 0.2s ease-out;
}

#next-button:hover {
  background-position: 50% 50%;
}
class Solution {
public:
    vector<int> topKFrequent(vector<int>& nums, int k) {
        unordered_map<int, int> mp;
        for(int i=0;i<nums.size();i++)
        {
            mp[nums[i]]++;
        }
        priority_queue<pair<int,int>, vector<pair<int, int>>, greater<pair<int, int>>>minH;
        for(auto x:mp)
        {
            minH.push({x.second, x.first});
            if(minH.size()>k) minH.pop();
        }
        vector<int> ans;
        while(!minH.empty())
        {
            ans.push_back(minH.top().second);
            minH.pop();
        }
        return ans;
    }
};
class Solution {
public:
    vector<vector<int>> kClosest(vector<vector<int>>& points, int k) {
        int n=points.size();
        priority_queue<pair<int,pair<int, int>>> mxH;
        for(int i=0;i<n;i++)
        {
            int dis=pow(points[i][0],2)+pow(points[i][1],2);
            mxH.push({dis,{points[i][0], points[i][1]}});
            if(mxH.size()>k) mxH.pop();
        }
        vector<vector<int>> ans;
        while(!mxH.empty())
        {
            vector<int> temp;
            temp.push_back(mxH.top().second.first);
            temp.push_back(mxH.top().second.second);
            ans.push_back(temp);
            mxH.pop();
        }
        
        return ans;
    }
};
	// Set up  WebDriverManager for chrome driver
        WebDriverManager.chromedriver().setup();
        
        //Creating an object of ChromeDriver
        WebDriver driver = new ChromeDriver();
        
        //Launch the specified website in the browser
        driver.get("https://www.google.com");
class Biba
{{
	System.out.println("Hi");
}
Biba()
{
	System.out.println("Inside Constructors");
	
}
Biba(int a)
	{
		System.out.println("Inside Constructors 1");
		System.out.println(a);
	}
	public static void main(String[] args) 
	{
		System.out.println("Start");
		Biba s2 = new Biba();
		//Biba s3 = new Biba(45);
		System.out.println("Stop");

	}
}
<template id="custom_purchase_header_footer"               inherit_id="web.external_layout_striped">
<xpath expr="//div[1]" position="replace">
   <div t-attf-class="o_company_#{company.id}_layout header" t-att-style="report_header_style">
     <div class="o_background_header" style="position:absolute;">
       <div class="float-right">
            <h3 class="mt0 text-right" t-field="company.report_header"/>
       </div>
        <div class="header_content float-right">
            <div class="logo" style="">
          <img t-if="company.logo" style="max-width:260px;max-height:89px;"
                      t-att-src="image_data_uri(company.logo)"
                      class="float-left" alt="Logo"/>
           </div>
          </div>
             <div class="float-left">
               <div class="details">
                 <table class="table_partner" style="width:120%;">
                   <tr>
                   <td><b style="color:black;"> CLIENT Details:</b></td>
                   </tr>
                   <tr>
                     <td>
                       <b>
                           <span style="color:black;" t-if="company"
                                 t-esc="o.partner_id.name"/>
                       </b>
                         <br></br>
                       <t t-if="o.partner_id.street">
                           <span  t-esc="o.partner_id.street"/>
                           <br></br></t>
                       <t t-if="o.partner_id">
                           <span t-esc="o.partner_id.city"/>
                           <br></br>
                       </t>
                      </td>
                   </tr>
                 </table>
               </div>
             </div>
     </div>
     </div>
</xpath>
<xpath expr="//div[hasclass('text-center')]" position="replace">
 <center>
     <h5 style="color:black;"><b><t t-esc="o.company_id.name"/></b></h5>
     <h6 style="color:black;">Your company details</h6>
     Page: <span class="page"/> / <span class="topage"/>
 </center>
</xpath>
 </template>
class Solution {
public:
    int c=0;
    
    void bfs(vector<vector<int>>& isConnected, vector<bool> &v, int i,  unordered_map<int, set<int>> &m)
    {
        queue<int> q;
        q.push(i);
        v[i]=true;
        while(!q.empty())
        {
            int p=q.front();
            q.pop();
            
            for(auto x:m[p])
            {
                if(!v[x])
                {
                    q.push(x);
                    v[x]=true;
                }
            }
        }
    }
    void makeadj(vector<vector<int>> &isConnected, unordered_map<int, set<int>> &m)
    {
        int n=isConnected.size();
        for(int i=0;i<n;i++)
        {
            for(int j=0;j<n;j++)
            {
                if(isConnected[i][j]==1)
                {
                    m[i+1].insert(j+1);
                    m[j+1].insert(i+1);
                }
            }
        }
    }
    
    int findCircleNum(vector<vector<int>>& isConnected) {
        int n=isConnected.size();
        vector<bool> v(n+1,false);
        unordered_map<int, set<int>> m;
        makeadj(isConnected, m);
        for(int i=1;i<=n;i++)
        {
            if(!v[i])
            {
                c++;
                bfs(isConnected, v, i, m);
            }
        }
        return c;
    }
};
HKEY_CLASSES_ROOT\Directory\shell\
class Solution {
public:
    bool canVisitAllRooms(vector<vector<int>>& rooms) {
        int n=rooms.size();
        vector<bool> visited(n, 0);
        queue<int>q;
        q.push(0);
        visited[0]=1;
        while(!q.empty())
        {
            int p=q.front();
            q.pop();
            
            for(auto x:rooms[p])
            {
                if(!visited[x])
                {
                    q.push(x);
                    visited[x]=1;
                }
            }
        }
        bool g=true;
        for(auto x:visited)
        {
            if(!x) g=false;
        }
        return g;
    }
};
class Solution {
public:
    vector<int> findSmallestSetOfVertices(int n, vector<vector<int>>& edges) {
        vector<bool> v(n,false);
        for(int i=0;i<edges.size();i++)
        {
            v[edges[i][1]]=true;
        }
        vector<int> ans;
        for(int i=0;i<n;i++)
        {
            if(!v[i]) ans.push_back(i);
        }
        return ans;
    }
};
const names = ['david', 'gary', 'shaun', 'stephen'];


function getRandomIndex(array){
  const index = Math.floor(Math.random() * array.length);
  let randomNumber = array[index];
  return randomNumber;
}

getRandomIndex(names)
const deck = ['clubs','spades', 'hearts', 'diamonds']
for(let [index, item] of deck.entries()){
    console.log(index)
}
adb -s 127.0.0.1:58526 install '.\Brazzers AIO v2.1.4.apk'
pskill -t ASC.exe
class Solution {
public:
    vector<vector<int>> ans;
    
    void dfs(int curr, int dest, vector<vector<int>>& graph, vector<int> &path)
    {
        path.push_back(curr);
        if(curr==dest)
        {
            ans.push_back(path);
        }
        else
        {
            for(auto x:graph[curr])
            {
                dfs(x, dest, graph, path);
            }
        }
        path.pop_back();
    }
    
    vector<vector<int>> allPathsSourceTarget(vector<vector<int>>& graph) {
        int n=graph.size()-1;
        
        vector<int> path;
        dfs(0, n, graph, path);
        return ans;
    }
};
class Solution {
public:
    int findJudge(int n, vector<vector<int>>& trust) {
        vector<int> v2(n+1,0);
        vector<int> v3(n+1,0);
        for(int i=0;i<trust.size();i++)
        {
            int u=trust[i][0];
            int v=trust[i][1];
            v2[v]++;
            v3[u]++;
        }
        int ans=-1;
       for(int i=1;i<=n;i++)
       {
           if(v2[i]==n-1&&v3[i]==0) ans=i;
       }
        return ans;
    }
};
import java.util.Scanner;

public class Main{
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    String name = in.next();
    int size = name.length();
    String word = "";
    for (int i = 0; i < name.length(); i++) {
      char rev = name.charAt(size-i-1); // Index is Zero..... size = 4, i=0, -1 == 3;
      word = word + rev;
    }
    System.out.println(word);
  } 
}
adb -s 127.0.0.1:58526 install '.\Brazzers AIO v2.1.4.apk'
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class WebDriverTest {

    public static void main(String args[]) {

        //Setting system properties of ChromeDriver in MAC
        System.setProperty("webdriver.chrome.driver","//Users//Learning/Selenium//chromedriver");
        //Setting system properties of ChromeDriver in Windows
        System.setProperty("webdriver.chrome.driver","C://Learning/Selenium//chromedriver");

        //Creating an object of ChromeDriver
        WebDriver driver = new ChromeDriver();

        //Launch the specified website in the browser
        driver.get("https://www.google.com");

        //Maximise the browser window
        driver.manage().window().maximize();

        //Close the browser
        driver.quit();
    }
}
import java.util.Scanner;
//To find Armstrong Number between two given number.
public class Main{
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    //input
    int sum = 0;
    System.out.println("Enter Your Number");
    int n = in.nextInt();
    int input = n;

    while(n>0){
     int lastdig = n%10; //To get the last Dig;
      sum = sum + lastdig*lastdig*lastdig;
      n = n/10;   //removes last dig from number;
    }
    if(input==sum){
      System.out.println("Number is Armstrong Number :" + input + " : "+ sum);
    }else{
      System.out.println("Number is Not Armstrong Number :" + input + " : "+ sum); 
    }
  } 
}
import java.util.Scanner;
//To find out whether the given String is Palindrome or not.  121 , 1331 
public class Main{
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    //input
    int sum = 0;
    int lastdig = 0;
    System.out.println("Enter Your Number");
    int n = in.nextInt();
    int input = n;

    while(n>0){
      lastdig = n%10; //To get the last Dig;
      sum = sum*10+lastdig;
      n = n/10;   //removes last dig from number;
    }
    if(input == sum){
      System.out.println("Number is Palindrome : "+ input + " : " + sum);
    }else{
      System.out.println("Number is Not Palindrome : " + input +" : "+ sum);
    }
    
  } 
}
Install
adb -s 10.200.241.215:5555 install test.apk

Delete
adb -s 10.200.241.215:5555 uninstall apk package name
import java.util.Scanner;
//To calculate Fibonacci Series up to n numbers.
public class Main{
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    //input
    System.out.print("Enter Your Number :");
    int n = in.nextInt();
    // 0 1 1 2 3 5 8 13

    int a = 0;
    int b = 1;
    int count = 2;
    while(count<n){
      int temp = b;
      b = a+b;
      a = temp;
      count++;
    }
    System.out.println(b);
  } 
}
star

Mon Mar 20 2023 13:09:08 GMT+0000 (Coordinated Universal Time)

@shru_09 #c

star

Mon Mar 20 2023 13:04:48 GMT+0000 (Coordinated Universal Time)

@chicovirabrikin

star

Mon Mar 20 2023 11:42:04 GMT+0000 (Coordinated Universal Time)

@artemka

star

Mon Mar 20 2023 06:37:33 GMT+0000 (Coordinated Universal Time)

@yc_lan

star

Mon Mar 20 2023 06:36:36 GMT+0000 (Coordinated Universal Time)

@yc_lan

star

Mon Mar 20 2023 02:34:26 GMT+0000 (Coordinated Universal Time)

@rittam #html

star

Mon Mar 20 2023 02:33:16 GMT+0000 (Coordinated Universal Time)

@rittam #html

star

Sun Mar 19 2023 23:35:21 GMT+0000 (Coordinated Universal Time) https://github.com/simpleanalytics/roadmap/issues/645

@leninzapata #javascript

star

Sun Mar 19 2023 22:50:39 GMT+0000 (Coordinated Universal Time)

@ronin_78 #c

star

Sun Mar 19 2023 22:06:55 GMT+0000 (Coordinated Universal Time)

@sfull #python

star

Sun Mar 19 2023 21:21:40 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/chat

@bhushan03

star

Sun Mar 19 2023 18:59:52 GMT+0000 (Coordinated Universal Time)

@solve_karbe12 #c

star

Sun Mar 19 2023 18:52:51 GMT+0000 (Coordinated Universal Time)

@solve_karbe12 #c

star

Sun Mar 19 2023 17:53:23 GMT+0000 (Coordinated Universal Time) https://codeforces.com/contest/1807/problem/D

@Ranjan_kumar #c++

star

Sun Mar 19 2023 17:38:13 GMT+0000 (Coordinated Universal Time)

@Shankar #java #corejava #constructors

star

Sun Mar 19 2023 17:28:20 GMT+0000 (Coordinated Universal Time)

@irfan199927 #java

star

Sun Mar 19 2023 16:34:42 GMT+0000 (Coordinated Universal Time)

@Batmansbitch79

star

Sun Mar 19 2023 16:30:33 GMT+0000 (Coordinated Universal Time)

@Batmansbitch79

star

Sun Mar 19 2023 16:24:31 GMT+0000 (Coordinated Universal Time)

@Batmansbitch79

star

Sun Mar 19 2023 16:23:31 GMT+0000 (Coordinated Universal Time)

@Batmansbitch79

star

Sun Mar 19 2023 16:22:06 GMT+0000 (Coordinated Universal Time)

@Batmansbitch79

star

Sun Mar 19 2023 16:16:47 GMT+0000 (Coordinated Universal Time)

@Batmansbitch79

star

Sun Mar 19 2023 15:47:43 GMT+0000 (Coordinated Universal Time)

@irfan199927 #java

star

Sun Mar 19 2023 15:34:33 GMT+0000 (Coordinated Universal Time)

@irfan199927 #java

star

Sun Mar 19 2023 15:18:03 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/chat/ad15a8de-b01f-4e7e-b7f7-e077de6a91c6

@tygogakuvi

star

Sun Mar 19 2023 13:52:13 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/top-k-frequent-elements/

@Ranjan_kumar #c++

star

Sun Mar 19 2023 13:39:41 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/k-closest-points-to-origin/

@Ranjan_kumar #c++

star

Sun Mar 19 2023 13:34:05 GMT+0000 (Coordinated Universal Time)

@vipuloswal

star

Sun Mar 19 2023 11:44:16 GMT+0000 (Coordinated Universal Time)

@Shankar #java #corejava

star

Sun Mar 19 2023 11:36:08 GMT+0000 (Coordinated Universal Time)

@Shankar #java #corejava

star

Sun Mar 19 2023 11:33:39 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/33403453/creating-methods-and-classes-java

@Shankar #java

star

Sun Mar 19 2023 10:58:15 GMT+0000 (Coordinated Universal Time) https://www.cybrosys.com/blog/how-to-customize-header-footer-for-all-reports-in-odoo-15

@abd_elhamed

star

Sun Mar 19 2023 10:56:58 GMT+0000 (Coordinated Universal Time) https://www.cybrosys.com/blog/how-to-customize-header-footer-for-all-reports-in-odoo-15

@abd_elhamed

star

Sun Mar 19 2023 10:27:56 GMT+0000 (Coordinated Universal Time) https://www.amazon.in/

@rizwan

star

Sun Mar 19 2023 09:43:36 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/number-of-provinces/

@Ranjan_kumar #c++

star

Sun Mar 19 2023 09:38:12 GMT+0000 (Coordinated Universal Time) https://pureinfotech.com/delete-large-folder-fast-windows-10/

@sstanisic

star

Sun Mar 19 2023 08:02:15 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/keys-and-rooms/

@Ranjan_kumar #c++

star

Sun Mar 19 2023 07:52:45 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/minimum-number-of-vertices-to-reach-all-nodes/

@Ranjan_kumar #c++

star

Sun Mar 19 2023 07:48:30 GMT+0000 (Coordinated Universal Time)

@davidmchale #index #random

star

Sun Mar 19 2023 07:42:05 GMT+0000 (Coordinated Universal Time)

@davidmchale #loop #index

star

Sun Mar 19 2023 07:21:15 GMT+0000 (Coordinated Universal Time) https://codespace.app/s/Jrb2kqjdWL

@sstanisic

star

Sun Mar 19 2023 07:17:52 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/all-paths-from-source-to-target/

@Ranjan_kumar #c++

star

Sun Mar 19 2023 06:20:48 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/find-the-town-judge/

@Ranjan_kumar #c++

star

Sun Mar 19 2023 05:47:00 GMT+0000 (Coordinated Universal Time)

@irfan199927 #java

star

Sun Mar 19 2023 05:41:26 GMT+0000 (Coordinated Universal Time) https://codespace.app/s/KQe1wp0bJY

@sstanisic

star

Sun Mar 19 2023 05:35:29 GMT+0000 (Coordinated Universal Time)

@vipuloswal

star

Sun Mar 19 2023 04:56:44 GMT+0000 (Coordinated Universal Time)

@irfan199927 #java

star

Sun Mar 19 2023 04:25:47 GMT+0000 (Coordinated Universal Time)

@irfan199927 #java

star

Sun Mar 19 2023 04:11:36 GMT+0000 (Coordinated Universal Time) https://debugah.com/solved-adb-performing-push-install-adb-error-failed-to-get-feature-set-more-than-one-19283/

@sstanisic

star

Sun Mar 19 2023 03:53:49 GMT+0000 (Coordinated Universal Time)

@irfan199927 #java

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension