What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-19 07:11:19
uniswap liquidity provider demo dapp
pragma solidity 0.7.1; import "https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/interfaces/IUniswapV2Router02.sol"; contract UniswapExample { address internal constant UNISWAP_ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5... Add solution -
Other 2021-11-18 16:55:24
post http with ionic
import { Component, OnInit } from '@angular/core'; import { HttpClient, Headers, RequestOptions } from '@angular/common/http'; @Component({ selector: 'app-home', templateUrl: 'home.page.html', styleUrls: ['home.page.scss'], }) export class HomePage... Add solution -
TypeScript 2021-11-18 07:52:10
router params angular
goProducts() { this.router.navigate(['/products'], { queryParams: { order: 'popular' } }); } http://localhost:4200/products?order=popular constructor(private route: ActivatedRoute) { } ngOnInit() { this.route.queryParams .filter(params =... Add solution -
Javascript 2021-11-17 19:23:20
either function monad in javascript
class Monad { // pure :: a -> M a pure = () => { throw "pure method needs to be implemented" } // flatMap :: # M a -> (a -> M b) -> M b flatMap = (x) => { throw "flatMap method needs to be implemented" } ... Add solution -
Other 2021-11-16 19:42:20
@Inject(PLATFORM_ID)private platformId
component.ts import { Component, Inject } from '@angular/core'; import { PLATFORM_ID } from '@angular/core'; import { isPlatformBrowser } from '@angular/common'; @Component({ selector: 'mySpecial', templateUrl: './mySpecial.component.html' }) export... Add solution
Best helpers
Ranking is empty