Skip to content

Instantly share code, notes, and snippets.

from web3 import Web3
import json, requests
def loadApiKey():
with open("web3-api-key","r") as f:
return f.read()
# TRY_WITH_GODWOKEN = True
TRY_WITH_GODWOKEN = False
from pprint import pprint
import hashlib
import json
def loadTargetAddresses():
with open('aidrop-targets','r') as f:
data = f.read()
return data.split('\n')
def hashhex(hexData):
interpolateNymsForRendering : Float -> NymTemplate -> NymTemplate -> NymTemplate
interpolateNymsForRendering interp start end =
{ structure =
{ eyeQuadInfo =
Result.map2
(\startEQInfo endEQInfo ->
{ sketchPlane =
--can ignore, not used in rendering
startEQInfo.sketchPlane
, eyeQuad =
import requests, json
# SUBGRAPH_ID =
# def apiUrl(apiKey, subgraphId):
# return "https://gateway.thegraph.com/api/" + apiKey + "/subgraphs/id/" + subgraphId
def authdApiUrl():
# with open('apikey','r') as f:
# apiKey = f.read()
type IWorker =
abstract member Work: World -> World
and World =
{Workers: IWorker List;
Food: int;
}
type Farmer() =
interface IWorker with
pragma solidity 0.5.10;
contract ERC20Interface {
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function allowance(address tokenOwner, address spender) public view returns (uint remaining);
function transfer(address to, uint tokens) public returns (bool success);
function approve(address spender, uint tokens) public returns (bool success);
function transferFrom(address from, address to, uint tokens) public returns (bool success);

Keybase proof

I hereby claim:

  • I am coinop-logan on github.
  • I am oglog (https://keybase.io/oglog) on keybase.
  • I have a public key ASChRPXWYL1lE71rMFYI7Lnm4mLadzzaH_62k1hka7au7go

To claim this, I am signing this object:

module Contracts.ToastytradeSell
exposing
( autorecallAvailable
, autorecallInterval
, autoreleaseAvailable
, autoreleaseInterval
, burn
, claim
, commit
, depositDeadlineInterval
#include <windows.h>
#include <SFML/Graphics.hpp>
#include <gl/GL.h>
#include <gl/GLU.h>
void glEnable2D() {
GLint iViewport[4];
//get a copy of the viewport
glGetIntegerv(GL_VIEWPORT, iViewport);
//A BurnableOpenService is instantiated with a specified provider and a commitThreshold.
//The customer is not set when the contract is instantiated.
//Anyone can become the customer by calling commit() with ether >= commitThreshold.
//The customer cannot change once this commitment has made.
//The constructor is payable, so the contract can be instantiated with initial funds.
//Only the customer can fund the Service after instantiation.
//All other functions of the contract are accessible only to the customer,