Skip to content

Instantly share code, notes, and snippets.

Waiting for the next full moon

Önder Ceylan onderceylan

Waiting for the next full moon
View GitHub Profile
onderceylan / ngsw-config.json
Last active Mar 3, 2019
Build a production ready PWA with Angular and Firebase - ngsw-config.json
View ngsw-config.json
"index": "/index.html",
"appData": {
"version": "1.1.0",
"changelog": "Added better resource caching"
"assetGroups": [
"name": "shell",
"installMode": "prefetch",
View nyan.html
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
html {
background: radial-gradient(ellipse at center, #fff4fc 65%, #ffe8fd 100%);
width: 100%;
height: 100%;

Keybase proof

I hereby claim:

  • I am onderceylan on github.
  • I am onderceylan ( on keybase.
  • I have a public key ASCmsqA5Sdej2S3eJfHDu0B_XrJJ5t6u_mOpaNFD4e0_bwo

To claim this, I am signing this object:

onderceylan / settings.module.ts
Last active Jan 13, 2021
Persistent storage of your store - feature module
View settings.module.ts
import { NgModule } from '@angular/core';
import { StoreModule } from '@ngrx/store';
import { EffectsModule } from '@ngrx/effects';
import * as fromFeature from './store';
imports: [
StoreModule.forFeature(fromFeature.FEATURE_NAME, fromFeature.reducers, {
metaReducers: fromFeature.metaReducers,
onderceylan / events.reducer.ts
Last active Apr 26, 2021
Entity adapter and some of the CUD operations - reducer
View events.reducer.ts
import * as fromEvents from '../actions/events.action';
import { createEntityAdapter, EntityAdapter, EntityState } from '@ngrx/entity';
import { Event } from '../../models/event.model';
export interface EventsState extends EntityState<EventEntity> {
loaded: boolean;
loading: boolean;
error: Error;