Skip to content

Instantly share code, notes, and snippets.

View baharalidurrani's full-sized avatar
🐧
Liberation

Bahar A. Dürrani baharalidurrani

🐧
Liberation
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<MESSAGE xmlns="http://www.mismo.org/residential/2009/schemas"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ULAD="http://www.datamodelextension.org/Schema/ULAD"
xmlns:DU="http://www.datamodelextension.org/Schema/DU"
MISMOReferenceModelIdentifier="3.4.032420160128" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.mismo.org/residential/2009/schemas DU_Wrapper_3.4.0_B324.xsd">
<ABOUT_VERSIONS>
<ABOUT_VERSION>
<CreatedDatetime>2019-02-22T14:24:17Z</CreatedDatetime>
@baharalidurrani
baharalidurrani / app-engine-action.yml
Created December 20, 2021 20:02
Deploy a Typescript app to GCP App Engine Using GitHub Action
# Using https://github.com/google-github-actions/deploy-appengine
# The following example service account permissions could be required for a Typescript project.
# *****
# App Engine Admin
# Cloud Build Editor
# Compute Admin
# Service Account User
# Storage Admin
# *****
@baharalidurrani
baharalidurrani / decrypt.ts
Last active August 4, 2021 16:50
Decrypt one level of a generic object without compromising on it's structure
type IData = { [keys: string]: number };
const encrypted1: IData = {
a: 10,
b: 20,
c: 30,
};
const encrypted2: IData = {
d: 40,
@baharalidurrani
baharalidurrani / center.schema.ts
Created November 18, 2020 20:59
Center Model having an array of ObjectIds of Physician Models
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document, Types } from 'mongoose';
import { ICenter } from 'src/types';
import { Physician } from '.';
export type CenterDocument = Center & Document;
@Schema()
export class Center implements ICenter {
@Prop()