Skip to content

Instantly share code, notes, and snippets.

View heyJonBray's full-sized avatar
🎩
the hat stays on

jonbray.eth heyJonBray

🎩
the hat stays on
View GitHub Profile
@heyJonBray
heyJonBray / artifacts...AsylumDAO.json
Created April 2, 2023 23:07
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.9+commit.e5eed63a.js&optimize=true&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
@heyJonBray
heyJonBray / artifacts...AsylumDAO_metadata.json
Created April 2, 2023 23:06
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.9+commit.e5eed63a.js&optimize=true&runs=200&gist=
{
"compiler": {
"version": "0.8.9+commit.e5eed63a"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
@heyJonBray
heyJonBray / .deps...npm...@openzeppelin...contracts@4.8.2...access...Ownable.sol
Created April 2, 2023 23:03
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.9+commit.e5eed63a.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
@heyJonBray
heyJonBray / VST-Trading-Strategy.md
Last active January 28, 2023 02:31
A day-trading strategy utilizing minimum reliable and tested indicators with built in risk management.

VST Day-Trading Strategy

Jon Bray

Strategy Created: 12-Sep, 2020 Current Revision: 25-Jan, 2023

This strategy is most accurate for day trading using chart intervals less than 30 min. Most notably 1m, 2m, 15m although by more carefully monitoring stop-loss (SL) and take-profit (TP), it can be applied to position trading using 1H and 4H chart intervals as well. This strategy is most effective when the current volume is at or above the daily average.

This strategy works well for the following asset classes: Crypto, Stocks, Commodities, Indexes

@heyJonBray
heyJonBray / WSI_GMM.groovy
Created December 5, 2022 18:05
Real-time watershed segmentation and morphological detection of stained pathology slides - Plugin for QuPath
/**
@version: 06.14.19
@author: Jon Bray
@author: jon@heyjonbray.com
*/
import qupath.lib.scripting.QPEx;
import qupath.lib.regions.RegionRequest;
import java.awt.image.BufferedImage;
import qupath.lib.objects.PathObject;
import javax.imageio.ImageIO;
@heyJonBray
heyJonBray / RGB2CMYK.java
Created December 5, 2022 17:48
RGB to CMYK Image Converter for ImageJ
import ij.*;
import ij.process.*;
import ij.plugin.PlugIn;
/**
This plugin is a Java implementation of the script defined by:
Stephan Saalfeld | http://pacific.mpi-cbg.de/wiki/index.php/RGB_to_CMYK
This converts an uncalibrated linear RGB image into an uncalibrated linear 32-bit CMYK stack.
*/
@heyJonBray
heyJonBray / keybase.md
Created September 30, 2021 12:23
Keybase verification

Keybase proof

I hereby claim:

  • I am heyjonbray on github.
  • I am heyjonbray (https://keybase.io/heyjonbray) on keybase.
  • I have a public key whose fingerprint is 7D7B 2F2B C44E 4213 FE17 4DB2 7D50 708D 4815 FDDC

To claim this, I am signing this object:

@heyJonBray
heyJonBray / PayloadBlockChain.cs
Created October 4, 2020 23:58
High-level overview. C# implementation of a data-agnostic blockchain for the storage and retrieval of any data structures.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Payload
{
public class PayloadBlockChain
{
private readonly int _chainDifficulty;