sudo apt-get install python3-pip
sudo pip3 install virtualenv
import pymysql.cursors | |
connection = pymysql.connect(host='localhost', | |
user='dummy', | |
password='pass', | |
db='demo', | |
cursorclass=pymysql.cursors.DictCursor) | |
try: | |
with connection.cursor() as cursor: | |
sql = "INSERT INTO student ( roll, name ) VALUES (%s, %s)" |
import openpyxl | |
excel_file = openpyxl.load_workbook('records.xlsx') | |
#print(excel_file.sheetnames) | |
tc_sheet = excel_file['Testcases'] | |
#currently_active_sheet = excel_file.active |
What you need to do to install SDL is:
#install sdl2
sudo apt install libsdl2-dev libsdl2-2.0-0 -y;
#install sdl image
sudo apt install libjpeg9-dev libwebp-dev libtiff5-dev libsdl2-image-dev libsdl2-image-2.0-0 -y;
#install sdl mixer
@Credit for this goes to Matt D.(U23R9AN4U) from cpplang.slack.com | |
Hi! Here's a few (note: there's also #cmake where you can ask more specific CMake questions): | |
• An Introduction to Modern CMake - https://cliutils.gitlab.io/modern-cmake/ | |
• Awesome CMake - https://github.com/onqtam/awesome-cmake | |
• CMake - Introduction and best practices - http://www.slideshare.net/DanielPfeifer1/cmake-48475415 | |
• C++Now 2017: Daniel Pfeifer "Effective CMake" | |
- https://www.youtube.com/watch?v=bsXLMQ6WgIk | |
- https://github.com/boostcon/cppnow_presentations_2017/raw/master/05-19-2017_friday/effective_cmake__daniel_pfeifer__cppnow_05-19-2017.pdf |
cmake_minimum_required(VERSION 2.8.12) | |
project(YOUR_PROJECT) | |
# Enable multithreaded compilation in MSVC | |
if (MSVC) | |
add_definitions(/MP) | |
endif() | |
# Rewrite to a nicer output directory. Can be removed | |
set(ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/output) |
/* Node is defined as : | |
typedef struct node | |
{ | |
int val; | |
struct node* left; | |
struct node* right; | |
int ht; | |
} node; */ | |
node * new_node (int val) |
F:\boost_1_67_0
.F:\boost-build
.F:\boost_1_67_0\build
.F:\boost
.