Skip to content

Instantly share code, notes, and snippets.

View doctorssm's full-sized avatar

Sergey Bogush doctorssm

View GitHub Profile
@arniebradfo
arniebradfo / any.component.html
Last active October 22, 2024 18:40
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>
var gulp = require("gulp"),
browserSync = require('browser-sync');
// Сервер
gulp.task('server', function () {
browserSync({
port: 9000,
server: {
baseDir: 'app'
}
@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active May 7, 2026 15:24
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html