- Location - The location of the application. Usually just a URL, but the location can contain multiple pieces of information that can be used by an app
- pathname - The "file/directory" portion of the URL, like
invoices/123
- search - The stuff after
?
in a URL like/assignments?showGrades=1
. - query - A parsed version of search, usually an object but not a standard browser feature.
- hash - The
#
portion of the URL. This is not available to servers inrequest.url
so its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things. - state - Object associated with a location. Think of it like a hidden URL query. It's state you want to keep with a specific location, but you don't want it to be visible in the URL.
- pathname - The "file/directory" portion of the URL, like
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
## USD 格式 特色 |
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
from typing import Tuple, List | |
from math import log | |
rates = [ | |
[1, 0.23, 0.25, 16.43, 18.21, 4.94], | |
[4.34, 1, 1.11, 71.40, 79.09, 21.44], | |
[3.93, 0.90, 1, 64.52, 71.48, 19.37], | |
[0.061, 0.014, 0.015, 1, 1.11, 0.30], | |
[0.055, 0.013, 0.014, 0.90, 1, 0.27], |
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
/* | |
* Returns an array with the new interest rate when two companies (A and B) swap their interest rate on an arbitrage operation. | |
* [New cost for company A, new cost for company B] | |
* fixedA<number>: The fixed interest rate of a loan for the company A. | |
* variableA<number>: The variable interest rate of a loan for the company A. | |
* fixedB<number>: The fixed interest rate of a loan for the company B. | |
* variableB<number>: The variable interest rate of a loan for the company B. | |
* winA<number>: Part (between 0 and 1) of the arbitrage benefits company A will get. | |
* winB<number>: Part (between 0 and 1) of the arbitrage benefits company B will get. | |
* aIsFixed<boolean>: If true, the initial interest rate of A is fixed and the new interest rate is variable and viceversa. |
- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
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
#! /bin/bash | |
# ECHO COMMAND | |
# echo Hello World! | |
# VARIABLES | |
# Uppercase by convention | |
# Letters, numbers, underscores | |
NAME="Bob" | |
# echo "My name is $NAME" |
Insert Documents — MongoDB Manual 3.6
db.collection.insertOne()
db.collection.insertMany()
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 requests | |
import datetime | |
import operator | |
host = 'https://api.binance.com' | |
priceURL = host + '/api/v3/ticker/price' | |
priceResponse = requests.get(priceURL) | |
priceResponseJSON = priceResponse.json() | |
# {'symbol': 'ETHBTC', 'price': '0.07608700'}: 1 ETH = 0.0760 BTC |
NewerOlder