Skip to content

Instantly share code, notes, and snippets.

View nopslip's full-sized avatar
👾

zKWolf nopslip

👾
View GitHub Profile
pragma solidity >=0.7.0 <0.9.0;
contract LeafHash {
// encoded user_id, amount
event Encoded(bytes encoded_data);
// echo leaf_hash_1
event LeafHash1(bytes32 leaf_hash_1);

OXS Gitcoin Web Setup Guide For Beginners

Prerequisites

While you don't have to run Gitcoin Web from Docker it makes things much easier. For that reason, this guide will stick to a Docker based setup.

Install Docker - https://hub.docker.com/editions/community/docker-ce-desktop-mac/

Confirm docker & docker compose are running on the latest version

@nopslip
nopslip / PYTHON-OSX-DEV.md
Last active November 24, 2020 17:13
Quick notes on my favorite Python OSX dev env setup

Python development OSX setup/config notes

After working through a number of different local configs for Python development I've landed on this as my desired setup. My primary use cases are Django, stand alone scripts, and Heroku apps.

base setup (use homebrew for both)

https://github.com/pyenv/pyenv

use python pyenv-virtualenv

https://github.com/pyenv/pyenv-virtualenv

@nopslip
nopslip / vesting.sol
Last active November 12, 2020 21:15 — forked from rstormsf/vesting.sol
pragma solidity 0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
contract VestingVault12 {
using SafeMath for uint256;
using SafeMath for uint16;
sudo su postgres
psql -U postgres
postgres=> SELECT pg_reload_conf();

Keybase proof

I hereby claim:

  • I am nopslip on github.
  • I am zacharywolff (https://keybase.io/zacharywolff) on keybase.
  • I have a public key whose fingerprint is DA3D 9E22 F4CE EBF0 328D 8856 D373 1464 F71C C532

To claim this, I am signing this object: