Skip to content

Instantly share code, notes, and snippets.

View yogeshgosavi's full-sized avatar
🤓
Learning New Stuff

YOGESH GOSAVI yogeshgosavi

🤓
Learning New Stuff
View GitHub Profile
@yogeshgosavi
yogeshgosavi / `IRCTC-24to12Hour-TimeConverter.js
Created April 29, 2025 06:29
Converts 24-hour time format (e.g., "20:45") in `<strong>` elements on the IRCTC booking site to 12-hour format with AM/PM (e.g., "8:45 PM"). Injectable via browser console, with dynamic updates and robust parsing.
(function() {
function convertTo12HourFormat(timeString) {
// Clean the time string (e.g., "20:45" or "20:45:00")
const cleanedTime = timeString.trim().replace(/[^0-9:]/g, ''); // Keep only numbers and colons
const timeParts = cleanedTime.split(':');
const hours = parseInt(timeParts[0], 10);
const minutes = parseInt(timeParts[1], 10) || 0; // Fallback to 0 if minutes invalid
// Log for debugging
console.log('Parsed time:', { timeString, cleanedTime, hours, minutes });
[
{
"author": "YoG",
"collections": "clouds",
"copyright": "Personal Use",
"downloadable": true,
"name": "Heaven Clouds Lavender Rose",
"url": "https://github.com/yogeshgosavi/yogpapers/raw/master/walls/wall705.jpg"
},
{
void main() {
var myname='YoG';
int myNumber = 123;
String myString = 'Hello';
double myDouble = 10.0;
bool myBrain = true;
int MyLaterToDeclareNumber;
@yogeshgosavi
yogeshgosavi / Privacy Policy.md
Created September 21, 2020 09:38
Joy Walls Privacy Policy

Privacy Policy

YoG built the Joy Walls ツ app as a Commercial app. This SERVICE is provided by YoG and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Joy Walls ツ unless otherwise defined in this Privacy Policy.

Git command for nooob
#install git on command line
sudo apt-get install git
#configure terminal
git config --global user.name "Your Name Here"
git config --global user.email "[email protected]"
@yogeshgosavi
yogeshgosavi / AndroidManifest.xml
Last active April 21, 2019 06:05
Floating App for Android using KOTLIN optimised for newer android versions too
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xxx">
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<application
...
<service android:name=".FloatingAppService"/>
</application>