eth_blockNumber
: Returns the number of the most recent block.eth_getBlockByNumber
: Returns information about a block by block number.eth_getBlockByHash
: Returns information about a block by block hash.eth_getBlockTransactionCountByNumber
: Returns the number of transactions in a block from a block matching the given block number.eth_getBlockTransactionCountByHash
: Returns the number of transactions in a block from a block matching the given block hash.eth_getUncleCountByBlockNumber
: Returns the number of uncles in a block from a block matching the given block number.eth_getUncleCountByBlockHash
: Returns the number of uncles in a block from a block matching the given block hash.
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
const mock = jest.mock('@services/plaid', () => { | |
const PlaidService = jest.requireActual('@services/plaid'); | |
return class PlaidServiceMock extends PlaidService { | |
constructor() { | |
super(); | |
this.somefn = jest.fn(() => { | |
return { token: 'test' }; | |
}); | |
} | |
}; |
If you are not using CommonJS on NodeJS and having problems with the intellisense for getting into modules.
- Install
module-alias
andmodule-alias-jest
- Configure your
package.json
file with your aliases:
{
"_moduleAliases": {
"$root": ".",
"$src": "./src",
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
# Error detected while processing .vim/bundle/vim-fugitive/plugin/fugitive.vim: | |
cd && cd /.vim/bundle/vim-fugitive/plugin/ | |
git pull --rebase |
- Creates a file on your root: ~/.curlrc
- Adds
-k
inside of it.
This option allows curl to proceed and operate even for server connections otherwise considered insecure. The server connection is verified by making sure the server's certificate contains the right name and verifies successfully using the cert store.
See this online resource for further details: http://curl.haxx.se/docs/sslcerts.html
Write a function that takes in a non-empty array of integers that are sorted in ascending order and returns a new array of the same length with the squares of the original integers also sorted in ascending order.
Print the output like this: INPUT [1, 2, 3..] > OUTPUT [1, 4, 9..]
array = [1, 2, 3, 5, 6, 8, 9]
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
Given an array of positive integers representing the values of coins in your possession, | |
write a function that returns the minimum amount of change (the minimum sum of money) that you CANNOT create. | |
The given coins can have any positive integer value and aren't necessarily | |
unique (i.e., you can have multiple coins of the same value). | |
Examples: | |
``` | |
> {"coins": [5, 7, 1, 1, 2, 3, 22]} -> 20 | |
> {"coins": [1, 1, 1, 1, 1]} -> 6 |
- Test all changes before pushing a PR to the remote branch
- Squash commits in pr's
- Individual contributor's PR's can be Squashed and Merged on github
- Name commits intelligently inside yout reposity. They should follow this format (): . I.e.,
bug(ModuleName): Fixing merchant logos for....
4.1. Change Types:
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
# inside your project folder creates the node_modules with sudo and give it permission | |
sudo mkdir node_modules/ | |
sudo chmod 777 node_modules/ | |
# now you can install the dependencies with no need of '--unsafe-perm' or '--allow-root' | |
sudo npm i |