Skip to content

Instantly share code, notes, and snippets.

Avatar

jalFaizy faizankshaikh

View GitHub Profile
@faizankshaikh
faizankshaikh / 1_init_func.py
Last active Nov 19, 2020
typing_tutor_article_code
View 1_init_func.py
class TypingTutor:
def __init__(self):
st.set_page_config(page_title="Typing Tutor", layout="wide")
st.markdown(
"<h1 style='text-align: center; color: black;'>Typing Tutor</h1>",
unsafe_allow_html=True,
)
View temp.py
class Solution:
def __init__(self):
self.sum_val = 0
def _checker(self, root: TreeNode, direction: str):
if root:
self._checker(root.left, "left")
if not root.left and not root.right and direction == "left":
# print("Adding", root.val, "to", self.sum_val)
View play2048.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@faizankshaikh
faizankshaikh / advanced-python-concepts-using-a-use-case-of-simple-nn.ipynb
Created Jul 26, 2020
Advanced Python concepts using a use case of simple NN.ipynb
View advanced-python-concepts-using-a-use-case-of-simple-nn.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@faizankshaikh
faizankshaikh / article_cell_0.py
Last active Oct 10, 2021
code for NN from scratch simplified
View article_cell_0.py
# importing required libraries
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
View gistMaker.py
import json
file_name = r"3. Pytorch from Scratch (Part I).ipynb" # enter your own filename
with open(file_name, 'r') as f:
lines = f.readlines()
ipynb = json.loads("".join(lines))
code_cells = [cell['source'] for cell in ipynb['cells'] if cell['cell_type'] == 'code']
View equation_solver.py
string = e3y.__str__()
print("Start simplification\n")
print(string, " # Original string")
string = re.sub(r"0\*\w", r"0", string)
print(string, " # simplify 0*A -> 0")
string = re.sub(r"\w\*0", r"0", string)
print(string, " # simplify A*0 -> 0")
string = re.sub(r"1\*(\w)", r"\1", string)
print(string, " # simplify 1*A -> A ")
@faizankshaikh
faizankshaikh / check_code_present
Last active May 3, 2020
Case study on preferred tools in ICLR 2020
View pytorch_vs_tensorflow_v2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View tensorflow_vs_pytorch.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.