This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <meta http-equiv=Content-Type content="text/html; charset=UTF-8"> | |
| <style type="text/css"> | |
| <!-- | |
| span.cls_002 { | |
| font-family: Times, serif; | |
| font-size: 13.1px; | |
| color: rgb(0, 0, 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const fetchFormField = ( | |
| fieldItem, | |
| formValues = {}, | |
| apiSuggestions = {}, | |
| handleFetchSuggestions, | |
| ) => { | |
| switch (fieldItem.inputType) { | |
| case 'autocomplete': | |
| return ( | |
| <div className="form-autocomplete"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form onSubmit={handleSubmit}> | |
| {sections.map(subsectionItem => { | |
| const { fields: formFields = [] } = subsectionItem; | |
| if (formValues[subsectionItem.parent.inputKey] === subsectionItem.parent.inputValue) { | |
| // if parent is null OR parent's value is the desried value, then only show this section | |
| return ( | |
| <div | |
| key={subsectionItem.name} | |
| className="subsection-wrapper" | |
| > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "form": [ | |
| { | |
| "name": "USER DETAILS", | |
| "id": "user_details", | |
| "sections": [ | |
| { | |
| "name": "User Intimation", | |
| "fields": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let axios = require('axios'); | |
| let querystring = require('querystring'); | |
| const email = '<email-id>'; | |
| const vehicles = { | |
| '<vehicle-no>': { | |
| fuel: <amount>, | |
| fuelType: '<petrol/diesel>' | |
| } | |
| }; | |
| const refuelDays = <no-of-reciepts-per-month>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Node { | |
| constructor(key, value, next=null, prev=null) { | |
| this.key = key; | |
| this.value = value; | |
| this.next = next; | |
| this.prev = prev; | |
| } | |
| } | |
| class LRU { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Node { | |
| constructor(data, left, right) { | |
| this.data = data; | |
| this.left = left; | |
| this.right = right; | |
| } | |
| } | |
| class BST { | |
| constructor() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| .loader-wrapper { | |
| text-align: center; | |
| font-family: 'Open Sans', sans-serif; | |
| } | |
| .loader-icon-wrapper { | |
| margin-top: 10vh; | |
| display: flex; | |
| flex-direction: column; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
| # Initialization code that may require console input (password prompts, [y/n] | |
| # confirmations, etc.) must go above this block; everything else may go below. | |
| if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
| source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
| fi | |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" |