This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| // simpler NFT contract for OPPT-ONE with: | |
| // - burning | |
| // - pausable | |
| // - roles | |
| // - emits universalPass event | |
| // - any address can mint but just one NFT per address | |
| import "@openzeppelin/[email protected]/token/ERC721/ERC721.sol"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // The polling function | |
| function poll(fn, timeout, interval) { | |
| var endTime = Number(new Date()) + (timeout || 2000); | |
| interval = interval || 100; | |
| var checkCondition = function(resolve, reject) { | |
| var ajax = fn(); | |
| // dive into the ajax promise | |
| ajax.then( function(response){ | |
| // If the condition is met, we're done! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Extracted from https://github.com/eoscafe/eoskeyio | |
| const ecc = require('eosjs-ecc'); | |
| const eth = require('ethereumjs-util'); | |
| let ethereumPrivateKey = 'FILL THIS IN'; | |
| if(eth.isValidPrivate(Buffer.from(ethereumPrivateKey, 'hex'))) { | |
| let ethereumAddress = '0x' + eth.privateToAddress(Buffer.from(ethereumPrivateKey, 'hex')).toString('hex') | |
| let ethereumPublicKey = eth.privateToPublic(Buffer.from(ethereumPrivateKey, 'hex')).toString('hex') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: node:latest | |
| cache: | |
| paths: | |
| - node_modules/ | |
| - app/bower_components | |
| deploy_production: | |
| stage: deploy | |
| environment: Production |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // constructor | |
| var Player = function(source){ | |
| // cache vars | |
| this.sound = new buzz.sound(source.split('.')[0], { formats: ['ogg', 'mp3'], volume: 100 }); | |
| this.$playBtn = $('.ui-page-active .jp-play'); | |
| this.$pauseBtn = $('.ui-page-active .jp-pause'); | |
| this.$rewindBtn = $('.ui-page-active .rewind'); | |
| this.$duration = $('.ui-page-active .jp-duration'); | |
| this.$seekBar = $('.ui-page-active .jp-seek-bar'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% for post in site.posts %} | |
| <article class="{% if forloop.first %}first{% elsif forloop.last %}last{% else %}middle{% endif %}"> | |
| <div class="article-head"> | |
| <h2 class="title"><a href="/{{ post.url }}/" class="js-pjax">{{ post.title }}</a></h2> | |
| <p class="date">{{ post.date | date: "%b %d, %Y" }}</p> | |
| </div><!--/.article-head--> | |
| <div class="article-content"> | |
| {{ post.long_description }} | |
| <a href="/{{ post.url }}/" class="full-post-link js-pjax">Read more</a> | |
| </div><!--/.article-content--> |