Skip to content

Instantly share code, notes, and snippets.

View billyjov's full-sized avatar
😉
Keep Smiling

Billy Lando billyjov

😉
Keep Smiling
View GitHub Profile
@billyjov
billyjov / gist:d859c3fb860c7d8cbb600711905b4b81
Last active April 26, 2021 23:52 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

Update an existing fork

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo

git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git

@billyjov
billyjov / ngrxintro.md
Created October 22, 2018 17:37 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@billyjov
billyjov / clean-prestashop-db.sql
Last active December 15, 2021 23:23 — forked from julienbourdeau/clean-prestashop-db.sql
Clean PrestaShop database - Drop old and unless data
# Delete all logs
TRUNCATE ps_log;
# DELETE logs with date
DELETE FROM ps_log WHERE date_add < '2021-09-14 18:00:00';
# Delete old connection data (only used for stats)
# change 2016-02-01 00:00:00 according to you needs
import { AsyncPipe } from "@angular/common";
import { Component } from "@angular/core";
import { takeUntilDestroyed, toObservable } from "@angular/core/rxjs-interop";
import { injectNetwork } from "ngxtension/inject-network";
import {
distinctUntilChanged,
map,
skipWhile,
startWith,
switchMap,