Skip to content

Instantly share code, notes, and snippets.

View luisfarfan's full-sized avatar

Luis Eduardo Farfan Melgar luisfarfan

  • Peru, Lima
View GitHub Profile
@bennadel
bennadel / app.component.ts
Created March 7, 2019 12:52
Using Pure Pipes To Generate NgFor TrackBy Identity Functions In Angular 7.2.7
// Import the core angular services.
import { Component } from "@angular/core";
// ----------------------------------------------------------------------------------- //
// ----------------------------------------------------------------------------------- //
interface Friend {
id: number;
name: string;
}
@scokmen
scokmen / HttpStatusCode.ts
Created April 25, 2017 11:10
Typescript Http Status Codes Enum
"use strict";
/**
* Hypertext Transfer Protocol (HTTP) response status codes.
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
*/
enum HttpStatusCode {
/**
* The server has received the request headers and the client should proceed to send the request body