Skip to content

Instantly share code, notes, and snippets.

@dagi3d
dagi3d / .env
Last active August 29, 2015 14:01
dotenv issue
FOO=foo
contract SimpleStorage {
uint storedData;
function SimpleStorage() {
storedData = 10;
}
function subtract() returns (uint retVal) {
storedData -= 1;
return storedData;
import { useState } from 'react';
import api from '../api';
function useApi() {
const requests = {};
const proxy = new Proxy({}, {
get: (target, prop) => {
if (Object.prototype.hasOwnProperty.call(target, prop)) return target[prop];
return async () => {
import { NotFoundError } from './errors';
export default class QueryResult {
constructor(p = Promise.resolve()) {
this.promise = p;
}
null() {
return new this.constructor((async () => {
try {