Skip to content

Instantly share code, notes, and snippets.

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

Md. Tonoy Akando tonoy30

🏠
Working from home
View GitHub Profile
@tonoy30
tonoy30 / problem1.py
Created December 21, 2022 16:25
airwrk codding test (21/12/2022)
from typing import List
def good_pair(nums: List[int]) -> int:
good_pair_count = 0
for i in range(len(nums)):
for j in range(i+1, len(nums)):
if nums[i] == nums[j] and i < j:
good_pair_count += 1
@tonoy30
tonoy30 / mongodb_c#_cheatsheet.md
Created July 10, 2020 14:17 — forked from a3dho3yn/mongodb_c#_cheatsheet.md
MongoDB C# Driver Cheat Sheet

MongoDB C# Driver Cheat Sheet

(C) 2015 by Derek Hunziker, (C) 2017 by AppsOn

As of releasing MongoDB 3.4 and C# Driver v2.4, original cheatsheet by Derek is outdated. In addition, it has some deficiencies like connecting to MongoDB, creating indexes, etc. This updated version works fine with C# Driver v2.4.7 and MongoDB v3.4.

Setup

Define Document Models

Note: Defined models and collections will be used in entire cheatsheet.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.