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

💡 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.

How to build a Ionic app using Cordova in windows


Prequsites :

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

    Tricks
    
[
{
"DATE": "25 Mar 2022",
"SEHR": "04: 41 AM",
"IFTAR": "6: 12 PM"
},
{
"DATE": "26 Mar 2022",
"SEHR": "04: 40 AM",
"IFTAR": "6: 13 PM"
@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,
@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>

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

@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.

#EXTM3U
#EXTINF:-1 tvg-name="MAASRANGA TV HD" tvg-logo="https://sunplex.net/iptv/logo/maasranga-tv.jpg" group-title="ISPbills.com ",MAASRANGA TV HD
http://172.32.1.88:1935/tvprogram/MAASRANGA-TV/playlist.m3u8
#EXTINF:-1 tvg-name="SPORTS 18 HD (FIFA-22)" tvg-logo="https://sunplex.net/iptv/logo/sports-18-hd1-fifa-2022.jpg" group-title="",SPORTS 18 HD (FIFA-22)
https://stream.sunplex.live/SPORTS-18/index.m3u8
#EXTINF:-1 tvg-name="T SPORTS HD" tvg-logo="https://sunplex.net/iptv/logo/t-sports-hd-fifa-2022.jpg" group-title="",T SPORTS HD
https://stream.sunplex.live/T-SPORTS/index.m3u8
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.1.1-linux1/GitHubDesktop-linux-3.1.1-linux1.deb
sudo dpkg -i GitHubDesktop-linux-3.1.1-linux1.deb
@sefatanam
sefatanam / remove app from ubunt.md
Last active February 16, 2024 12:46
remove app from ubuntu

Find installed application initial name by

  • snap list
  • dpkg --list
  • apt list --installed

If the installation medium is,

  • dpkg - sudo apt purge APP_INITIAL
  • snap - snap remove APP_INITIAL
  • flatpak - flatpak --system uninstall APP_PACKAGE_NAME