Skip to content

Instantly share code, notes, and snippets.

View techsharif's full-sized avatar

Md. Sharif Chowdhury techsharif

View GitHub Profile
@techsharif
techsharif / codeforces-template.cpp
Created May 10, 2020 19:35
codeforces-beginner template for competitive programming
#include <bits/stdc++.h>
using namespace std;
void solution(){
}
int main()
{
ios_base::sync_with_stdio(false);
@techsharif
techsharif / beginner_template.cpp
Last active February 18, 2022 17:11
beginner template for competitive programming
#include <bits/stdc++.h>
using namespace std;
int main()
{
// uncomment if you want to use cin cout for input output ( don't mix with scanf, printf ).
// ios_base::sync_with_stdio(false);
// cin.tie(NULL);
// cout << fixed << setprecision(2);
@techsharif
techsharif / python_litmus_test.py
Last active March 17, 2020 05:42
Python Litmus Test
"""
Many of us want to learn more advance topics/tech using python as a main tool. ex: django, DS
But I think minimum level of expertise on python is required to learn advance topics.
This small test can help you to take the decision. Is it ok for you to learn new topics or you need to focus more on python?
If you can solve this problem "With just one line of code". You are 60% of to learn more advance topics.
If you have any questions. contact: sharif.cse.hstu@gmail.com
@techsharif
techsharif / recursion_practice.md
Created February 12, 2019 05:15
[Recursion] How and Why???

How and Why???

Part 01

01

def recursion(n):
	if n < 1:
		return 0
@techsharif
techsharif / basic_BASIC.md
Created January 21, 2019 08:23
Basic BASIC

Your First Program

10 PRINT "Helloooooooooooooooo, world! I'm ready to "

Declare Variable

10 LET A = 5
@techsharif
techsharif / Setup a django project on SERVER ( Only for beginners ).md
Last active August 28, 2018 09:23
Setup a django project on SERVER ( Only for beginners )

Setup a django project on SERVER ( Only for beginners )

01. Create a SUDO User

Connect via SSH

ssh root@server_ip_address

change root password

@techsharif
techsharif / python_training_and_exercise_on_Exceptions.md
Created July 17, 2018 12:29
python_training_and_exercise_on_Exceptions

Exceptions

Sharif Chowhdury
Software Engineer ( Circle FinTech Ltd. )
techsharif.com

Errors

  • Syntax errors
@techsharif
techsharif / python_training_and_exercise_on_OOP.md
Last active July 17, 2018 11:38
python_training_and_exercise_on_OOP

OOP

Sharif Chowhdury
Software Engineer ( Circle FinTech Ltd. )
techsharif.com

OOP

  • Encapsulation
@techsharif
techsharif / Dictionary_Implementation.cpp
Created July 5, 2018 12:15
C++ dictionary implementation
#include <bits/stdc++.h>
using namespace std;
#define KEY_EXISTS_DICT(KEY, DICT) ( (DICT.find(KEY) == DICT.end()) ? (false) : (true))
string INPUT_FILE_NAME = "Data.CS.SFSU.txt";
string POS[] = {"noun", "pronoun", "adjective", "verb", "adverb", "preposition", "conjunction", "interjection"};
string make_lower(string data) {
@techsharif
techsharif / python_training_and_exercise_on_function.md
Last active July 2, 2018 04:27
python_training_and_exercise_on_function

Python Training and Exercise on Function

Installing

Python 3.6 (The best is to use virtuall environment)

Topics

  • function intro
  • Built in functions