Skip to content

Instantly share code, notes, and snippets.

View Neptune998's full-sized avatar
🎯
Focusing

Gopesh Yadav Neptune998

🎯
Focusing
View GitHub Profile
@Neptune998
Neptune998 / pom.xml
Created April 15, 2022 09:00
pom.xml dependencies for maven project.
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.SpiceJet</groupId>
<artifactId>SpiceJetTicketBooking</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
print("Hello")
# Main function
def main():
print("I am Neptune")
# Using the main
if __name__=="__main__":
main()
@Neptune998
Neptune998 / String Reversal Using String Builder Class
Created December 12, 2021 07:31
String Reversal Using String Builder Class
package JavaCoding;
import java.lang.*;
import java.io.*;
import java.util.*;
//ReverseString using StringBuilder Class
public class ReverseStrUsingStringBuilder {
public static void main(String[] args)
@Neptune998
Neptune998 / String Reverse Using CharAt Method
Created December 12, 2021 07:06
String Reversal Using CharAt Method in Java.
import java.io.*;
import java.util.Scanner;
//java program to reverse a word
class ReverseString {
public static void main(String[] args) {
String oriString = "NeptuneWorld";
String revString = "";
char ch;
package TestAutomation.TestRunner;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
//Cucumber Runner class
@RunWith(Cucumber.class)
@Neptune998
Neptune998 / SpiceJetStepDef.java
Created August 28, 2021 14:18
Java code or StepDefination.
package TestAutomation.StepDef;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
@Neptune998
Neptune998 / SpiceJetTicketBooking.feature
Last active August 28, 2021 14:25
SpiceJet Ticket Booking
@Smoke
Feature: Book Ticket
I want to book Ticket in Spice Jet
@Test1
Scenario: Book Ticket from Delhi to Bengaluru
Given I Open URL "https://www.spicejet.com/" and launch driver
When I search ticket from "Delhi" to "Bengaluru" Depart on "10-April-2021" return on "11-June-2021"
Then I close driver
# Libraries import
import speech_recognition as sr
import moviepy.editor as mp
# It will clip the video
# subclip(starttime, endtime) to clip portion of video
# you can remove the subclip to convert complete video
clip = mp.VideoFileClip(r"sample1.mp4").subclip(10, 100)
# It will write the audio in converted_audio.wav file.
# Libraries import
import speech_recognition as sr
# It will read audio file
audio = sr.AudioFile("Converted_audio.wav")
print("Audio file readed...")
# Here the magic start
# create an instance of recognizer as r
r = sr.Recognizer()
# Libraries import
import moviepy.editor as mp
# It will clip the video
# subclip(starttime, endtime) to clip portion of video
# you can remove the subclip to convert complete video
clip = mp.VideoFileClip(r"sample1.mp4").subclip(10, 100)
# It will write the audio in converted_audio.wav file.
clip.audio.write_audiofile(r"Converted_audio.wav")