Skip to content

Instantly share code, notes, and snippets.

View r0b1n1sl4m's full-sized avatar

Robin Islam r0b1n1sl4m

View GitHub Profile
@r0b1n1sl4m
r0b1n1sl4m / countries.py
Created September 8, 2019 16:12
Array of country codes (ISO 3166-1 alpha-2) and corresponding names in python
COUNTRIES = (
('AF', 'Afghanistan'),
('AX', 'Aland Islands'),
('AL', 'Albania'),
('DZ', 'Algeria'),
('AS', 'American Samoa'),
('AD', 'Andorra'),
('AO', 'Angola'),
('AI', 'Anguilla'),
('AQ', 'Antarctica'),
@r0b1n1sl4m
r0b1n1sl4m / flask-boilerplate-structure.py
Last active October 22, 2022 12:32
Flask boilerplate project structure
├──app/ #main application
├──inc/ #utils
├──__init__.py
├──db.py #initiate sqlalchemy
├──util.py #common functions
├──models/ #data models
├──__init__.py
├──home_model.py #remove on needs
├──routes/
├──__init__.py
/* Queue - Circular Array implementation in C++*/
#include<iostream>
using namespace std;
#define MAX_SIZE 101 //maximum size of the array that will store Queue.
// Creating a class named Queue.
class Queue
{
private:
int A[MAX_SIZE];