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
{ | |
"openapi": "3.0.0", | |
"info": { | |
"title": "NEAR Enchanced API (by Pagoda Inc)", | |
"version": "0.1" | |
}, | |
"servers": [{ | |
"url": "https://near-enhanced-api-mainnet.fly.dev/" | |
}], | |
"paths": { |
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
{"swagger":"2.0","definitions":{"BalancesResponse":{"type":"object","properties":{"balances":{"type":"array","items":{"type":"object","properties":{"balance":{"type":"string"},"contract_account_id":{"type":"string"},"metadata":{"type":"object","properties":{"decimals":{"type":"integer","format":"int32"},"icon":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"}},"required":["decimals","name","symbol"]},"standard":{"type":"string"}},"required":["balance","metadata","standard"]}},"block_height":{"type":"string"},"block_timestamp_nanos":{"type":"string"}},"required":["balances","block_height","block_timestamp_nanos"]},"FtMetadataResponse":{"type":"object","properties":{"block_height":{"type":"string"},"block_timestamp_nanos":{"type":"string"},"metadata":{"type":"object","properties":{"decimals":{"type":"integer","format":"int32"},"icon":{"type":"string"},"name":{"type":"string"},"reference":{"type":"string"},"reference_hash":{"type":"string"},"spec":{"type":"string"},"symbol":{"type":"string"}} |
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
// https://youtu.be/2WXaosLThBY | |
import React, { useState, useEffect } from "react"; | |
import ReactEcharts from "echarts-for-react"; | |
import echarts from "echarts"; | |
import { Tabs, Tab } from "react-bootstrap"; | |
import StatsApi, { AccountsByDate } from "../../libraries/explorer-wamp/stats"; | |
import { Props } from "./TransactionsByDate"; |
I hereby claim:
- I am frol on github.
- I am frolvlad (https://keybase.io/frolvlad) on keybase.
- I have a public key whose fingerprint is 88F7 06C1 6FC6 C675 B90D DE40 BAD8 9512 3D14 D770
To claim this, I am signing this object:
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 { context, storage, logging, ContractPromise, util } from "near-runtime-ts"; | |
export class AddArgs { | |
a: i32; | |
b: i32; | |
}; | |
export class MultiplyByArgs { | |
x: i32; | |
}; |
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
$ ./scripts/start_localnet.py | |
**************************************************** | |
* Running NEAR validator node for Local TestNet * | |
**************************************************** | |
Using default tag: latest | |
latest: Pulling from nearprotocol/nearcore | |
c64513b74145: Pull complete | |
01b8b12bad90: Pull complete | |
c5d85cf7a05f: Pull complete |
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
SELECT COUNT(*) FROM dots.`2018_users`; | |
SELECT COUNT(*) FROM dots.`2018_problems`; | |
SELECT COUNT(*) FROM dots.`2018_solutions`; | |
SELECT COUNT(*) FROM dots.`2018_messages`; | |
SELECT * FROM dots.`2018_problems` WHERE complexity > 1; |
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
//[dependencies] | |
//serde_json = "1.0" | |
use serde_json::Value; | |
use std::collections::{HashMap, HashSet}; | |
const FILE_BUFFER_SIZE: usize = 50000; | |
//source data | |
#[derive(Default)] |
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
//! https://leetcode.com/problems/container-with-most-water/ | |
//! | |
//! Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, | |
//! ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). | |
//! Find two lines, which together with x-axis forms a container, such that the container contains | |
//! the most water. | |
//! | |
//! Note: You may not slant the container and n is at least 2. | |
fn max_area_brute_force(height: Vec<i32>) -> i32 { |
NewerOlder