Skip to content

Instantly share code, notes, and snippets.


Ben Vera soundcontrolben

Block or report user

Report or block soundcontrolben

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
View user.js
import axios from "axios";
import { pender } from "redux-pender";
import { createAction, handleActions } from "redux-actions";
function getDate() {
let utcDate = new Date(;
return utcDate.toUTCString();
const _getUser = (token) => {
View 22
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter, Route, Switch, Redirect } from 'react-router-dom';
import Main from 'containers/Main'
import Onboarding from 'containers/Onboarding'
import Login from 'containers/Login'
class App extends Component {
render() {
View old code
import React, { Component } from 'react';
import { Route, Link, Switch } from 'react-router-dom'
import Navigation from 'components/Navigation';
import FeaturedRelease from 'components/FeaturedRelease';
import ArtistContainer from 'containers/routes/ArtistContainer'
import DiscographyContainer from 'containers/routes/DiscographyContainer'
import ArtistProfileContainer from 'containers/routes/ArtistProfileContainer'
import NewsContainer from 'containers/routes/NewsContainer'
soundcontrolben / index.js
Created Apr 11, 2018
./node_modules/ethereumjs-util fix
View index.js
var createKeccakHash = require('keccak')
var secp256k1 = require('secp256k1')
var assert = require('assert')
var rlp = require('rlp')
var BN = require('bn.js')
var createHash = require('create-hash')
var Buffer = require('safe-buffer').Buffer
Object.assign(exports, require('ethjs-util'))
View Home.jsx
import React, { Component } from 'react';
import styled from 'styled-components';
//import web3 from 'web3';
const StyledHome = styled.div`
color: blue;
class Home extends Component {
constructor() {
View index.js
const express = require('express');
const app = express();
const path = require('path');
const httpProxy = require('http-proxy');
const renderer = require('./renderer');
app.get(/^\/([^a]|a[^p]|ap[^i]|api[^/]).*$|^\/$/, renderer);
app.use(express.static(path.join(__dirname, '../build')));
View apiServer.js
"use strict"
var express = require('express');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
const session = require('express-session');
const MongoStore = require('connect-mongo')(session);
var app = express();
You can’t perform that action at this time.