Skip to content

Instantly share code, notes, and snippets.

View abhisheks-12's full-sized avatar
💭
sleeping

Abhishek Sankpal abhisheks-12

💭
sleeping
View GitHub Profile
function checkSimilar(str1, str2) {
if (str1.length === str2.length) {
str1.toLowerCase();
str2.toLowerCase();
const tempStr1 = str1.split("").sort();
const tempStr2 = str2.split("").sort();
// console.log(tempStr1);
for (let i = 0; i < tempStr2.length; i++) {
if (tempStr1[i] !== tempStr2[i]) {
return false;
import java.io.*;
import java.util.*;
// Bhava nahi aathavt java try kar
public class Main {
public static void main(String[] args) throws Exception {
// write your code here
Scanner scn = new Scanner(System.in);
int n1 = scn.nextInt();
function calsum(arr) {
const tempArr = [];
for (let i = 0; i < arr.length; i++) {
if (i === 0) {
tempArr.push(arr[0]);
}
if (i === 1) {
const sub = arr[1] - arr[0];
console.log(sub);
import calendar
from collections import Counter
# shaikh gandhnar aahe kuthe tari jara try karun bgh :)
def using_calender(year,month,date):
# if (year % 4 == 0) and (year % 100 != 0):
# year = 2
# print(year)
# elif (year % 4 == 0) and (year % 100 == 0) and (year % 400 == 0):
# year = 2
import "./App.css";
import { useState } from "react";
function App() {
const [todo, setTodo] = useState("");
const [allTodo, setAllTodo] = useState([]);
const [editId, setEditId] = useState(0);
const handelSubmit = (e) => {
e.preventDefault();
// function longestPrefixSuffix(s) {
// const n = s.length;
// if (n < 2) {
// return 0;
// }
// const len = 0;
// const i = (n + 1) / 2;
@abhisheks-12
abhisheks-12 / script.js
Created August 8, 2021 11:49
playing with oop js
class UserName {
greet = 'Hello';
constructor(name, age, birthYear, weight) {
this.name = name;
this.age = age;
this.birthYear = birthYear;
this.weight = weight;
// calling methods here
@abhisheks-12
abhisheks-12 / parcel.txt
Created August 8, 2021 05:04
Getting error while installing parcel
npm WARN deprecated parcel-bundler@1.12.5: Parcel v1 is no longer maintained. Please migrate to v2, which is published under the 'parcel' package. See https://v2.parceljs.org/getting-started/migration
for details.
npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated request@2.88.2: reques
@abhisheks-12
abhisheks-12 / README-Template.md
Created August 2, 2021 13:13 — forked from DomPizzie/README-Template.md
A simple README.md template

Project Title

Simple overview of use/purpose.

Description

An in-depth paragraph about your project and overview of use.

Getting Started