Skip to content

Instantly share code, notes, and snippets.

View cupOJoseph's full-sized avatar

Joseph Schiarizzi cupOJoseph

View GitHub Profile
@cupOJoseph
cupOJoseph / AMBMediator.sol
Created February 12, 2021 05:44
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.6.12+commit.27d51765.js&optimize=true&runs=200&gist=
pragma solidity >=0.6.0 <0.7.0;
import "./IAMB.sol";
import "./ITokenManagement.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.0.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.0.0/contracts/utils/Address.sol";
contract AMBMediator is Ownable {
using Address for address;
@beefy
beefy / chess_game_to_gif.py
Last active January 2, 2021 14:43
convert a chess pgn file to a gif
import chess.pgn
import chess.svg
import subprocess
import lichess.pgn
import lichess.api
import os
import io
import imageio
import numpy as np
import cv2
@trusktr
trusktr / image-grid.md
Last active December 15, 2024 02:54
Image grid in Markdown
screen shot 2017-08-07 at 12 18 15 pm blah screen shot 2017-08-07 at 12 18 15 pm screen shot 2017-08-07 at 12 18 15 pm
@prettymuchbryce
prettymuchbryce / Dictionary.java
Created September 14, 2012 02:26
Dictionary with trie tree Java
//Dictionary implemented using a Trie Tree.
public class Dictionary {
private HashMap<Character,Node> roots = new HashMap<Character,Node>();
/**
* Search through the dictionary for a word.
* @param string The word to search for.
* @return Whether or not the word exists in the dictionary.
*/
public boolean search(String string) {