Skip to content

Instantly share code, notes, and snippets.

@glitch003
glitch003 / client_and_server_issue.js
Last active April 30, 2021 20:07
for await is having issues in chrome
// server code in handler: running on nodejs
await pipe(
stream,
(source) => (async function * () {
for await (const message of source) {
console.log(' > ')
console.log(message.toString())
yield 'response'
}
@glitch003
glitch003 / README.txt
Created April 28, 2021 01:51
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.7.6+commit.7338295f.js&optimize=false&runs=200&gist=
// this line is added to create a gist. Empty file is not allowed.
@glitch003
glitch003 / README.txt
Created April 28, 2021 01:23
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.7.6+commit.7338295f.js&optimize=false&runs=200&gist=
// this line is added to create a gist. Empty file is not allowed.
@glitch003
glitch003 / README.txt
Created April 28, 2021 01:20
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.7.6+commit.7338295f.js&optimize=false&runs=200&gist=
// this line is added to create a gist. Empty file is not allowed.
@glitch003
glitch003 / debugRopsten.js
Last active January 23, 2019 10:43
Use this to debug a ropsten TXN
// Try this first: http://s3.amazonaws.com/deco.network/debug/index.html
// first, paste in this
let txHash = '0x985ab562c4d6ea058f93f5118e4dc80110bbef534ce278a911e249a93aa18327'
var script = document.createElement('script');
@glitch003
glitch003 / BytesToTypes.sol
Created July 3, 2018 17:01
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.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.16;
/**
* @title BytesToTypes
* @dev The BytesToTypes contract converts the memory byte arrays to the standard solidity types
* @author pouladzade@gmail.com
*/
contract BytesToTypes {

Keybase proof

I hereby claim:

  • I am glitch003 on github.
  • I am rwiggum (https://keybase.io/rwiggum) on keybase.
  • I have a public key whose fingerprint is E776 263F BFE6 8BC2 0F16 00E4 F807 E59D 9CEC 6DE4

To claim this, I am signing this object: