- 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 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 lxml import html | |
import requests | |
import os | |
import json | |
from tqdm import tqdm | |
COURSES = """https://egghead.io/courses/cycle-js-fundamentals | |
https://egghead.io/courses/use-d3-v3-to-build-interactive-charts-with-javascript |
This file contains 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
manash@XPS:/opt/robo3t$ sudo ln -s /opt/robo3t/bin/robo3t /usr/bin/robo3t | |
manash@XPS:/opt/robo3t$ nano ~/.local/share/applications/robo3t.desktop | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Robo3t | |
Exec=robo3t | |
Icon=/opt/robo3t/bin/logo-256x256.png | |
Terminal=false | |
Type=Application |
This file contains 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 asyncio | |
import aiohttp | |
import motor.motor_asyncio | |
client = motor.motor_asyncio.AsyncIOMotorClient() | |
db = client['async_db'] | |
async_collection = db['async_collection'] | |
async def send_request(session): |
This file contains 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 "SerialPort.h" | |
SerialPort::SerialPort(char *portName) | |
{ | |
this->connected = false; | |
this->handler = CreateFileA(static_cast<LPCSTR>(portName), | |
GENERIC_READ | GENERIC_WRITE, | |
0, | |
NULL, |
This file contains 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
#ifndef SERIALPORT_H | |
#define SERIALPORT_H | |
#define ARDUINO_WAIT_TIME 2000 | |
#define MAX_DATA_LENGTH 255 | |
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains 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
# Install tqdm and requests to run this script | |
import requests | |
from tqdm import tqdm | |
ACCESS_TOKEN = "ACCESS_TOKEN_WITH_DELETE_ACCESS" | |
USERNAME = "your-github-username" | |
LIST_REPOSITORY = "https://api.github.com/users/your-github-username/repos?page={}" | |
API_DELETE_REPO = "https://api.github.com/repos/your-github-username/{}" |
- You have a VPS (something like DigitalOcean, Linode, etc.)
- You have a Flask application and a basic understanding of command line instructions
- You've got nginx installed and know where your configuration files are
- First, you should install gunicorn on your box or virtualenv with pip:
This file contains 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
#ifndef QSETTINGSEXAMPLE_H | |
#define QSETTINGSEXAMPLE_H | |
#include <QDialog> | |
#include <QString> | |
#include <QSettings> | |
#include <QLineEdit> | |
#include <QPushButton> | |
namespace Ui { |
This file contains 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 | |
import librosa | |
def wav2mfcc(file_path, max_pad_len=11): | |
wave, sr = librosa.load(file_path, mono=True, sr=None) | |
wave = wave[::3] | |
mfcc = librosa.feature.mfcc(wave, sr=16000) | |
pad_width = max_pad_len - mfcc.shape[1] | |
mfcc = np.pad(mfcc, pad_width=((0, 0), (0, pad_width)), mode='constant') | |
return mfcc |