Skip to content

Instantly share code, notes, and snippets.

View 5aurabh's full-sized avatar
🎯
Focusing

saurabh nanda 5aurabh

🎯
Focusing
View GitHub Profile
@5aurabh
5aurabh / calculate_face_scan_wellness_index.js
Created November 1, 2025 07:10
face_scan_score_calculation
const calculateWellnessIndex = (results: VitalResults): number => {
let wellnessIndex = 0;
const ranges: HealthRanges = {
'Pulse Rate': { low: 60, normal: [60, 100], high: 100, monitor: 120 },
'Blood Oxygen': { low: 95, normal: [95, 100], high: 100, monitor: 100 },
'Blood Pressure': {
systolic: { low: 90, normal: [90, 120], high: 120, monitor: 140 },
diastolic: { low: 60, normal: [60, 80], high: 80, monitor: 90 }
},
@5aurabh
5aurabh / closePosition.js
Last active March 2, 2025 14:03
clsoePosition example for whirlpool-sdk
const { web3, splToken, orca, orcaCommon, Decimal, SOL, USDC } = require('./commonImports');
const utils = require('./utils');
const {
connection,
ctx,
client,
whirlpoolPublicKey,
walletPublicKey
var tempArray = [
{
"id": 50883374,
"userID": 277859,
"name": "Umakant Sharma",
"status": 2,
"exp": {},
"currentLocation": "",
"preferredLocation": null,
"date": "2018-01-07T20:06:17.000Z",
@import '../../theme/colors.css';
.inputFields{
width: 90%;
max-width: none;
height: 30px;
border:none;
padding-left: 20px;
margin-top: -5px;
}
.inputHolder{
@5aurabh
5aurabh / test.js
Created December 27, 2017 08:05
Example - UnhandledPromiseRejectionWarning
function p1 (){
return new Promise(function(resolve, reject){
resolve({message: 'p1 resolved'});
})
}
function test(){
let unresolvePromise = Promise.reject({message: 'meant to be rejected'});
unresolvePromise = p1();
return unresolvePromise.then(function(data){
<!DOCTYPE html>
<html>
<head>
<title>PressPlay TV</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/grid.css">
<link rel="stylesheet" href="css/main.css">