Skip to content

Instantly share code, notes, and snippets.

View dipta007's full-sized avatar
🏠
Working from home

Shubhashis Roy Dipta dipta007

🏠
Working from home
View GitHub Profile
@dipta007
dipta007 / ideas.md
Last active December 11, 2025 15:41 — forked from tsaqib/ideas.md
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 inspiration. 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
@dipta007
dipta007 / littlejudge.py
Last active February 8, 2016 13:02 — forked from rajarsheem/littlechecker.py
A little online judge tool in python for Java,C,Cpp. Handles compile error, runtime error, accepted, wrong, TLE.
import os, filecmp
codes = {200:'success',404:'file not found',400:'error',408:'timeout'}
def compile(file,lang):
if lang == 'java':
class_file = file[:-4]+"class"
elif lang == 'c':
class_file = file[:-2]
elif lang=='cpp':
@dipta007
dipta007 / README-Template.md
Created November 22, 2017 21:24 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

gcloud compute --project "backpack-external" instances create "backpack1" \
--zone "us-east1-b" \
--boot-disk-auto-delete \
--machine-type "n1-standard-2" \
--metadata startup-script="
\
#!/bin/bash
sudo shutdown -P +10
sudo rm -r amazon-scrapper-1M-nodejs/
sudo apt-get update && sudo apt-get install -yq --no-install-recommends libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 libnss3 && curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && Y | sudo apt-get install -y nodejs && Y | sudo apt-get install -y build-essential && git clone https://github.com/dipta007/amazon-scrapper-1M-nodejs && cd amazon-scrapper-1M-nodejs && npm install && sudo npm install pm2 -g && sudo pm2 start index.js
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@dipta007
dipta007 / hello-world-flask.py
Last active November 15, 2018 16:15
A simple hello world using Flask
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET'])
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
app.run(debug=True)
@dipta007
dipta007 / Music_genre_classification.ipynb
Last active April 12, 2022 09:07 — forked from parulnith/Music_genre_classification.ipynb
Music Genre Classification.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import csv
def data_generator():
with open('nlp.csv') as fp:
reader = csv.reader(fp)
for row in reader:
yield row
for row in data_generator():
print(row)
def get_all(*args, chunksize):
pds = []
args = args[0]
for arg in args:
pds.append(pd.read_csv(f'{BASE_PATH}/{arg}', chunksize=chunksize))
return pds
def merge_all(*args):
merged = None
args = args[0]
def get_all(*args, chunksize):
pds = []
args = args[0]
for arg in args:
pds.append(pd.read_csv(f'{BASE_PATH}/{arg}', chunksize=chunksize))
return pds