Skip to content

Instantly share code, notes, and snippets.

View MuLx10's full-sized avatar
🔥
Tornado 🌪️

Mehul Kumar Nirala MuLx10

🔥
Tornado 🌪️
View GitHub Profile
@MuLx10
MuLx10 / FittingBestDistribution.py
Last active April 10, 2021 06:09
Fitting empirical distribution to theoretical ones with Scipy
%matplotlib inline
import warnings
import numpy as np
import pandas as pd
import scipy.stats as st
import statsmodels as sm
import matplotlib
import matplotlib.pyplot as plt
@MuLx10
MuLx10 / download_from_kaggle.py
Last active March 4, 2020 15:00
Download Submission file from IPython notebook (Kaggle, Collab, etc.)
import base64
import pandas as pd
from IPython.display import HTML
def create_download_link( df, title = "Download CSV file", filename = "submission.csv"):
csv = df.to_csv(index = False)
b64 = base64.b64encode(csv.encode())
payload = b64.decode()
html = '<a download="{filename}" href="data:text/csv;base64,{payload}" target="_blank">{title}</a>'
html = html.format(payload=payload,title=title,filename=filename)
@MuLx10
MuLx10 / sublime_key.txt
Created December 25, 2017 14:14
Sublime text Keys
## Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
@wassname
wassname / tensor_board_logger.py
Created September 27, 2017 06:03
A generic tensorboard logger for scalars and histograms or distributions
import tensorflow as tf
import numpy as np
class TensorBoardLogger(object):
"""
Log scalar and histograms/distributions to tensorboard.
Usage:
```
@tsaqib
tsaqib / ideas.md
Last active April 14, 2024 12:48
Ideas that you can use for hackathons, competitions and research.

Ideas

I have collected and moderated these ideas from various public sources and put into one place so that problem solvers and solution developers may find inspirations. Because I wish to update it regularly, I have setup as a single page wiki. You may try these ideas on hackathons/competitions/research; some are quite intense problems and some are not. Many of the problems were prepared keeping Dhaka/Bangladesh in mind, but of course can be applied to just about any underdeveloped/developing and sometimes developed countries.

Categories:
  • Eradicate Extreme Poverty and Hunger
  • Education
  • Healthcare
  • Governance