Skip to content

Instantly share code, notes, and snippets.

View yashbhutoria's full-sized avatar
👨‍💻
Making things happen

Yash Bhutoria yashbhutoria

👨‍💻
Making things happen
View GitHub Profile
@yashbhutoria
yashbhutoria / AboutMe.png
Last active June 23, 2019 10:31
About Me !
AboutMe.png
@yashbhutoria
yashbhutoria / WindowsTerminalMonokai.json
Created May 25, 2019 07:07
Base16 based Monokai theme for Windows Terminal
{
"name": "Monokai",
"foreground": "#FF7CBB",
"background": "#272822",
"colors": [
"#272822",
"#F92672",
"#A6E22E",
"#F4BF75",
"#66D9EF",
@yashbhutoria
yashbhutoria / complex_decorator_example.py
Created March 14, 2019 13:41
Single decorator with two functions in it
def decorator(param_passed = None):
def real_dec(func):
#on passing 0
def inner_1(a,b):
print(f'Performing {func.__name__} on {a} and {b} with First Decoration')
return func(a,b)
#on passing 1
def inner_2(a,b):
@yashbhutoria
yashbhutoria / decorator_example.py
Last active March 14, 2019 13:39
Decorator with arguments in Python3
def decorator(param_passed = None):
def real_dec(func):
def inner(a,b):
if param_passed:
print(f'Param Passed is {param_passed}')
print(f'Performing {func.__name__} on {a} and {b}')
return func(a,b)
return inner
return real_dec