Skip to content

Instantly share code, notes, and snippets.

Quick review on mostly used C++ STL

Author : MD. Rejaul Hasan

Introduction

As said in the headline it is going to review the most used STL for problem-solving. I am not going to note their implementation details and the time complexity analysis. The purpose is to make the list for my personal use. If it helps anyone it will be a plus for me. There are much better repositories available. So you can checkout those also. Please check the Official documentation and gfg list. Those are helpful also.

List of Components

@Rumy-hasan
Rumy-hasan / TaskConcurrencyManifesto.md
Created July 25, 2021 10:48 — forked from lattner/TaskConcurrencyManifesto.md
Swift Concurrency Manifesto
@Rumy-hasan
Rumy-hasan / System Design.md
Created May 6, 2021 05:50 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@Rumy-hasan
Rumy-hasan / IAPHelper.txt
Created April 2, 2021 19:21 — forked from speaktoalvin/IAPHelper.txt
In App Purchase in Swift, with Receipt Validation
import UIKit
import StoreKit
//MARK: SKProductsRequestDelegate
extension IAPHelpers : SKProductsRequestDelegate
{
func productsRequest(request: SKProductsRequest, didReceiveResponse response: SKProductsResponse)
{
@Rumy-hasan
Rumy-hasan / .htaccess
Created January 17, 2021 15:19 — forked from glamorous/.htaccess
Default .htaccess file
Options All -Indexes
DirectoryIndex index.php index.htm index.html
RewriteEngine on
RewriteBase /
# Force HTTPS on the subdomains/subdirectories login or admin
#RewriteCond %{HTTPS} off
#RewriteCond %{HTTP_HOST} ^(login|admin)\. [NC]
$ wget http://downloads.sourceforge.net/project/glfw/glfw/3.0.1/glfw-3.0.1.zip
$ unzip glfw-3.0.1.zip
$ cd glfw-3.0.1/
$ mkdir build
$ cd build
$ export MACOSX_DEPLOYMENT_TARGET=10.8
$ cmake -D GLFW_NATIVE_API=1 -D CMAKE_OSX_ARCHITECTURES="i386;x86_64" -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=clang ../
$ make
$ ls -l src/libglfw*
@Rumy-hasan
Rumy-hasan / gist:5aaa1651b4313d22521bdb83b81f8999
Created November 14, 2019 07:13 — forked from akisute/gist:1141953
Create an animated gif file from images in iOS
#import <UIKit/UIKit.h>
#import <ImageIO/ImageIO.h>
#import <MobileCoreServices/MobileCoreServices.h>
- (void)exportAnimatedGif
{
UIImage *shacho = [UIImage imageNamed:@"shacho.png"];
UIImage *bucho = [UIImage imageNamed:@"bucho.jpeg"];
NSString *path = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"animated.gif"];
@Rumy-hasan
Rumy-hasan / makeAnimatedGif.m
Created November 14, 2019 07:12 — forked from mayoff/makeAnimatedGif.m
Example of creating an animated GIF on iOS, with no 3rd-party code required. This should also be easy to port to OS X.
#import <UIKit/UIKit.h>
#import <ImageIO/ImageIO.h>
#import <MobileCoreServices/MobileCoreServices.h>
static UIImage *frameImage(CGSize size, CGFloat radians) {
UIGraphicsBeginImageContextWithOptions(size, YES, 1); {
[[UIColor whiteColor] setFill];
UIRectFill(CGRectInfinite);
CGContextRef gc = UIGraphicsGetCurrentContext();
CGContextTranslateCTM(gc, size.width / 2, size.height / 2);