π―
This file contains 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
<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> |
This file contains 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
print("Hello") | |
# Main function | |
def main(): | |
print("I am Neptune") | |
# Using the main | |
if __name__=="__main__": | |
main() |
This file contains 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
package JavaCoding; | |
import java.lang.*; | |
import java.io.*; | |
import java.util.*; | |
//ReverseString using StringBuilder Class | |
public class ReverseStrUsingStringBuilder { | |
public static void main(String[] args) |
This file contains 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 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; |
This file contains 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
package TestAutomation.TestRunner; | |
import org.junit.runner.RunWith; | |
import cucumber.api.CucumberOptions; | |
import cucumber.api.junit.Cucumber; | |
//Cucumber Runner class | |
@RunWith(Cucumber.class) |
This file contains 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
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; |
This file contains 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
@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 |
This file contains 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
# 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. |
This file contains 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
# 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() |
This file contains 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
# 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") |
NewerOlder