Skip to content

Instantly share code, notes, and snippets.

let s = this.state.value;
console.log("value of S",s);
//for not allowing conscutive decimal in row
if (e.target.value == "." && s.charAt(s.length - 1) == ".") {
this.setState({
value: s,
});
} //end of if
@KMJ-007
KMJ-007 / style.css
Created June 4, 2022 16:58
scrappy needs little makover
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500&display=swap');
@font-face {
font-family: 'HK Grotesk';
src: url("https://cloud-9yfp7521y.vercel.app/0hkgrotesk-regular-webfont.woff");
}
@font-face {
font-family: 'HK Grotesk Bold';
src: url("https://cloud-9yfp7521y.vercel.app/1hkgrotesk-bold-webfont.woff");
@KMJ-007
KMJ-007 / jquerySnippet.js
Created July 2, 2022 12:59
Load jQuery into your current page by copying and pasting the following code into your Chrome Console.
var jqry = document.createElement('script');
jqry.src = "https://code.jquery.com/jquery-3.3.1.min.js";
document.getElementsByTagName('head')[0].appendChild(jqry);
jQuery.noConflict();

Let me in peace Twitter

The basic idea is, that the noise is getting more on the twitter, information is getting overload, there need so be some kind of minimalisame, or essetinalisam, on linkedin everybody is getting job, and on the twitter everybody is starting startup or talking about it, or sharing unneccsery gyan. it is good to some level, but after some time it becomes headache or toxic, so there needs to be something done about this thing, like on twitter all is sharing how to get rich by doing this or that, writing thread, and all sorts of things, if all are teaching, then who is learning and doing in real life, so let me in peace, i will not get rich by reading your copy paste content from internet, i will be happy to get rich by doing some real life work, by adding value to other peoples life, shut the fuck up and start doing work, it's easier to say things then doing things, and there are threadbois, i know it is not easy job, also, but you have to stop reading that shit and start doing shit in re

import java.nio.charset.StandardCharsets;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.Security;
import java.security.spec.PKCS8EncodedKeySpec;
import _sodium, { base64_variants } from 'libsodium-wrappers';
import { Request, Response, NextFunction } from "express";
const axios = require('axios').default;
const { config } = require('../../config/config');
import { Subscribers } from '../db/models/Subscribers.model';
import key from '../../config/key';
export const createKeyPair = async () => {
await _sodium.ready;
openapi: 3.0.0
info:
title: Registry APIs
description: API Spec for the Registry Infrastructure
version: 0.2.0
license:
name: CC-BY-ND
url: 'https://github.com/beckn/protocol-specifications/blob/master/LICENSE.md'
paths:
/subscribe:
// Schema for Seller on records, and things we will need, and making api for that
// api should be flexible, like in this case they are going to update the catalog after some time, so have to think about also
// basic data
export const SOR_profile = {
SOR_id: "",
SOR_descriptor: {
name: "", // shop name / brand name
import React, { useMemo, useState } from 'react';
import {Checkbox, FormControl, FormHelperText, InputAdornment, InputLabel, ListItemText, ListSubheader, MenuItem, OutlinedInput, Select, TextField} from '@mui/material'
import {ControlledComponent} from '.';
import SearchIcon from "@mui/icons-material/Search";
import CancelSharpIcon from '@mui/icons-material/CancelSharp';
const MultipleSelectControlled = React.forwardRef((props, ref) => (
<ControlledComponent ref={ref} Component={SelectImpl} {...props} />
))
import React,{useState} from 'react'
import { Link as RouterLink, useNavigate } from 'react-router-dom';
// @mui
import { useTheme } from '@mui/material/styles';
import {
Box,
Tab,
Tabs,
Card,
Table,