- TechShopBd www.techshopbd.com
- ProjectShopBd http://projectshopbd.com/
- RcShopBd http://www.rcshopbd.com/
- RcSolutionBd http://www.rcsolutionbd.com/
- BdSpeedTech www.bdspeedytech.com
- MMRcBd http://mmrcbd.com
- EStoreBd http://estoresbd.com/
- ProjectShop http://projectshopbd.com/
- Projukti Ponno http://projuktiponno.com/
- EStoreBD www.estoresbd.com
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
from PyQt5.QtWidgets import (QTreeWidget, QTreeWidgetItem, QPushButton, QLabel, QDialog, QVBoxLayout, QApplication, QLineEdit) | |
from PyQt5.QtCore import pyqtSlot | |
import sys | |
class TreeWidgetWithWidgetItems(QDialog): | |
def __init__(self): | |
super(TreeWidgetWithWidgetItems, self).__init__() | |
self.init_ui() | |
def init_ui(self): |
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
# Day 0: Mean, Median, and Mode | |
# Selecting standard input | |
con <- file('stdin', open='r') | |
# We don't need the first input | |
data_line <- readLines(con)[[2]] | |
# splitting the data into individual string | |
split_data <- strsplit(data_line, " ") |
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
void setup(){ | |
Serial.begin(9600); | |
Serial1.begin(9600); | |
Serial.println("Init"); | |
pinMode(13, OUTPUT); | |
} | |
char b; | |
void loop(){ |
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
from nltk.tag import StanfordNERTagger | |
import os | |
print os.environ.get('STANFORD_MODELS') | |
# Output: | |
#/home/jackspicer/StanfordParser/stanford-ner-2015-12-09/classifiers/english.all.3class.distsim.crf.ser.gz:/home/jackspicer/stanford-postagger-2015-12-09/models/english.conll.4class.distsim.crf.ser.gz:/home/jackspicer/StanfordParser/stanford-ner-2015-12-09/english.muc.7class.distsim.crf.ser.gz | |
# I want to select the first classifier model |
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 nltk | |
print nltk.__version__ | |
from nltk.tag import StanfordNERTagger | |
import os | |
st = StanfordNERTagger(os.environ.get('STANFORD_MODELS')) | |
print st._stanford_jar |
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 | |
import os | |
import numpy as np | |
import random | |
from sklearn.utils import shuffle | |
import matplotlib.pyplot as plt | |
positive_text_path = './txt_sentoken/pos/' | |
negative_text_path = './txt_sentoken/neg/' |
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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from bs4 import BeautifulSoup | |
from requests import get | |
from lxml import html | |
class FacebookSpider(): | |
def __init__(self, userid, password): | |
self.userid = userid | |
self.password = password |