Skip to content

Instantly share code, notes, and snippets.

View imShakil's full-sized avatar
🏠
Working from home

Mobarak Hosen Shakil imShakil

🏠
Working from home
View GitHub Profile
@imShakil
imShakil / Decimal2Binaryconversion.cpp
Last active December 25, 2017 16:20
A Simple C++ code to convert Decimal number to Binary Number using recursive function.
#include<bits/stdc++.h>
using namespace std;
void BinaryPrint(int n)
{
if(n==0) return;
BinaryPrint(n/2);
printf("%d", n%2);
}
#include <iostream>
#include <cstdlib>
using namespace std;
// define default capacity of the queue
#define SIZE 10
// Class for queue
class queue
{
import unittest
def square_items(list_of_number):
return [item ** 2 for item in list_of_number]
class TestUnitTest(unittest.TestCase):
def test_square_items(self):
self.assertEqual(square_items([1, 2, 3, 4]), [1, 4, 9, 16])
def square_number(list_of_number):
"""
@param list_of_number: a given list of integer number
@return: list of square number
>>> square_number([1, 2, 3, 4])
[1, 4, 9, 16]
>>> square_number([10, 20, 30])
[100, 400, 900]
def square_number(list_of_number):
return [num ** 2 for num in list_of_number]
def test_square_number():
assert square_number([1, 2, 3, 4, 5]) == [1, 4, 9, 16, 25]
import requests
from requests.exceptions import HTTPError
from bs4 import BeautifulSoup
def scrape_url(url, headers=None):
try:
page = requests.get(url, headers)
page.raise_for_status()
except HTTPError as e:

Management Tools

Issue Tracker

  • Jira (upto to 10 users free plan)

Team Communication

  • Slack
@imShakil
imShakil / dropdown.md
Created June 24, 2021 19:47
dropdown in markdown

Dropdown in markdown

Keep Secret by default

Want to disclose hidden things?

This is your hidden text.