Skip to content

Instantly share code, notes, and snippets.

View govi2010's full-sized avatar

GOVINDA ALWANI govi2010

  • Una, Gujarat, India
View GitHub Profile
@govi2010
govi2010 / hosts
Created February 22, 2020 05:48 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@govi2010
govi2010 / any.component.html
Created September 14, 2017 14:36 — forked from arniebradfo/any.component.html
Angular *ngFor recursive list tree template
<h1>Angular 2 Recursive List</h1>
<ul>
<ng-template #recursiveList let-list>
<li *ngFor="let item of list">
{{item.title}}
<ul *ngIf="item.children.length > 0">
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container>
</ul>
</li>
</ng-template>
@govi2010
govi2010 / app.module.ts
Created January 27, 2017 09:19 — forked from cmckni3/app.module.ts
Angular 2 ngrx/store HMR
import {
Action,
ActionReducer,
combineReducers,
Store,
StoreModule
} from '@ngrx/store';
import { compose } from '@ngrx/core/compose';
// AppState is an interface custom to your application