show dbs
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
i) when you want to 1st create the project by connecting to your github project | |
ii) create your project, push it to github. | |
iii) Goto your netlify dashboard, click on create new project by the | |
importing project. Select github branch which netlify should use to be pushing from. | |
iv) When you get to build files leave it as your default settings | |
v) in th build type for Functions directory: functions | |
vi) publish directory leave it empty. | |
vii) leave all other fields as default | |
vii) Sample project is located on your macos netlify-host-node-demo | |
Use the file format that way |
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
Step by step guide to deploy a flask application which was developed within anaconda virtual environment to Heroku server | |
At the root of your project | |
pip freeze > requirements.txt | |
# edited the content of the requirements.txt e.g | |
From | |
Jinja2 @ file:///tmp/build/80754af9/jinja2_1624781299557/work | |
To | |
Jinja2==3.0.1 |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >= 0.7.0; | |
// T1. mint enough BNB to your account for call contract creation and interaction | |
// T2. Deploy it to BSC testnet | |
// T3. Finish below coding tasks | |
contract Coin { | |
// The keyword "public" makes variables | |
// accessible from other contracts | |
address public minter; |
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
[ | |
{ | |
"Abia": [ | |
"Aba North", | |
"Aba South", | |
"Arochukwu", | |
"Bende", | |
"Ikwuano", | |
"Isiala-Ngwa North", | |
"Isiala-Ngwa South", |
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
[ | |
{ | |
"Abia": [ | |
"Aba North", | |
"Aba South", | |
"Arochukwu", | |
"Bende", | |
"Ikwuano", | |
"Isiala-Ngwa North", | |
"Isiala-Ngwa South", |
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
let shoppingingcart = require("./ShoppingCart.js"); | |
let items = function(name, price) { | |
this.name = name; | |
this.price = price; | |
}; | |
let Oranges = new items("oranges", 10); | |
let Bananas = new items("Bananas", 10); | |
let Rice = new items("Rice", 10); |
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 React from 'react'; | |
import './dashboard.scss'; | |
import axios from 'axios'; | |
// import './css/jquery.datatables.css'; | |
import env from '../../env'; | |
import InfiniteCalendar from 'react-infinite-calendar'; | |
import 'react-infinite-calendar/styles.css'; // only needs to be imported once |
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
// This gist entail using javascript to implement array multiplier | |
var arrayMulti = [5, 10, 7, 11]; | |
const arrayMap = arrayMulti.map((element) => {return element * 2;}); | |
console.log(arrayMap); |
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
const expect = require('chai').expect; | |
const getLocation = require('../utils/location'); | |
describe('Test Location API', () => { | |
it('expect res type to equal object', () => { | |
return getLocation().then(res => { | |
expect(typeof res).to.equal('object'); | |
}) | |
}); | |
it('expect county code to be NG', () => { | |
return getLocation().then(res => { |
NewerOlder