Skip to content

Instantly share code, notes, and snippets.

View rohitsharmaj7's full-sized avatar
🎯
Focusing

eagle.dev rohitsharmaj7

🎯
Focusing
View GitHub Profile
@rohitsharmaj7
rohitsharmaj7 / InstaAutomation.js
Created October 18, 2019 09:55
A script to like the feeds automatically.
var scroll = setInterval(function(){
window.scrollBy(0,500);
var list = document.querySelectorAll('[aria-label="Like"]');
for(i=0;i<list.length;i++)
{
list[i].click();
}
},2000);
@rohitsharmaj7
rohitsharmaj7 / modern_js.md
Created December 30, 2019 10:58 — forked from gaearon/modern_js.md
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
Key Sublime Text 3.2.1 Build 3207
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
First of all let's clear the things we have used in this conversion
1. Why toString(16) only?
2. Role of 1<<24
3. Role of Slice function
import { useState } from "react";
const LoginDynamic = () => {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const validate = () => {
// Error object
const errors = {};
import React from "react";
import "./login.css";
const Login = () => {
return (
<div className="container-fluid">
<div className="row min-vh-100 main-container">
<div className="col-12 col-md-7 p-5 su_bg d-flex flex-column justify-content-between">
<div>SearchUnify</div>
<div>