This tutorial is how to post website/application on IPFS and link with ENS domains(.eth).
- Try it: http://portalnetwork.eth
If you have any question please contact us for help:
# The code for my article with the same name. You can find it at the URL below: | |
# https://www.mvanga.com/blog/basic-music-theory-in-200-lines-of-python | |
# MIT License | |
# | |
# Copyright (c) 2021 Manohar Vanga | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
This tutorial is how to post website/application on IPFS and link with ENS domains(.eth).
If you have any question please contact us for help:
pragma solidity ^0.4.22; | |
// ECE 398 SC - Smart Contracts and Blockchain Security | |
// http://soc1024.ece.illinois.edu/teaching/ece398sc/spring2018/ | |
// Simpest possible duplex-micropayment channel | |
// - Funded with an up front amount at initialization | |
// - The contract creator is called "alice". The other party, "bob", is passed | |
// as an argument to the Constructor | |
// - There is no fixed deadline, but instead any party can initiate a dispute, | |
// which lasts for a fixed time |
// Report on "stuck" ether in empty contracts | |
// https://github.com/ethereum/EIPs/issues/156 | |
// Usage: node find-stuck-ether.js [startBlock] [endBlock] > report.txt | |
let Eth = require('ethjs'); | |
let eth = new Eth(new Eth.HttpProvider('http://localhost:8545')); | |
let ethutil = require('ethereumjs-util') | |
async function main() { |
Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
const I = x => x | |
const K = x => y => x | |
const A = f => x => f (x) | |
const T = x => f => f (x) | |
const W = f => x => f (x) (x) | |
const C = f => y => x => f (x) (y) | |
const B = f => g => x => f (g (x)) | |
const S = f => g => x => f (x) (g (x)) | |
const S_ = f => g => x => f (g (x)) (x) | |
const S2 = f => g => h => x => f (g (x)) (h (x)) |
//Creating a Mongo collection to keep track of events | |
EthEvents = new Mongo.Collection('ethEvents'); | |
EthEvents.attachSchema(new SimpleSchema({ | |
contractAddress: { | |
type: String, | |
index: true | |
}, | |
eventName: { | |
type: String, | |
index: true |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.