Skip to content

Instantly share code, notes, and snippets.

View MirzaLeka's full-sized avatar
:octocat:

Mirza Leka MirzaLeka

:octocat:
View GitHub Profile
@MirzaLeka
MirzaLeka / 1-info.md
Last active March 31, 2024 02:05
Reactive Validation Triggers in Angular Forms

Reactive Validation Triggers in Angular Forms

Learn how to enhance Angular form validations using Reactive Forms and a few gimmicks.

Demos

Input + Time based validation trigger

C# Web API Read Request Headers from Middleware and Controller

Headers Model

Adding [FromHeader(Name = "<header-name>") attribute is crutial for reading the headers on the controller level.

	public class TodoHeaders
	{
		[FromHeader(Name = "header1")]

Documenting JS/TS Code using JSDoc & Typedoc

Initialize the Node.js project using NPM:

> npm init -y

Update the package.json to use ES Modules

Angular Frontend & SSR Deployment on IIS

Videos

Angular Front

Deploy angular app to IIS - YouTube (Kudvenkat) https://www.youtube.com/watch?v=VkGmaVm6-IQ

Angular 15 deployment in IIS Server | Hosting angular in IIS Server | Nihira Techiees - YouTube

Upload the image with a preview using HTML, CSS & JavaScript

image

Photo by Helena Lopes from Pexels

Code below:

@MirzaLeka
MirzaLeka / http-client-nodejs.md
Last active December 30, 2023 22:09
Send, Receive Request and Handle Response in Node.js using HTTP module

HTTP Client in Node.js

Learn how to send a POST request using HTTP/S module in Node.js.

const http = require('http');

const user = {
  name: 'Super Mario',
 level: 94,
@MirzaLeka
MirzaLeka / csharp-dynamic-response.md
Last active September 21, 2023 22:22
C# - Get Dynamic Response

Retrieve Dynamic Response in C#

Subclasses for different purposes:

class User {
	public string name;
  	public int age;
	public User() {
		this.name = "Mirza";
@MirzaLeka
MirzaLeka / vba-array-of-obj.md
Created September 19, 2023 19:01
VBA array of objects

Array of Objects in VBA

Sub Button1_Click()

    Dim arr() As Object
    Dim data As Object
    
    ' Create the object
 Set data = CreateObject("Scripting.Dictionary")
@MirzaLeka
MirzaLeka / angular-form-validations.md
Last active July 18, 2023 19:27
Angular form input validaiton

Validations & Errors in Angular Reactive Forms

This document will teach you how to validate from control in Angular using Reactive Forms. Start by creating a simple form:

Step 1: Go to component module and import ReactiveFormsModule

@NgModule({
  declarations: [