This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
df = pd.read_csv('bangla.csv', sep='\t', encoding='utf-16') | |
df.columns = ['review', 'sentiment'] | |
df.head() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python3 | |
# https://www.hackerrank.com/challenges/nested-list | |
n = int(input()) | |
students = [] | |
for i in range(n): | |
name = input() | |
mark = input() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import pickle | |
import cPickle | |
import numpy | |
from sklearn import cross_validation | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.feature_selection import SelectPercentile, f_classif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
পাইথন | |
বাংলাদেশ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
Servo servoMain; | |
SoftwareSerial gsm(2,3); | |
String outMessage = "Gas Leaking!"; | |
String destinationNumber = "+8801722063216"; | |
void setup() { | |
Serial.begin(4800); | |
pinMode(0, INPUT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy import linalg | |
from __future__ import print_function | |
K = linalg.toeplitz([-2, 1, 0, 0, 0, 0]) | |
P, L, U = linalg.lu(K) | |
print (linalg.inv(L)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define baud 115200 | |
#define RX 10 | |
#define TX 11 | |
#include <SoftwareSerial.h> | |
String inputString = ""; | |
bool stringComplete = false; | |
SoftwareSerial wifi(RX, TX); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import flask library | |
from flask import Flask | |
# Initialize the application | |
app = Flask(__name__) | |
# Define a route using Python Decorator | |
@app.route('/') | |
def hello_world(): | |
return "<h1>Hello, KUETians!</h1>" |