This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FOO=foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| contract SimpleStorage { | |
| uint storedData; | |
| function SimpleStorage() { | |
| storedData = 10; | |
| } | |
| function subtract() returns (uint retVal) { | |
| storedData -= 1; | |
| return storedData; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NotFoundError } from './errors'; | |
| export default class QueryResult { | |
| constructor(p = Promise.resolve()) { | |
| this.promise = p; | |
| } | |
| null() { | |
| return new this.constructor((async () => { | |
| try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use rustler::{Env, LocalPid}; | |
| mod atoms { | |
| rustler::atoms! { | |
| foo, | |
| bar, | |
| foobar | |
| } | |
| } |
OlderNewer