Skip to content

Instantly share code, notes, and snippets.

Micah Zoltu MicahZoltu

Block or report user

Report or block MicahZoltu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
MicahZoltu / merkle-patritia-proof.sol
Last active Apr 1, 2020
Merkle Patritia Proof Validator in Solidity
View merkle-patritia-proof.sol
pragma solidity 0.6.4;
library RLP {
uint constant DATA_SHORT_START = 0x80;
uint constant DATA_LONG_START = 0xB8;
uint constant LIST_SHORT_START = 0xC0;
uint constant LIST_LONG_START = 0xF8;
uint constant DATA_LONG_OFFSET = 0xB7;
uint constant LIST_LONG_OFFSET = 0xF7;


  1. User has 10 ETH.
  2. User wants 10 ETH worth of an insured YES position.
  3. User buys 10 complete sets, giving them 10 YES + 10 NO + 10 INVALID.
  4. User trades 10 NO for x YES on the open market.
  5. User ends up with 10+x YES + 10 INVALID.
  • If the market resolves as YES, they get 10+x ETH (net profit == x).
  • If the market resolves as NO, they get 0 ETH (net loss == VAR).
  • If the market resolves as INVALID, they get 10 ETH (net neutral).
View gist:ef452e9f51c0a01000279dcd4c01f7ec
"xhrStatus": "complete",
"request": {
"method": "GET",
"url": "api/datasources/proxy/2/query",
"params": {
"db": "my_database",
"q": "SELECT last(\"number\") FROM \"my_measurement\" WHERE time >= now() - 30m GROUP BY time(1s) fill(previous)",
"epoch": "ms"
MicahZoltu / discord.js
Last active May 16, 2020
Reaction Hotkey for various chat clients.
View discord.js
window.addEventListener('keydown', event => {
if (!event.shiftKey || !event.ctrlKey || event.key != '|') return
const container = document.querySelector('main.chatContent-a9vAAp > .messagesWrapper-3lZDfY > .scrollerWrap-2lJEkd > .scroller-2FKFPG > div > div:nth-last-of-type(2)')
container.dispatchEvent(new MouseEvent('mousemove', { bubbles: true }));
container.querySelector('div[aria-label="Add Reaction"]').click()
MicahZoltu / repro.log
Created Jul 21, 2018
View repro.log
This file has been truncated, but you can view the full file.
C:\Program Files\dotnet\sdk\2.1.302\MSBuild.dll -nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,C:\Program Files\dotnet\sdk\2.1.302\dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,C:\Program Files\dotnet\sdk\2.1.302\dotnet.dll -maxcpucount -target:Restore -verbosity:m -verbosity:diag tests.csproj
Build started 2018-07-21 17:43:50.
Environment at start of build:
APPDATA = C:\Users\micah\AppData\Roaming
CommonProgramFiles = C:\Program Files\Common Files
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
CommonProgramW6432 = C:\Program Files\Common Files
MicahZoltu / Program.cs
Last active Jul 21, 2018
Restore Repro
View Program.cs
using System;
namespace App
class Program
static void Main(String[] args)
var program = new Program();

Keybase proof

I hereby claim:

  • I am micahzoltu on github.
  • I am micahzoltu ( on keybase.
  • I have a public key ASClorQtzJePn4dedMK71QZ6-ilRAz6_Tyb3RKb30sH7jQo

To claim this, I am signing this object:

MicahZoltu / ABI
Created May 22, 2017
Unexpected Parity Solidity Output
View ABI
MicahZoltu / ZoltuAutoLevelCrafting.psc
Last active Nov 2, 2016
Skyrim Auto-Level Crafting Mod
View ZoltuAutoLevelCrafting.psc
Scriptname ZoltuAutoLevelCrafting extends Quest Hidden
Actor Property PlayerRef Auto
String[] allNonCraftingSkills
Int version
event OnInit()
View app.html
<link rel="stylesheet" type="text/css" href="../styles/styles.css">
<require from='./nav-bar'></require>
<nav-bar router.bind="router"></nav-bar>
<div class="page-host">
You can’t perform that action at this time.