Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Gopesh Neptune998

🎯
Focusing
View GitHub Profile
@Neptune998
Neptune998 / pom.xml
Created Apr 15, 2022
pom.xml dependencies for maven project.
View pom.xml
<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>
View PythonMain.py
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 Dec 12, 2021
String Reversal Using String Builder Class
View 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 Dec 12, 2021
String Reversal Using CharAt Method in Java.
View String Reverse Using CharAt Method
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;
View SpiceJetTicketBooking.feature
@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
View TestRunner.java
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 Aug 28, 2021
Java code or StepDefination.
View SpiceJetStepDef.java
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;
View Complete_code.py
# 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.
View audio_text_conversin.py
# 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()
View Video_audio_convertion.py
# 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")