Skip to content

Instantly share code, notes, and snippets.

View CyanGirl's full-sized avatar
Searching Sparkles...

Subhasree CyanGirl

Searching Sparkles...
  • Amazon
  • India
View GitHub Profile
@CyanGirl
CyanGirl / ConnectWiFiInPython.py
Created July 31, 2021 15:34
The program can be used to find the 3 strongest WiFis available in your network and upon choosing, connects to it with password in Python 3 , on Windows.
import subprocess
import getpass
import os
import time
import pywifi
from pywifi import PyWiFi
from pywifi import const
from pywifi import Profile
@CyanGirl
CyanGirl / ConnectMySql.py
Created May 22, 2021 08:10
Creating the Database connectivity and executing queries
"""
1. Install mysql-connector-python
2. import the package
3. create the db connector and printing it will give you the object.
if you dont pass the DB name , it will connect to the entire database
4. cReate a DB cursor and pass queries to it.
5. Creating a new Database: CREATE DATABASE testDB;
6. the Db cursor will hold all the data and if command executed succesfully
the returned value will be NONE.
"""
@CyanGirl
CyanGirl / BinTree.c
Created June 30, 2019 15:49
Simple Binary Tree Construction
#include<stdio.h>
struct node
{
int data;
struct node *left;
struct node *right;
};
struct node *tree;
struct node* create()
{
@CyanGirl
CyanGirl / overload.cpp
Created June 30, 2019 15:40
Operator Overloading in CPP
#include<iostream>
using namespace std;
class complex
{
float real;
float img;
public:
complex()
@CyanGirl
CyanGirl / Bank.cpp
Created June 30, 2019 15:38
Bank Account Maintenance in CPP
#include<iostream>
#include<string.h>
using namespace std;
class BankAccounts
{
int accNo;
char custName[30];
char accType[15];
int pin;
float balance;
@CyanGirl
CyanGirl / DList.cpp
Created June 30, 2019 15:34
Complete Double Linked List in CPP
#include<iostream>
using namespace std;
template <class T>
struct node
{
node<T> *prev;
T data;
node<T> *next;
};