Skip to content

Instantly share code, notes, and snippets.

View nathgilson's full-sized avatar
🤖
launched tasksboard.app

Nathan nathgilson

🤖
launched tasksboard.app
View GitHub Profile
@nathgilson
nathgilson / OAuth2 integration with Firebase function
Created April 17, 2020 20:59
OAuth2 integration with Firebase function
// endpoint 1
express.get("/login", (req, res) => {
const query = req.query
if (query) {
const urlWithCode = url.format({
pathname: "https://[yourProject].com/oauth2",
query
})
return res.status(200).redirect(urlWithCode)
}
@nathgilson
nathgilson / README.txt
Created May 14, 2021 18:35
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.1+commit.df193b15.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS