Skip to content

Instantly share code, notes, and snippets.

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.
View createChilProc.py
import os
import random
import multiprocessing
def createChildProcess(sec):
q = multiprocessing.Queue()
n = os.fork()
for i in range(1, sec):
if n==0:
View 1200CalorieDietPlan.txt
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.
View fib.py
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)
  
View EventBust.txt
java -jar selenium-server-4.0.0-alpha-6.jar event-bus
View RouterCommand.txt
java -jar selenium-server-4.0.0-alpha-1.jar router --sessions http://localhost:5556 --distributor http://localhost:5553
View DistributorCommand.txt
java -jar selenium-server-4.0.0-alpha-7.jar distributor --sessions http://localhost:5556
View SessionMapCommand.txt
java -jar selenium-server-4.0.0-alpha-7.jar sessions
View SeleniumGrid_Nodes.txt
java -jar selenium-server-4.0.0-alpha-7.jar node --detect-drivers --publish-events tcp://hubIP:4442 --subscribe-events tcp://hubIP:4443
View hubOnPort.txt
java -jar selenium-server-4.0.0-alpha-7.jar hub --port 5555
View SeleniumGrid_Node.txt
java -jar selenium-server-4.0.0-alpha-6.jar node --detect-drivers