Skip to content

Instantly share code, notes, and snippets.

View jackpmorgan's full-sized avatar

Jack Morgan jackpmorgan

View GitHub Profile
function(instance, context) {
class HowlerPlayer {
constructor(audioUrl, title, artist, album, artworkSrc) {
const _audioUrl = audioUrl;
const _title = title;
const _artist = artist;
const _album = album;
function(instance, properties, context) {
console.log('Updating OME Player');
const HowlerPlayer = window.HowlerPlayer;
if (!instance.data.player) {
console.log('Creating a new player instance');
instance.data.player = new HowlerPlayer(
properties.audiofile,
@jackpmorgan
jackpmorgan / contracts...artifacts...OpenMusicExchange.json
Created March 23, 2022 18: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.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
@jackpmorgan
jackpmorgan / docs.chain.link...samples...VRF...Lottery.sol
Created March 11, 2022 16:31
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.12+commit.f00d7308.js&optimize=false&runs=200&gist=
@jackpmorgan
jackpmorgan / .deps...npm...@chainlink...contracts...src...v0.8...VRFRequestIDBase.sol
Created March 10, 2022 17:34
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.12+commit.f00d7308.js&optimize=false&runs=200&gist=
@jackpmorgan
jackpmorgan / .deps...npm...@chainlink...contracts...src...v0.8...VRFConsumerBase.sol
Created March 10, 2022 17:33
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.12+commit.f00d7308.js&optimize=false&runs=200&gist=
@jackpmorgan
jackpmorgan / docs.chain.link...samples...VRF...Lottery.sol
Created March 10, 2022 17:32
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.12+commit.f00d7308.js&optimize=false&runs=200&gist=
@jackpmorgan
jackpmorgan / docs.chain.link...samples...VRF...Lottery.sol
Created March 7, 2022 15:30
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=false&runs=200&gist=
@jackpmorgan
jackpmorgan / docs.chain.link...samples...VRF...Lottery.sol
Created March 7, 2022 15:29
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=false&runs=200&gist=