- Create a .gitignore file in the git repo if it doesn't have one
touch .gitignore
- Open up the .gitignore and add the following line to the file
/node_modules
/* | |
Consider the different contexts in which you might use this dropdown and what changes might be necessary to make it more flexible. | |
//Answer: I would consider using React Hooks (I think Hooks makes it more readable and manageable), also in it will be more flexible to implement Redux in the future. | |
Follow up question | |
//Answer: this would be included in DropdownItem Component and wrapped within componentDidMount() life cycle method | |
*/ |
// JavaScript Countdown Timer | |
let endDate = new Date("Dec 25, 2020 00:00:00").getTime(); | |
const timer = setInterval(tick, 1000) | |
function tick () { | |
let currentTime = new Date().getTime(); | |
let timeLeft = endDate - currentTime; |
Having trouble with your WP Page CSS not updating? Give these steps a try!
Go to functions.php
in Appearance/Theme Editor
Replace wp_enqueue_style('[your theme]');
With wp_enqueue_style('[your theme]', get_template_directory_uri() . '/css/main.css', array(), filemtime(get_template_directory() . '/css/main.css'), false);
Oh and...
require('@nomiclabs/hardhat-waffle'); | |
require('dotenv').config(); | |
const HARMONY_PRIVATE_KEY = process.env.PRIVATE_KEY; | |
module.exports = { | |
solidity: '0.8.0', | |
networks: { | |
testnet: { | |
url: 'https://api.s0.b.hmny.io', |
anchor deploy
and I ran into this problem.
error: Invalid value for '--program-id <PROGRAM_ID>': unrecognized signer source There was a problem deploying: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "" }.
My filepath folder has "space"
in its name .../solana sandbox/cool-project/target/deploy/chicken.so
Changed it to .../solana-sandbox/cool-project/target/deploy/chicken.so
anchor deploy
again and it works!