Skip to content

Instantly share code, notes, and snippets.

View tushar-rishav's full-sized avatar
:bowtie:
How's it going?

Tushar Gautam tushar-rishav

:bowtie:
How's it going?
View GitHub Profile

Keybase proof

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:

@tushar-rishav
tushar-rishav / spark-sched.md
Created September 30, 2019 13:23
Spark Job Scheduling
@tushar-rishav
tushar-rishav / kew.md
Created May 2, 2017 17:57
Kew botanical garden

Kew Botanical Garden : protecting the world a seed at a time

Intro

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.

@tushar-rishav
tushar-rishav / alphonso.md
Created December 5, 2016 11:28
Implementation details

Dependencies

Faker - pip install Faker

Implementation Details

Programming language used:

Python

Files:
@tushar-rishav
tushar-rishav / strings.md
Created April 1, 2016 21:07
Guitar strings

Frequencies of the strings

frequencies = {
	'E': 329.63,
	'A': 440,
	'D': 587.33,
	'G': 783.99,
	'B': 987.77,
	'e': 1318.5
@tushar-rishav
tushar-rishav / idea.ml
Last active February 7, 2017 20:10
Cool idea involving ML
Create stuff based on user's browsing history that suggests a user to take some interesting courses online.
@tushar-rishav
tushar-rishav / eurothon.md
Last active March 5, 2016 21:38
EuroPyCon stuff

Goal

You will be guided to make a real contribution to an open source project (coala). The skills you learn are generally applicable.

Prerequisite

  1. Eager to contribute to open source.
  2. Willingness to do great things in python
  3. GitHub account
  4. Git installed
  5. A laptop
@tushar-rishav
tushar-rishav / log.py
Created October 22, 2015 10:43
Create log files
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:
@tushar-rishav
tushar-rishav / keylog.py
Created October 22, 2015 10:32
Read keyboard system files
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])