Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Amazon.S3;
using Amazon.S3.Model;
namespace S3Operations
{
class CreateObjectTask
{
@ZhenDeng
ZhenDeng / Acronyms
Last active February 22, 2024 04:00
DLMA -- Data load and matching application
BAU -- Business as usual
DHP -- DevOps Hosting Platform
IDP -- Internal developer platform
ECIF -- External Controlled, Internet Facing (public load balancers)
ECCF -- External Controlled, CBA Facing (web tier)
iCTR -- Internal Controlled (internal load balancers)
RST -- Restricted (app tier)
SEC -- Secure (database tier)
TLS -- Transport Layer Security
Definition:
Process: A process is an independent program that runs in its own memory space and has its own resources. It is a self-contained unit of execution with its own state, memory, and system resources.
Thread: A thread is a lightweight sub-process. It is the smallest unit of execution within a process and shares the same resources (like memory space) with other threads in the same process.
Independence:
Process: Processes are independent entities. Each process runs in isolation and does not directly share memory with other processes.
Thread: Threads within the same process share the same memory space and resources, allowing them to communicate more easily and efficiently than processes.
React.FormEvent<HTMLFormElement>
import { Directive, OnInit, HostListener, Output, EventEmitter, Input } from '@angular/core';
import { Subject, Subscription } from 'rxjs';
import { debounceTime } from 'rxjs/operators';
@Directive({
selector: '[appDebounceClick]'
})
export class DebounceClickDirective implements OnInit {
@Input() debounceTime = 500;
Angular 2+
ng.probe($0).componentInstance
AngularJS
angular.element($0).scope()
angular.element($0).injector().get('')
IF NOT EXISTS(SELECT * FROM Isp.DocumentType WHERE Name = 'Withdrawal Travel Ticket')
BEGIN
insert into Isp.DocumentType(Name, SubType, Code, Description, IndexInSubtype) values ('Withdrawal Travel Ticket', 'Withdrawal', 'Withdrawal Travel Ticket', 'Withdrawal Travel Ticket', 0)
END
%mat-field-bootstrap {
.mat-form-field-wrapper {
padding-bottom: 0;
}
.mat-form-field-infix {
border: 1px solid #dce6e6;
border-top: 1px solid #dce6e6 !important;
border-radius: 5px;
padding-left: 0.4375rem;
this.schoolYearArray = [...new Set(this.attendanceDetails.map(item => item.SchoolYear))];
import { ApplicationSection } from '../../enums';
import { ApplicationSectionTexts } from '../../constants/applicationSectionTexts';
export class ValidationData {
[ApplicationSection.ApplicationStudent]: SectionValidationData;
[ApplicationSection.ApplicationContact]: SectionValidationData;
[ApplicationSection.ApplicationStudentVisa]: SectionValidationData;
[ApplicationSection.ApplicationStudentSchoolProgram]: SectionValidationData;
[ApplicationSection.ApplicationStudentAccommodationWelfare]: SectionValidationData;
[ApplicationSection.ApplicationStudentEnglishProficiency]: SectionValidationData;