Skip to content

Instantly share code, notes, and snippets.

View Enigma10's full-sized avatar
🎯
Focusing

Vikash Saini Enigma10

🎯
Focusing
View GitHub Profile
@Enigma10
Enigma10 / pollingtime.js
Created October 8, 2022 12:45
Polling Time
import { useEffect, useState } from "react";
import "./styles.css";
const TOTALTIME = 15000;
export default function App() {
const [loading, setLoading] = useState(true);
const [startDate, setStartDate] = useState(null);
function fetchApi() {
return "pending";
@Enigma10
Enigma10 / Regax_1.py
Last active May 11, 2021 04:50
Regex cheat sheet in python. Regular expressions allow you to locate and change strings in very powerful ways. They work in almost exactly the same way in every programming language as well.
# Regular expressions allow you to locate and change
# strings in very powerful ways.
# They work in almost exactly the same way in every
# programming language as well.
# Regular Expressions (Regex) are used to
# 1. Search for a specific string in a large amount of data
# 2. Verify that a string has the proper format (Email, Phone #)
# 3. Find a string and replace it with another string
# 4. Format data into the proper form for importing for example