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
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
/*! | |
* | |
* NEW VERSION AT https://github.com/c-kick/mobileConsole | |
* | |
* hnl.mobileConsole - javascript mobile console - v1.3.8 - 04/01/2021 | |
* Adds html console to webpage. Especially useful for debugging JS on mobile devices. | |
* Supports 'log', 'trace', 'info', 'warn', 'error', 'group', 'groupEnd', 'table', 'assert', 'clear' | |
* Inspired by code by Jakub Fiala (https://gist.github.com/jakubfiala/8fe3461ab6508f46003d) | |
* Licensed under the MIT license | |
* |
#!/bin/bash | |
# | |
# Run docker-compose in a container | |
# | |
# This script will attempt to mirror the host paths by using volumes for the | |
# following paths: | |
# * $(pwd) | |
# * $(dirname $COMPOSE_FILE) if it's set | |
# * $HOME if it's set | |
# |
import chai from 'chai'; | |
import sinonChai from 'sinon-chai'; | |
import chaiAsPromised from 'chai-as-promised'; | |
import chaiEnzyme from 'chai-enzyme'; | |
chai.use(sinonChai); | |
chai.use(chaiAsPromised); | |
chai.use(chaiEnzyme()); | |
// Make sure chai and jasmine ".not" play nice together |
class LruCache<T> { | |
private values: Map<string, T> = new Map<string, T>(); | |
private maxEntries: number = 20; | |
public get(key: string): T { | |
const hasKey = this.values.has(key); | |
let entry: T; | |
if (hasKey) { | |
// peek the entry, re-insert for LRU strategy |
FROM docker.io/node:8-stretch | |
LABEL net.skyplabs.maintainer-name="Paul-Emmanuel Raoul" | |
LABEL net.skyplabs.maintainer-email="skyper@skyplabs.net" | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends chromium |
# om namah shivay | |
machine: | |
node: | |
# current node version running in cloud functions as of 02 Jan 2018. see https://cloud.google.com/functions/docs/writing | |
version: 6.11.5 | |
dependencies: | |
pre: | |
# see https://cloud.google.com/sdk/gcloud/reference | |
- sudo /opt/google-cloud-sdk/bin/gcloud components update --quiet |
:80 { | |
root /serve | |
} |
This document will walk through creating a FaunaDB docker instance using the publicly available docker image. Three different types of deployments will be illustrated.
Finally, we will wrap up with some more general documentation around the various options available when using the public docker image.
/** | |
This is an ECMA-404 compliant JSON parser written in pure JS, with nice error | |
reporting. It's not super useful since it's ridiculously slow compared to | |
`JSON.parse()`, but I had fun writing it. | |
ISC License | |
Copyright (c) 2019 Ryan Grove <ryan@wonko.com> | |
Permission to use, copy, modify, and/or distribute this software for any purpose |