This doc contains resources for the Workshop delivered on September 28, 2020 for ETHOnline on Building on Matic.
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
location /:CUSTOM-PATH/ { | |
proxy_pass http://127.0.0.1:<PORT>/:CUSTOM-PATH/; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_buffering off; | |
proxy_http_version 1.1; | |
# Also requires websocket: | |
proxy_set_header Upgrade $http_upgrade; |
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
from smtplib import SMTP | |
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
from jinja2 import Environment, FileSystemLoader | |
import os | |
env = Environment( | |
loader=FileSystemLoader('templates')) | |
The session won't be focussed on coding, but on the concepts that are involved in building a decentralised application. It is aimed towards an introduction to the programmable capabilities of Ethereum blockchain and the tools that will help you in your journey of becoming an Ethereum developer.
There are a few prerequisites however if you'd like to follow along the session. You should be familiar with Javascript, Node and HTML. And some familiarity with console will help.
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
// receiver.sol | |
pragma solidity ^0.5.11; | |
// IStateReceiver represents interface to receive state | |
interface IStateReceiver { | |
function onStateReceive(uint256 stateId, bytes calldata data) external; | |
} | |
contract receiver { |
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
/** | |
* fetches all message history from all the channels the bot is added in | |
* make sure to export SLACK_TOKEN in the environment before running the script - this is the bot token | |
*/ | |
const { WebClient } = require('@slack/web-api') | |
const fs = require('fs') | |
const token = process.env.SLACK_TOKEN | |
const web = new WebClient(token) | |
const csvWriter = require('csv-write-stream') | |
const path = require('path') |
- Error
TypeError: 'NoneType' object is not callable
in google colab while fitting a tensorflow model. - Resolved by restarting the session and re-running all cells
- Not sure what causes this.
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 Web3 = require('web3') | |
const rootRPC = '' | |
const childRPC = '' | |
const web3 = new Web3 () | |
// add pvt for owner account | |
const pvtKey = '' | |
// registry contract |
NewerOlder