This file contains 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
Fetch | |
https://github.github.io/fetch/ | |
This documents the polyfillable parts of the WHATWG fetch spec. | |
Usage synopsis (use the argument links to find out more): | |
fetch(url, options).then(function(response) { |
This file contains 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 React, { Component } from "react"; | |
import { render } from "react-dom"; | |
import "./index.css"; | |
class Widget extends Component { | |
state = { text: "" }; | |
handleChange = (e) => { | |
this.setState({ text: e.target.value }); | |
}; | |
render() { |
This file contains 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
.container { | |
display: grid; | |
grid-gap: 2px; | |
height: 100vh; | |
grid-template-rows: 1fr 1fr; | |
padding-bottom: 20px; | |
grid-auto-rows: 1fr 2fr; | |
grid-template-columns: repeat(auto-fill, minmax(100px, auto)); | |
} |
This file contains 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 React from 'react'; | |
import './style.css'; | |
class RegisterForm extends React.Component { | |
constructor() { | |
super(); | |
this.state = { | |
fields: {}, |
This file contains 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://codesandbox.io/s/x964kxp2vo?from-embed | |
import React, { Component, useState, useEffect, useRef } from "react"; | |
export const useField = ( | |
name, | |
form, |
This file contains 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 {AuthRequired} from 'common/AuthRequired' | |
import {memo, MouseEvent, useCallback, useState} from 'react' | |
import {ComposableMap, Geographies as RSMGeographies, Geography, Marker, ZoomableGroup} from 'react-simple-maps' | |
import {DoughnutChart} from './DoughnutChart' | |
import {useData} from './hooks' | |
import {StatsButton} from './StatsButton' | |
import {Tooltip} from './Tooltip' | |
import {A2CountriesUnion, Country, Geo, TooltipDirection} from './types' | |
const geoUrl = 'https://secret' |
This file contains 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 {Response as TotalUsersResponse} from '' | |
import {Response as WeeklyNumberOfSignupsByCountryResponse} from '' | |
import {Response as WeeklySignupsResponse} from '' | |
import {BarElement, CategoryScale, Chart as ChartJS, ChartData, LinearScale, Tooltip} from 'chart.js' | |
import ChartDataLabels from 'chartjs-plugin-datalabels' | |
import cn from 'classnames' | |
import {useOutsideAlerter} from 'common/hooks/useClickOutside' | |
import {Icon} from 'common/Icon' | |
import dayjs from 'dayjs' | |
import getConfig from 'next/config' |
This file contains 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
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; | |
contract FlashLoanBot { | |
address constant UNISWAP_ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; | |
address constant DAI_ADDRESS = 0x6B175474E89094C44Da98b954EedeAC495271d0F; | |
address constant USDC_ADDRESS = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; | |
address constant USDT_ADDRESS = 0xdAC17F958D2ee523a2206206994597C13D831ec7; |
OlderNewer