Skip to content

Instantly share code, notes, and snippets.

@dcharbonnier
dcharbonnier / gist:7fe4936cc6000a5f6538566581ea5908
Created November 14, 2016 12:20
istanbul ignore with grunt for typescript
grunt.loadNpmTasks('grunt-text-replace');
grunt.initConfig({
'replace': {
default: {
src: ['lib/**/*.js'],
overwrite: true,
replacements: [
{
from: 'var __extends = (this && this.__extends)',

@ngrx/store v3

Problems:

  • Users want to compose reducer tree across modules
  • Idea of a single reducer function makes it difficult for the library to dynamically augment the shape of the state tree
  • Turning control over to the library to build the root reducer limits the use of meta-reducers
  • Feature modules may inadvertently collide with the state of the root module
  • Library authors may want to leverage @ngrx/store in their projects and provide an easy way
@btroncone
btroncone / ngrxintro.md
Last active February 9, 2024 15:37
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

#!/bin/sh
# Script to compile vips from git for AWS lambda as dynamic binary
# Run on a fresh amzn-ami-hvm-2015.09.1.x86_64-gp2 image.
# Tested with image id ami-bff32ccc on t2.micro in eu-west-1.
set -e # abort on errors
# set -x # for debugging
echo Installing build dependencies...
@staltz
staltz / introrx.md
Last active April 18, 2024 15:33
The introduction to Reactive Programming you've been missing
@panuta
panuta / gist:1897940
Created February 24, 2012 05:14
Generate a document thumbnail (doc, xls, ppt and openoffice formats) in Ubuntu Server 10.04
  1. Install OpenOffice headless package

    $ sudo apt-get install openoffice.org-headless openoffice.org-java-common openoffice.org-writer openoffice.org-calc openoffice.org-impress
    
  2. Install UNO python library

$ sudo apt-get install python-uno unoconv