Skip to content

Instantly share code, notes, and snippets.

@axolotl
axolotl / gist:a740e9a6376a943082bb920f2bb577f3
Created July 10, 2018 05:18
Verifying my Blockstack ID is secured with the address 1EaubhMLkW4XpB3VJq4d5TWrBc55KNYM4v https://explorer.blockstack.org/address/1EaubhMLkW4XpB3VJq4d5TWrBc55KNYM4v
Verifying my Blockstack ID is secured with the address 1EaubhMLkW4XpB3VJq4d5TWrBc55KNYM4v https://explorer.blockstack.org/address/1EaubhMLkW4XpB3VJq4d5TWrBc55KNYM4v
@axolotl
axolotl / gist:5fa03889238aaa6c543d75b87efb7e80
Last active July 10, 2018 05:01
Verifying my Blockstack ID is secured with the address 1EaubhMLkW4XpB3VJq4d5TWrBc55KNYM4v https://explorer.blockstack.org/address/1EaubhMLkW4XpB3VJq4d5TWrBc55KNYM4v
Verifying my Blockstack ID is secured with the address 1EaubhMLkW4XpB3VJq4d5TWrBc55KNYM4v https://explorer.blockstack.org/address/1EaubhMLkW4XpB3VJq4d5TWrBc55KNYM4v
Verifying my Blockstack ID is secured with the address 1EaubhMLkW4XpB3VJq4d5TWrBc55KNYM4v https://explorer.blockstack.org/address/1EaubhMLkW4XpB3VJq4d5TWrBc55KNYM4v
export const setCode = () => {
return {
type: 'SET_CODE',
code: calculateCode(),
}
}
export const setCode = () => ({
type: 'SET_CODE',
code: calculateCode(),
import React, { Component } from 'react';
import NameForm from './NameForm';
import Text from '../components/ExplainerText';
class SubmitScore extends Component {
submit = async values => {
const { score, dispatchScore, setNewScore, fetchScoresSuccess, fetchScores } = this.props;
await dispatchScore(values.name, score);
setNewScore('');
fetchScoresSuccess('');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
context: path.join(__dirname, 'src'),
entry: [
'./index.js',
],
devServer: {
proxy: {
const path = require('path');
const createPaginatedPages = require('gatsby-paginate');
exports.createPages = ({ boundActionCreators, graphql }) => {
const { createPage } = boundActionCreators;
const postTemplate = path.resolve(`src/templates/template.js`);
const timeframes = [
{
@axolotl
axolotl / withRoutes.js
Created October 20, 2017 00:39 — forked from dmachat/withRoutes.js
a simple store
class ParentComponent extends Component {
constructor(props) {
super(props);
this.state = {
data; // data lives here
};
this.setStore = this.setStore.bind(this);
}
// this gets called when the promise resolves in DataComponentOne
var React = require('react');
var PropTypes = require('prop-types');
var Link = require('react-router-dom').Link;
var api = require('../utils/api.js');
var dateFormat = require('dateformat');
class Forecast extends React.Component {
constructor(props) {
super(props);
this.state = {
@axolotl
axolotl / gist:d1051f80970d7987c9c25be898ac504a
Created September 4, 2017 16:04
visualization sample error log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'start' ]
2 info using npm@3.10.10
3 info using node@v6.11.2
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle nsf-interactive-reports@1.0.0~prestart: nsf-interactive-reports@1.0.0
6 silly lifecycle nsf-interactive-reports@1.0.0~prestart: no script for prestart, continuing
7 info lifecycle nsf-interactive-reports@1.0.0~start: nsf-interactive-reports@1.0.0
8 verbose lifecycle nsf-interactive-reports@1.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle nsf-interactive-reports@1.0.0~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/home/theofeau/projects/visualization-sample/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin