Skip to content

Instantly share code, notes, and snippets.

View joeizang's full-sized avatar
😉

Joseph Izang joeizang

😉
View GitHub Profile
@joeizang
joeizang / examples...auctions...blind_auction.vy
Created April 18, 2024 22:50
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.8.25+commit.b61c2a91.js&optimize=false&runs=200&gist=
# Blind Auction. Adapted to Vyper from [Solidity by Example](https://github.com/ethereum/solidity/blob/develop/docs/solidity-by-example.rst#blind-auction-1)
#pragma version ^0.3.10
struct Bid:
blindedBid: bytes32
deposit: uint256
# Note: because Vyper does not allow for dynamic arrays, we have limited the
# number of bids that can be placed by one address to 128 in this example
MAX_BIDS: constant(int128) = 128
@joeizang
joeizang / .prettierrc.json
Created May 8, 2023 10:14
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.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
@joeizang
joeizang / README.md
Last active February 3, 2024 01:37 — forked from leosuncin/README.md
Install Powerline on Ubuntu 20.04
  1. Install powerline sudo apt install powerline source /usr/share/powerline/bindings/bash/powerline.sh

  2. Download and install fonts git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh

  3. Add this lines to .bashrc file if bash is what you use. You could add to other files like .zshrc etc. I use bash so there. This ensures that this switch is automatic when you start bash

.bashrc > if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then