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
| "use client"; | |
| import { useEffect, useRef, useState } from "react"; | |
| const DynamicIframe = ({ htmlContent }: { htmlContent: string }) => { | |
| const iframeRef = useRef<HTMLIFrameElement>(null); | |
| const [height, setHeight] = useState("100px"); // Default height | |
| useEffect(() => { | |
| const handleMessage = (event: MessageEvent) => { | |
| if (event.data.height) { |
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 type { ImageLoaderProps } from 'next/image' | |
| const imgDomain = process.env.NEXT_PUBLIC_IMG_DOMAIN ?? '' | |
| interface DirectusImageProps { | |
| fit?: 'cover' | 'contain' | 'inside' | 'outside' | |
| } | |
| export default function directusImageLoader({ | |
| src: imageID, |
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
| const checkboxes = document.querySelectorAll('input[type=checkbox]'); | |
| let index = 0; | |
| (function uncheckNext() { if (index >= checkboxes.length) return; try { if (checkboxes[index].checked) { checkboxes[index].click(); console.log(`Unchecked checkbox at index ${index}`); } else { console.log(`Checkbox at index ${index} is already unchecked`); } index++; setTimeout(uncheckNext, 1000); } catch (error) { console.error('Error while unchecking checkbox:', error); setTimeout(uncheckNext, 5000); } })(); |
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
| "use strict"; | |
| const axios = require("axios"); | |
| const https = require("https"); | |
| async function uploadFileToPresignedUrl(presignedUrl, fileUrl) { | |
| const response = await axios({ | |
| method: "get", | |
| url: fileUrl, | |
| responseType: "stream", | |
| httpsAgent: new https.Agent({ keepAlive: true }), |
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
| version: '3' | |
| services: | |
| app: | |
| build: | |
| context: . | |
| dockerfile: nodejs/Dockerfile | |
| args: | |
| # Update 'VARIANT' to pick an LTS version of Node.js: 16, 14, 12. | |
| # Append -bullseye or -buster to pin to an OS version. |
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
| { | |
| "$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
| "basics": { | |
| "name": "Shyam Sunder Verma", | |
| "label": "Lead & Manager, Full Stack Team", | |
| "image": "", | |
| "email": "[email protected]", | |
| "phone": "9982231113", | |
| "url": "", | |
| "summary": "Shyam is passionate to problem solving, he eagerly learns and adapt to solve problems. \nHe leads his team by example and firmly believes in empathy & innovation driven teams.\nHe represented Ready Bytes in the delegation of NASSCOM’s first India-US Startup Konnect. (2015)\n\nShyam founded Ready Bytes in 2009. In last 12 years it have built more than 10+ web/mobile products. \n● PayPlans: Worlds #1 Joomla Payment Component (2009-2017, Sold)\n● Products Review Analysis & Recommendation Engine ReadyViews (2015-2018 Shutdown)\n● Exchange Rate analysis platform ExchangeRateIQ (2016-2018, Sold)\n● 15+ mobile apps in last years (2015-Present)\n\nReady Bytes have worked for clients as well |
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
| #!/bin/bash | |
| parent_branch="${1:-master}" | |
| # Check if the current branch has any uncommitted changes | |
| if [[ $(git status --porcelain) ]]; then | |
| echo "Error: The current branch has uncommitted changes. Please commit or stash them before running this script." | |
| exit 1 | |
| fi |
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
| #!/bin/bash | |
| parent_branch="${1:-master}" | |
| # Switch to the root directory of the Git repository | |
| cd "$(git rev-parse --show-toplevel)" | |
| # Check if there are any uncommitted changes | |
| if [[ -n $(git status -s) ]]; then | |
| echo "There are uncommitted changes in the branch. Please commit or stash them before running this script." |
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
| # for checking if it belongs ot our domain list | |
| { | |
| email [email protected] | |
| on_demand_tls { | |
| ask https://api.example.test/check-domain | |
| interval 2m | |
| burst 5 | |
| } | |
| } |
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
| <script> | |
| let notLoadedFor = 1; | |
| let loadingElementId = 'loading-counter'; | |
| function reloadVueApp() { | |
| var path = window.location.href + "?reset=true&ver=" + Math.random().toString(36).substring(2); | |
| window.location.href = path; | |
| }; | |
| const interval = setInterval(function() { | |
| let el = document.getElementById(loadingElementId); |
NewerOlder