Skip to content

Instantly share code, notes, and snippets.

View prateekjadhwani's full-sized avatar

Prateek Jadhwani prateekjadhwani

View GitHub Profile
@prateekjadhwani
prateekjadhwani / main1.js
Last active October 21, 2020 09:46
WebAuth Using FaceID/TouchID
// https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential
// isUserVerifyingPlatformAuthenticatorAvailable() tells you if you can use a platform to authenticate the user
PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()
.then((isAvailable) => {
// Do Stuff with TouchID / Face ID
})
.catch(e => {
// Doesnt support, bad :(
});
email-labels .email-labels {
padding: 20px;
}
email-labels .email-labels__title {
color: #b8bbc0;
}
email-label {
display: block;
padding: 10px 0;
}
email-label .email-label__container {
display: flex;
}
email-label .email-label__name {
mail-information-card {
display: block;
border-bottom: 2px solid #f0f2f3;
cursor: pointer;
}
mail-information-card .mail-information-card__sender {
display: flex;
}
green-button button {
background: #02C385;
display: block;
width: 100%;
height: 50px;
color: white;
margin: 8px;
border: none;
font-size: 13px;
font-weight: 700;
@prateekjadhwani
prateekjadhwani / Main.luna
Last active February 24, 2018 12:07
CVS to JSON in luna
import Std.Base
«18»def func1 fileName:
«19»path = "data" . addPathSegment fileName
«20»file = readFile path
«21»textLines = file.lines
textLines
«0»def getDataFromFIle fileName:
«22»textLines = func1 fileName

LMNTL Simplifier

It removes all the distractions from LMNTL website and shows only the main chapter that you are reading.

Installation

####Step 1 Create a new bookmark in your browser with any name and with any url.

####Step 2

@prateekjadhwani
prateekjadhwani / README.md
Last active April 20, 2016 17:50
WuxiaWorld Simplify

#WuxiaWorld Simplyfy

It removes all the distractions from wuxiaworld and shows only the main chapter that you are reading.

Installation

####Step 1 Create a new bookmark in your browser with any name and with any url.

####Step 2

@prateekjadhwani
prateekjadhwani / README.md
Last active April 28, 2016 14:44
SVG2CSS : output files