Skip to content

Instantly share code, notes, and snippets.

View manashmandal's full-sized avatar
👨‍💻
Probably Coding || ! Probably Coding

Manash Kumar Mandal manashmandal

👨‍💻
Probably Coding || ! Probably Coding
View GitHub Profile
TEMPLATE = app
CONFIG += console c++14
CONFIG -= app_bundle
CONFIG -= qt
INCLUDEPATH += G://OpenCV2Build//install//include
LIBS += G://OpenCV2Build//install//x64//mingw//lib//libopencv_calib3d2411.dll.a
LIBS += G://OpenCV2Build//install//x64//mingw//lib//libopencv_contrib2411.dll.a
LIBS += G://OpenCV2Build//install//x64//mingw//lib//libopencv_core2411.dll.a
%{Cpp:LicenseTemplate}\
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/core.hpp>
using namespace cv;
int main(int argc, char** argv)
{
namedWindow("Output", 1);
{
"version": 1,
"kind": "project",
"id": "R.OpenCV application",
"category": "I.Projects",
"trDescription": "Creates a simple C++ application using either qmake, CMake, or Qbs to build.",
"trDisplayName": "Create OpenCV application",
"trDisplayCategory": "Non-Qt Project",
"icon": "../../global/consoleapplication.png",
"enabled": "%{JS: [ %{Plugins} ].indexOf('QmakeProjectManager') >= 0 || [ %{Plugins} ].indexOf('QbsProjectManager') >= 0 || [ %{Plugins} ].indexOf('CMakeProjectManager') >= 0}",
"Barguna",
"Barisal",
"Jhalokati",
"Patuakhali",
"Pirojpur",
"Bandarban",
"Brahmanbaria",
"Chandpur",
"Chittagong",
"Comilla",

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL
import matplotlib.pyplot as plt
x = range(0, 10)
y = range(10, 20)
plt.plot(x, y, label='some plot')
plt.legend(loc='lower right')
plt.show()
@manashmandal
manashmandal / mbd.tex
Created July 16, 2016 15:10
Presentation 1 usnig overleaf
% Name :: sthlm Beamer Theme HEAVILY based on the hsrmbeamer theme (Benjamin Weiss)
% Author :: Mark Hendry Olson ([email protected])
% Created :: 2013-07-31
% Updated :: June 18, 2015 at 08:45
% Version :: 1.0.2
% Email :: [email protected]
% Website :: http://v42.com
%
% License :: This file may be distributed and/or modified under the
% GNU Public License.
from bs4 import BeautifulSoup
import urllib2
class News():
def __init__(self):
self.id = None
self.title = ''
self.subtitle = ''
self.reporter = ''
self.published_date = ''
from bs4 import BeautifulSoup
import urllib2
from newspaper import Article
import csv
scraped_news_list = []
class News():
def __init__(self):
self.id = None