I hereby claim:
- I am tushar-rishav on github.
- I am tushargautam (https://keybase.io/tushargautam) on keybase.
- I have a public key ASAbcmqwe2IRRnl7J17vsbSpxualxDB3Jp-YHQHz2kyxuQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Factors pertaining to Spark job scheduling
spark.scheduler.mode
: FIFO (default) and Fair job scheduling.spark.speculation
: false (default). When turned on, Spark checks every spark.speculation.interval setting to determine stragglers.
In the world of conservation, there’s a lot of emphasis put on the survival of endangered animals. The idea of an entire species being wiped off the planet forever because of the actions of humans makes most people feel an impotent meld of despair and anger. But, of course, animals are not the only living things at risk from the destructive nature of humans. Hundreds of plant species have been made extinct in the past few centuries and thousands more are at risk
The idea of a world where plant species are disappearing is hard to imagine when visiting Kew Gardens, in southwest London.
Faker - pip install Faker
Python
Create stuff based on user's browsing history that suggests a user to take some interesting courses online. |
import logging,inspect | |
def function_logger(file_level, console_level = None): | |
""" | |
Store keys | |
""" | |
function_name = inspect.stack()[1][3] | |
logger = logging.getLogger(function_name) | |
logger.setLevel(logging.DEBUG) | |
if console_level != None: |
import os | |
DEF_INP = "/dev/input/" | |
DEF_BUS = "/proc/bus/input/devices" | |
def read_device(): | |
fd = os.popen("grep -E 'Handlers|EV=' " + DEF_BUS + " | grep -B1 'EV=120013' | grep -Eo 'event[0-9]+'") | |
events = list(fd.read().split("\n"))[:-1] | |
fd.close() | |
return events | |
print(DEF_INP + read_device()[0]) |