Skip to content

Instantly share code, notes, and snippets.

View porimol's full-sized avatar
🎯
Focusing

Porimol Chandro porimol

🎯
Focusing
  • Warsaw, Poland
View GitHub Profile
@porimol
porimol / deep_covax.py
Last active July 8, 2020 16:24
DeepCovax is a Deep Neural Network based COVID-19 vaccine formula discovering tool developed using PyTorch :P
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import torch.optim as optim
import torch.nn.functional as F
from torchvision import transforms, utils, datasets
import torch
@porimol
porimol / CouchDB_Python.md
Created May 5, 2019 11:54 — forked from marians/CouchDB_Python.md
The missing Python couchdb tutorial

This is an unofficial manual for the couchdb Python module I wish I had had.

Installation

pip install couchdb

Importing the module

@porimol
porimol / new_task.py
Created April 1, 2019 08:35 — forked from reedsa/new_task.py
RabbitMQ Retry using Dead Letter Exchange in Python/Pika
#!/usr/bin/env python
# http://www.rabbitmq.com/tutorials/tutorial-two-python.html
import pika
import sys
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='localhost'))
channel = connection.channel()
message = ' '.join(sys.argv[1:]) or "Hello World!"
import pandas as pd
df = pd.DataFrame({
'first_name': ['dhur', 'teri', 'eidaki', 'oops', 'ahh'],
'last_name': ['modhu', 'kodu', 'mula', 'kodu', 'modhu'],
'phone_number': ['+8801820050440', '+8801820050444', '+8801820050440', '+8801820050441', '+8801820050440']
})
import pandas as pd
data = pd.read_csv('test.csv')
# array3 = data['Column2'].replace(np.NaN,-1)
# length = array3.shape[0]
# print(length)
# arr3 = [];
# for i in range(length):
# if array3[i] != -1:
# # print(i)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@porimol
porimol / tfidf.ipynb
Created October 21, 2017 12:36
Bengali word frequency(Term Frequency & Inverse Document Frequency) count
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@porimol
porimol / BengaliSentenceTokenization.ipynb
Created October 21, 2017 12:32
Benglali stop words remove and sentence tokenization
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@porimol
porimol / product_brand.csv
Last active July 29, 2017 14:57
Brand ID update in product csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 3. in line 2.
brand.csv
-----------------------------------
bid,brand,web_site
1,sqaure,sqaure.com.bd
2,beximco,beximco.com.bd
product.csv
-----------------------------------
pid,brand_id,brand,product_name,address
1,null,sqaure,napa extra,null
@porimol
porimol / naive_string_matching.c
Created July 25, 2017 13:40
C program for Naive Pattern Searching algorithm
#include<stdio.h>
#include<string.h>
void search(char *pat, char *txt)
{
int i = 0;
int M = strlen(pat);
int N = strlen(txt);
// A loop to slide pat[] one by one