Skip to content

Instantly share code, notes, and snippets.

View zeekay's full-sized avatar
🔜

Zach Kelling zeekay

🔜
View GitHub Profile
from web3 import Web3
import json
from threading import Thread
from queue import Queue
# Connect to an Ethereum node
infura_url = "https://mainnet.infura.io/v3/5708c51bf624479984fd7b28fc4c5f7c"
web3 = Web3(Web3.HTTPProvider(infura_url))
# Ensure connection is established
@zeekay
zeekay / clone-all.sh
Last active December 19, 2023 16:55
#!/usr/bin/env sh
repos='bridge bridge-react chat cli coreth dao docs exchange explorer faucet finance gsn indexer lattice lpm luxjs marketplace multiparty netrunner netrunner-sdk node oraclevm plugins-core safe safe-ios sites standard subnet-evm town ui vault vmsdk wallet zchain'
for r in $repos;
do git clone https://github.com/luxdefi/$r
done
// SPDX-License-Identifier: MIT
pragma solidity =0.6.12;
import { UniswapV2Pair } from "./uniswapv2/UniswapV2Pair.sol";
import { IUniswapV2Factory } from "./uniswapv2/interfaces/IUniswapV2Factory.sol";
import { IUniswapV2Router01 } from "./uniswapv2/interfaces/IUniswapV2Router01.sol";
import { TransferHelper } from "./uniswapv2/libraries/TransferHelper.sol";
import { IERC20 } from "./uniswapv2/interfaces/IERC20.sol";
import { SafeMath } from "./uniswapv2/libraries/SafeMath.sol";
{
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT Thu Jan 31 12:11:35 2019",
"version": "eosio::abi/1.1",
"structs": [
{
"name": "close",
"base": "",
"fields": [
{
"name": "owner",
import sys
def complete(argv, parser):
"""Return completions for commandline."""
if not argv[1:]:
return
if not argv[1] == 'complete':
return
from tabulate import tabulate
from collections import Iterable
def attr(obj, a):
"""
Returns value of attribute on an object, calling attribute if necessary.
"""
v = getattr(obj, a, None)
if callable(v):
@zeekay
zeekay / .block
Created July 2, 2017 02:20
bezier curve iterations with p5js
license: mit
# Install homebrew
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
export PATH=/usr/local/bin:$PATH
# Use homebrew to install a few necessities
brew install libevent
brew link libevent
brew install \
ack \
@zeekay
zeekay / candle.markdown
Created September 16, 2016 23:55
Candle
package gochimp3
import (
"encoding/json"
"strings"
"time"
)
func (address *Address) MarshalJSON() ([]byte, error) {
tmp := struct {