Skip to content

Instantly share code, notes, and snippets.

View jonathonyule's full-sized avatar

Jonathon Yule jonathonyule

View GitHub Profile
@jonathonyule
jonathonyule / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created November 28, 2021 05:53
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.8+commit.dddeac2f.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@jonathonyule
jonathonyule / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created October 12, 2021 04:48
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.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
# path to the image
# needs to be 72 DPI to be read properly
path = u"/Volumes/Macintosh HD/Users/jonathon/mcdonalds8.jpeg"
import random
# get the size of the image
w, h = imageSize(path)
size(w, h)
size(500,500)
import random
for x in range( 0, 500, 10 ):
for y in range( 0, 500, 10 ):
radius = random.randint( 1, 4 )
strokeWidth(0)
oval( x, y, radius, radius)
size(500,500)
import random
for x in range( 0, 500, 10 ):
for y in range( 0, 500, 10 ):
radius = random.randint( 1, 4 )
oval( x, y, radius, radius)