Skip to content

Instantly share code, notes, and snippets.

View shajeen's full-sized avatar

Ahamed shajeen

View GitHub Profile
@shajeen
shajeen / [cpp] sorting algorithm
Created August 2, 2019 17:52
c++11 standard sorting algorithm implementation
// sort.cpp : Defines the entry point for the console application.
//
#include <array>
#include <random>
#include <iostream>
#include <functional>
#include <chrono>
#include <string>
@shajeen
shajeen / [Qt] access remote mysql database
Created August 2, 2019 17:43
access remote mysql db using qt framework
#include <QCoreApplication>
#include <QSqlDatabase>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL3");
db.setHostName("db4free.net");
@shajeen
shajeen / [cpp] poco memory management
Created August 2, 2019 17:41
Poco library memory management
// memoryManagement.cpp : Defines the entry point for the console application.
//
#include <string>
#include <iostream>
#include <Poco\AutoPtr.h>
#include <Poco\RefCountedObject.h>
#include <Poco\AutoReleasePool.h>
#include <Poco\SharedPtr.h>
@shajeen
shajeen / [cpp] c++11 concepts
Last active August 2, 2019 17:39
c++11 concepts
// cpp11.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include <memory>
#include <array>
#include <vector>
#include <string>
#include <algorithm>
@shajeen
shajeen / [python] clone all star repo
Last active March 8, 2024 09:20
Code to download all stared repo
from github import Github
from pygit2 import clone_repository
import random
import string
import json
import os
path = "/home/shajeen/Documents/git_stared/"
g = Github("git personal access token")