Skip to content

Instantly share code, notes, and snippets.

@zkkmin
zkkmin / temp.json
Created November 22, 2020 21:39
temp
{
"openapi": "1.0.0",
"info": {
"title": "Doctor discovery service API",
"description": "Doctor discovery service API.\n",
"contact": {
"email": "support@docdoc.com"
},
"version": "v.1.0.0"
},
@zkkmin
zkkmin / ICD10CM-sample.xml
Created June 25, 2020 23:56
Sample of ICD10CM
<?xml version="1.0" encoding="utf-8"?>
<ICD10CM.index>
<version>2020</version>
<title>ICD-10-CM INDEX TO DISEASES and INJURIES</title>
<letter>
<title>A</title>
<mainTerm>
<title>Aarskog's syndrome</title>
<code>Q87.19</code>
</mainTerm>
@zkkmin
zkkmin / question.txt
Last active November 4, 2019 00:41
Question
Programming questions
---------------------
1)
Write a program that prints the numbers from 1 to 100.
But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”.
For numbers which are multiples of both three and five print “FizzBuzz”."
2)
curl -s https://www.docdoc.com.sg/medicaltourism_sitemap_profile_1.xml.gz | zcat | xq -r '.urlset.url | map(.loc) | .[]' | sed -e 's/\.com/\.com\.sg/' | xargs curl --user-agent "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" -s -I -L --write-out "============== END ==============\n" | tee medicaltourism_sitemap_profile_1_crawl.txt
pipeline {
agent any
environment {
NETWORK_NAME = "nextgen-backend-testnet-${BRANCH_NAME.toLowerCase()}-b${BUILD_NUMBER}"
BUILD_NAME = "nextgen-test/${BRANCH_NAME.toLowerCase()}:B${BUILD_NUMBER}"
}
stages {
stage('Build') {
steps {
echo "Docker network name: ${NETWORK_NAME}"
@zkkmin
zkkmin / login.component.ts
Created October 13, 2018 02:43
Login component
import { Component, OnInit } from '@angular/core';
import {FormGroup, Validators, FormBuilder} from '@angular/forms';
import { Router } from '@angular/router';
import { AuthService } from '../auth.service';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
@zkkmin
zkkmin / FORMGROUP-login.component.html
Created October 12, 2018 23:48
Form group control in login component template
<section class="hero ">
<div class="hero-body">
<div class="container">
<div class="column is-8 is-offset-2">
<div>
<h3 class="title has-text-grey">Login</h3>
<p class="subtitle has-text-grey">Please login to proceed.</p>
<div class="box">
<div class="notification is-danger" [hidden]="!error">
@zkkmin
zkkmin / app.module.ts
Created October 12, 2018 23:12
App Module for JWT Angular
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { LoginComponent } from './login/login.component';
import { ReactiveFormsModule } from '@angular/forms'; // Reactive form module added
import { AppRoutingModule } from './/app-routing.module';
import { DashboardComponent } from './dashboard/dashboard.component';
@zkkmin
zkkmin / app-routing.module.ts
Created October 11, 2018 23:03
App router for module
import { NgModule } from '@angular/core';
import { RouterModule, Route } from '@angular/router';
import { LoginComponent } from './login/login.component';
import { DashboardComponent } from './dashboard/dashboard.component';
const routes = [
{ path: 'login', component: LoginComponent },
{ path: 'dashboard', component: DashboardComponent }
]
@zkkmin
zkkmin / login.component.html
Last active October 11, 2018 22:41
Login component template
<section class="hero ">
<div class="hero-body">
<div class="container">
<div class="column is-8 is-offset-2">
<div>
<h3 class="title has-text-grey">Login</h3>
<p class="subtitle has-text-grey">Please login to proceed.</p>
<div class="box">
<div class="notification is-danger" [hidden]="!error">