Skip to content

Instantly share code, notes, and snippets.

View pavan-idapalapati's full-sized avatar

Pavan Kumar pavan-idapalapati

  • Divami Design Labs
  • Hyderabad, India
View GitHub Profile
@pavan-idapalapati
pavan-idapalapati / response.json
Created June 7, 2018 14:38
patients Response
{
"data": [
{
"id": "P100207",
"external_id": "",
"provider": null,
"firstName": "Bill",
"middleName": "k",
"lastName": "Johnson",
HTML
<div *ngFor="let patient of patients;let i=index" [id]="'scroll'+i" class="patient-list-{{patient.id}}">
<div class="d-flex list-row-padding align-items-center ml-4 mr-4 patients-table-data border border-top-0 border-left-0 border-right-0 "
[id]="'patient'+i">
<div class="col-1 pr-1 circle-padding mr-1" *ngIf="patient.active==true && (patient.stats && patient.stats.los)">
<span class="d-flex rounded-circle justify-content-center align-items-center round-circle text-white" [ngClass]="getLos(patient)">{{patient.stats.los}}</span>
</div>
<div class="col-1 pr-1 circle-padding mr-1" *ngIf="patient.active==false">
This file has been truncated, but you can view the full file.
{
"data": [
{
"id": 100291,
"type": "internal",
"code": "",
"first_name": "wewqewq",
"last_name": "213213",
"email": "anilkumar123@gmail.com",
"registered": false,
RequestURL: https: //api.hsourcesandbox.net/api/v1/nursesRequestMethod: POSTStatusCode: 400BadRequestRemoteAddress: 23.20.217.143: 443ReferrerPolicy: no-referrer-when-downgradeAccess-Control-Allow-Origin: *Access-Control-Expose-Headers: AuthorizationCache-Control: no-cache,
privateConnection: keep-aliveContent-Length: 80Content-Type: application/jsonDate: Fri,
18Jan201908: 27: 16GMTServer: nginx/1.12.1Vary: OriginX-Powered-By: PHP/7.1.25X-RateLimit-Limit: 5000X-RateLimit-Remaining: 4998ProvisionalheadersareshownAccept: application/json,
text/plain,
*/*Authorization: bearereyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJodHRwOlwvXC9hcGkuaHNvdXJjZXNhbmRib3gubmV0XC9hcGlcL3YxXC9hdXRoXC9yZWZyZXNoIiwiaWF0IjoxNTQ3NzkwNzE1LCJleHAiOjE1NDc4MDg3MjQsIm5iZiI6MTU0Nzc5NzkyNCwianRpIjoiNlpjNkpuYVI2RGMweUFlYSIsInN1YiI6MTAwMDc1LCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.DMnMfiHUF_EXcM-zrapoSiG29ih3WM6Tag37X3NRlGdoZIPovRBJnWpSwVFcpMYAsLVEgc_nf2GJ9E1GxY4m6wContent-Type: application/jsoncontentType: applica
{
"first": "rajitha",
"middle": "yadav",
"last": "kothapally",
"phone": "960.315.3514-3213",
"alt_phone": "312.312.3213",
"email": "rajitha112233@www.com",
"notes": "for testing purpose",
"phone_type": "Landline",
"alt_phone_type": "Mobile",
{
"first": "rajitha",
"middle": "k",
"last": "kothapally",
"phone": "343.243.2432-4324",
"alt_phone": "324.243.2342-3432",
"email": "fgdhfjhkj@gmail.com",
"notes": "testing purpose",
"phone_type": "Landline",
"alt_phone_type": "Landline",
{
"data": [
{
"id": 103000,
"parent_id": 0,
"child_order_id": "",
"revision": "",
"external_id": "",
"nsId": 835222,
"orderType": "Delivery",
{
"data": [
{
"id": 103000,
"parent_id": 0,
"child_order_id": "",
"revision": "",
"external_id": "",
"nsId": 835222,
"orderType": "Delivery",
import { combineLatest as observableCombineLatest, of as observableOf, Observable } from 'rxjs';
import { mergeMap, catchError, map, tap } from 'rxjs/operators';
import { Injectable } from '@angular/core';
import { locationService } from './location.service';
import { ApiCallsService } from './apicalls.service';
import * as moment from 'moment';
// import 'moment-timezone';
import { constants } from '../modules/utilities/constants';
// import { communicationService } from './communication.service';
@pavan-idapalapati
pavan-idapalapati / throttleDebounce,js
Created May 22, 2019 05:14
Debounce and throttle functions
function throttle(callback, limit) {
var tick = false;
return function () {
if (!tick) {
callback.call();
tick = true;
setTimeout(function () {
tick = false;
}, limit);
}