https://askubuntu.com/questions/1035209/how-to-turn-off-screen-rotation-in-ubuntu-18-04-lts
$ sudo systemctl stop iio-sensor-proxy.service
$ sudo systemctl disable iio-sensor-proxy.service
| package main | |
| import( | |
| "fmt" | |
| "log" | |
| "os/exec" | |
| "strings" | |
| ) | |
| func main(){ |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Response> | |
| <Play loop="2">https://drive.google.com/uc?id=110Z0bLzKmYWASkCkpKb7g60x5TscOPtC</Play> | |
| </Response> |
| git filter-branch --index-filter \ | |
| 'git rm -rf --cached --ignore-unmatch path_to_file' HEAD |
| import axios from 'axios'; | |
| import { ethers } from 'ethers'; | |
| //import ERC721ABI from '../assets/erc721.json'; | |
| export async function getNFTsFromExplorer(userAddr, provider){ | |
| if (!userAddr) throw new Error('UserAddr is required'); | |
| if (!provider) throw new Error('Provider is required'); | |
| const fetchTokens = await getTokensFromExplorer(userAddr); | |
| const filteredTokens = filterTokens(fetchTokens); | |
| # @version 0.3.1 | |
| # (c) Curve.Fi, 2021 | |
| # Pool for USDT/BTC/ETH or similar | |
| interface ERC20: # Custom ERC20 which works for USDT, WETH and WBTC | |
| def transfer(_to: address, _amount: uint256): nonpayable | |
| def transferFrom(_from: address, _to: address, _amount: uint256): nonpayable | |
| def balanceOf(_user: address) -> uint256: view | |
| interface CurveToken: |
| # @version 0.2.4 | |
| # (c) Curve.Fi, 2020 | |
| # Pool for DAI/USDC/USDT | |
| from vyper.interfaces import ERC20 | |
| interface CurveToken: | |
| def totalSupply() -> uint256: view | |
| def mint(_to: address, _value: uint256) -> bool: nonpayable | |
| def burnFrom(_to: address, _value: uint256) -> bool: nonpayable |
https://askubuntu.com/questions/1035209/how-to-turn-off-screen-rotation-in-ubuntu-18-04-lts
$ sudo systemctl stop iio-sensor-proxy.service
$ sudo systemctl disable iio-sensor-proxy.service
| // $1.23 | |
| export const formatUSMoney = (x: string | number) => { | |
| return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(Number(x)) | |
| } | |
| // $123.23M | |
| export const formatCompactUSD = (x: number) => { | |
| return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', maximumSignificantDigits: 2, notation: "compact" , compactDisplay: "short" }).format(x) | |
| } |
| alias updateMixin="proxychains curl -L -o mixin_desktop.deb $(curl -s https://api.github.com/repos/MixinNetwork/flutter-app/releases/latest | grep "browser_download_url.*mixin_desktop_linux_amd64.deb" | cut -d : -f 2,3 | tr -d \") && sudo dpkg -i mixin_desktop.deb && rm mixin_desktop.deb" |