Skip to content

Instantly share code, notes, and snippets.

View nahiyan's full-sized avatar

Nahiyan Alamgir nahiyan

View GitHub Profile
@nahiyan
nahiyan / 1.cpp
Created November 19, 2020 05:25
CSE225 Task1a
#include <iostream>
using namespace std;
class MyInfo
{
private: // data hidden from outside world
int x;
public:
// function to set value of variable x
void set(int a) { x = a; }
@nahiyan
nahiyan / Account.cpp
Created November 23, 2020 08:57
Quiz
#include "Account.h"
#include <cstdio>
Account::Account(string name, int age)
{
this->name = name;
this->age = age;
this->balance = 0;
}
@nahiyan
nahiyan / main.py
Created October 13, 2021 13:05
Automatically create SSH keys in Linux
import subprocess
import sys
import os
# take email address as an argument
if len(sys.argv) == 4:
name = sys.argv[1]
email_address = sys.argv[2]
linux_username = sys.argv[3]