Skip to content

Instantly share code, notes, and snippets.

Paul Berg PaulRBerg

Block or report user

Report or block PaulRBerg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@PaulRBerg
PaulRBerg / queries.js
Created May 18, 2019
Apollo query for StackOverflow question
View queries.js
import gql from "graphql-tag";
export const GET_STREAMS = gql`
query Streams($owner: String!) {
streams(orderBy: id, orderDirection: desc, where: { owner: $owner }) {
id
flow
owner
rawStream {
id
@PaulRBerg
PaulRBerg / Child.jsx
Created May 18, 2019
Child component for StackOverflow question
View Child.jsx
import React, { Component } from "react";
import classnames from "classnames";
import PropTypes from "prop-types";
import Slider from "rc-slider/lib/Slider";
import { withApollo } from "react-apollo";
import { withTranslation } from "react-i18next";
import Modal from "../../../components/Modal";
import PrimaryButton from "../../../components/PrimaryButton";
@PaulRBerg
PaulRBerg / Child.jsx
Created May 18, 2019
Child component for StackOverflow question
View Child.jsx
import React, { Component } from "react";
import classnames from "classnames";
import PropTypes from "prop-types";
import Slider from "rc-slider/lib/Slider";
import { withApollo } from "react-apollo";
import { withTranslation } from "react-i18next";
import Modal from "../../../components/Modal";
import PrimaryButton from "../../../components/PrimaryButton";
@PaulRBerg
PaulRBerg / Parent.jsx
Last active May 18, 2019
Parent component for StackOverflow question
View Parent.jsx
import React, { Component } from "react";
import classnames from "classnames";
import PropTypes from "prop-types";
import ReactGA from "react-ga";
import ReactTooltip from "react-tooltip";
import { connect } from "react-redux";
import { push } from "connected-react-router";
import { Query } from "react-apollo";
import { withTranslation } from "react-i18next";
@PaulRBerg
PaulRBerg / webpack.common.js
Created Apr 24, 2019
Webpack Common Config File
View webpack.common.js
const CleanWebpackPlugin = require('clean-webpack-plugin');
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: './src/index.js',
module: {
rules: [
{
enforce: 'pre',
@PaulRBerg
PaulRBerg / TruffleV5Report.txt
Last active Dec 30, 2018
Console output after running migrations
View TruffleV5Report.txt
Starting migrations...
======================
> Network name: 'development'
> Network id: 7923
> Block gas limit: 6721975
1_initial_migration.js
======================
@PaulRBerg
PaulRBerg / CloudFrontStaticWebsiteConfig.json
Created Dec 26, 2018
CloudFront static website config
View CloudFrontStaticWebsiteConfig.json
{
"CallerReference": "CloudFrontStaticWebsitConfig",
"Aliases": {
"Quantity": 1,
"Items": [
"example.com"
]
},
"DefaultRootObject": "",
"Origins": {
@PaulRBerg
PaulRBerg / S3StaticWebsitePolicy.json
Created Dec 26, 2018
Sample policy for a static website hosted on S3
View S3StaticWebsitePolicy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "S3StaticWebsitePolicy",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
@PaulRBerg
PaulRBerg / PlasmaAnnotations.md
Created Nov 9, 2018
Annotations on the original Plasma white paper
View PlasmaAnnotations.md

Annotations

Preface

The Plasma white paper written by Joseph Poon and Vitalik Buterin spurred a large wave of innovation, but it equally created confusion on many topics. One year later, Plasma slightly departed from its original vision, having now a rather expansive definition, with several different proposed implementations.

Let's briefly describe the recent history of Plasma, as it rolled out over the last year! Minimum Viable Plasma was introduced as a model adhering to most of the procedures outlined in the white paper, but it turned out that some parts, such as the multi-step process of state transitions, could be dramatically improved. Shortly after, Plasma Cash did just that by the means of non-fungible tokens, enabling simple, reliable and low-cost transactions. It is in particular applicable to high throughput but low or medium-state applications, like micropayments and exchanges. Other notable examples include Plasma Debit, Plasma Xt and More Viable Plasma.

Due to this amalgam of implementa

View keybase.md

Keybase proof

I hereby claim:

  • I am paulrberg on github.
  • I am paulrberg (https://keybase.io/paulrberg) on keybase.
  • I have a public key ASDQV-6T8VNpMmufezWYrJaZBDNkhq2Wv9A9HBoWI_ZbSgo

To claim this, I am signing this object:

You can’t perform that action at this time.