Skip to content

Instantly share code, notes, and snippets.

@meowsbits
meowsbits / aligning-images.md
Created March 13, 2019 10:49 — forked from DavidWells/aligning-images.md
Guide to aligning images in github readme.md files

Aligning images

left alignment

This is the code you need to align images to the left:

@meowsbits
meowsbits / lazy_evaluation.go
Created April 29, 2019 14:31 — forked from nickcarenza/lazy_evaluation.go
Golang Lazy Evaluation
package main
import (
"time"
)
type LazyInt chan func() int
// Can't use pointer receiver: invalid operation: l <- (func literal) (send to non-chan type *LazyInt)
func (l LazyInt) Future(i int) {
@meowsbits
meowsbits / main.go
Created January 28, 2020 00:35 — forked from cryptix/main.go
using go/ast to find specific function calls and the values of a parameter
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
)
@meowsbits
meowsbits / EIP1884.md
Created March 2, 2020 12:47 — forked from ritzdorf/EIP1884.md
Recently Executed Transactions affected by EIP1884

Recently Executed Contracts with Issues in EIP 1884

EIP 1884 is set to be implemented into the upcoming Ethereum 'Istanbul' hard fork. It

  • increases the cost of opcode SLOAD from 200 to 800 gas
  • increases the cost of BALANCE and EXTCODEHASH from 400 to 700 gas
  • adds a new opcode SELFBALANCE with cost 5.
84: cumulative: 5505330 gas: 280358 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0x05cf5ec99628ed509e2f1bd38055eaec8c1e3c84d125fb154b2d502d0552c657 logs: [0xc0000d3ce0] bloom: 00000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000200000000000000100000000000000000000004000000000008000000000000100000000000040000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000220000000000000000000800000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000 state:
85: cumulative: 5526330 gas: 21000 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0x97ea613d80a11d900b059324815d75c218ae4a150b3cd44afba3c7f4d96d4491 logs: [] bloom: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000