Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ShamaUgale's full-sized avatar

Shama Ugale ShamaUgale

View GitHub Profile
@ShamaUgale
ShamaUgale / createChilProc.py
Created January 7, 2021 06:54
Make a python program that creates 1 child process which pushes random integers until the parent terminates to the parent process every 1 second for N seconds, not known until after the child process is created, have the parent read and print the integers, then have the program terminate correctly.
import os
import random
import multiprocessing
def createChildProcess(sec):
q = multiprocessing.Queue()
n = os.fork()
for i in range(1, sec):
if n==0:
Morning
- ajwain water - soak it over night and next day boil n drink
- 1 fruit
- Workout
- Tea
- Breakfast is oats chilla
Afternoon
- Lunch - a raita - a chapati - 1 chapati - salad
- A snack (fruit)
@ShamaUgale
ShamaUgale / fib.py
Created January 7, 2021 06:48
Write a program that takes a parameter 'n' and prints the first n prime numbers in the Fibonacci sequence.
def FibonacciSeries(n):
    if n<=0:
        print("Incorrect input")
    elif n==1:
        return 0
    elif n==2:
        return 1
    else:
        return FibonacciSeries(n-1)+FibonacciSeries(n-2)
  
java -jar selenium-server-4.0.0-alpha-6.jar event-bus
java -jar selenium-server-4.0.0-alpha-1.jar router --sessions http://localhost:5556 --distributor http://localhost:5553
java -jar selenium-server-4.0.0-alpha-7.jar distributor --sessions http://localhost:5556
java -jar selenium-server-4.0.0-alpha-7.jar sessions
java -jar selenium-server-4.0.0-alpha-7.jar node --detect-drivers --publish-events tcp://hubIP:4442 --subscribe-events tcp://hubIP:4443
java -jar selenium-server-4.0.0-alpha-7.jar hub --port 5555
java -jar selenium-server-4.0.0-alpha-6.jar node --detect-drivers