Skip to content

Instantly share code, notes, and snippets.

View sefatanam's full-sized avatar
:octocat:
odistro

Sefat Anam sefatanam

:octocat:
odistro
View GitHub Profile
@sefatanam
sefatanam / Search in Rotated Sorted Array II.md
Last active December 4, 2022 08:40
81. Search in Rotated Sorted Array II

There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values).

Before being passed to your function, nums is rotated at an unknown pivot index k (0 <= k < nums.length) such that the resulting array is [nums[k], nums[k+1], ..., nums[n-1], nums[0], nums[1], ..., nums[k-1]] (0-indexed). For example, [0,1,2,4,4,4,5,6,6,7] might be rotated at pivot index 5 and become [4,5,6,6,7,0,1,2,4,4].

Given the array nums after the rotation and an integer target, return true if target is in nums, or false if it is not in nums.

You must decrease the overall operation steps as much as possible.

Angular, AWS Amplify manage multiple enviornment

Hi, Today I going to discuss about how you can manage multiple environment in AWS Amplify & obiously diff based backend. What does diff based backend mean ? In simple way, Let say, You start developing a application in dev branch initially and you entried many dummy data and also have dummy user credential for test purpose, but now you want to deploy a fresh build into prestage mode this app, Now how you do that ? This is the agenda for today. Let's jump into it.

Technology that I am using : Angular, AWS Amplify

Initial Senario : I suppose you do it well in dev with the aws-amplify setup and rest of the things, like - Add GraphQL api, completing CURD, user Authentication using AWS Amplify auth components also dev deployment. Now you stuck into how you can build a fresh build into a fresh environment without the dev's branch dummy data.

If you are beginner I'm sure that you are frastrated that you can't get solution also after reading the docs. No worr

@model Curtain
@{
ViewData["Title"] = "DetailCurtain";
}
<div class="container p-3">
<div class="row pt-4">
<div class="col-6">
<h2 class="text-dark">Curtain Details</h2>
@sefatanam
sefatanam / settings.json
Last active May 31, 2022 10:03
my vs code settings
{
"editor.smoothScrolling": true,
"workbench.startupEditor": "none",
"editor.renderWhitespace": "none",
"editor.cursorStyle": "line-thin",
"editor.fontSize": 15,
"editor.fontFamily": "Fira Code",
"editor.lineHeight": 34,
"editor.fontLigatures": true,
"explorer.decorations.badges": false,
[
{
"DATE": "25 Mar 2022",
"SEHR": "04: 41 AM",
"IFTAR": "6: 12 PM"
},
{
"DATE": "26 Mar 2022",
"SEHR": "04: 40 AM",
"IFTAR": "6: 13 PM"

How to build a Ionic app using Cordova in windows


Prequsites :

  1. Install Andorid studio, JDK (preferd version 1.8), gradle.

    Tricks
    

💡 Module Structure

The modular structure of Angular arranges the code into different modules so all services and components are divided into different groups when you construct them. In Angular coding, you can separate functionality into reusable pieces of code.

💡 Files and Folders

Naming conventions are hugely important to maintainability and readability and help to provide a consistent way to find the content at a glance. Consistency within the project is vital which help in tremendous efficiency.

💡 Let’s See How to Name Our Files and Classes

1. File Naming

While creating files, we should pay attention to the file names.

using System.IO;
using System;
using System.Threading.Tasks;
using azblob.Services;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace azblob.Controllers
{
public class BlobFilesController : Controller
using System.Collections.Generic;
using System.Threading.Tasks;
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
using Microsoft.AspNetCore.Http;
namespace azblob.Services
{
public class BlobService : IBlobService
{