First, an exercise. Can we represent all of css with plain data? Let's try.
let redText = { color: 'red' };
Django channels are official way for implementing async messaging in Django.
The primary caveat when working with GraphQL subscription is that we can't serialize message before broadcasting it to Group of subscribers. Each subscriber might use different GraphQL query so we don't know how to serialize instance in advance.
See related issue
const path = require('path'); | |
const webpack = require('webpack'); | |
const merge = require('webpack-merge'); | |
const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin; | |
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin; | |
module.exports = (env) => { | |
// Configuration in common to both client-side and server-side bundles | |
const isDevBuild = !(env && env.prod); | |
const sharedConfig = { |
The following command will install the latest version of REX-Ray to /usr/bin/rexray on Linux systems:
$ sudo apt install s3fs
$ curl -sSL https://dl.bintray.com/emccode/rexray/install | sh
Depending on the Linux distribution REX-Ray will be registered as either a SystemD or SystemV service.
REX-Ray requires a configuration file for storing details used to communicate with storage providers. This can include authentication credentials and driver specific configuration options. After REX-Ray has been installed, copy and paste the contents below to a new file on the host at /etc/rexray/config.yml
to configure s3fs storage driver.
version: '2' | |
services: | |
minio: | |
image: minio/minio | |
container_name: miniobkp | |
ports: | |
- 9000:9000 | |
env_file: | |
- ./minio.env |
#!/usr/bin/env python3 | |
import subprocess | |
import sys | |
path = sys.argv[-1] | |
if path.startswith('/path/to/my/local/source/folder/'): | |
path = path.replace('/path/to/my/local/source/folder/', '/app/folder/') | |
subprocess.run(['docker-compose', 'exec', '-T', 'cross', 'sh', '-c', |
FROM ubuntu:16.04 | |
RUN apt-get update | |
RUN apt-get install -y git wget curl build-essential | |
RUN wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && dpkg -i erlang-solutions_1.0_all.deb | |
RUN apt-get update | |
RUN apt-get install erlang -y | |
RUN apt-get install -y elixir | |
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - |
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages