Skip to content

Instantly share code, notes, and snippets.

@mstr1
mstr1 / [email protected]@4.4.0...access...AccessControl.sol
Last active December 4, 2021 10: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.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
@mstr1
mstr1 / bootstrap-4-cards-with-header.markdown
Created September 27, 2019 05:07
Bootstrap 4 Cards with Header
@mstr1
mstr1 / index.html
Last active April 17, 2019 09:59
PhotoSwipe
<button id="btn">Open PhotoSwipe</button>
<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<!-- Background of PhotoSwipe.
It's a separate element, as animating opacity is faster than rgba(). -->
<div class="pswp__bg"></div>
<!-- Slides wrapper with overflow:hidden. -->
@mstr1
mstr1 / app.html
Created November 22, 2018 03:02 — forked from jdanyow/app.html
Aurelia Gist
<template>
<h1>${message}</h1>
<p>And again!</p>
</template>
@mstr1
mstr1 / gist-reveal.it-slides.html
Last active November 22, 2018 02:49 — forked from ryanj/gist-reveal.it-slides.html
Gist-powered Revealjs slideshow presentations http://gist-reveal.it
<section data-background-transition='zoom' data-transition='concave' data-background='http://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'>
<h2>Gist-Powered</h2>
<h1>Reveal.js</h1>
<h2>Slideshow Presentations</h2>
<br/>
<h1 class='fragment grow'><a style='color:deepskyblue;' href='http://gist-reveal.it'>gist-reveal.it</a></h1>
</section>
<section data-background-transition='zoom' data-transition='linear' id='try-it'>
<h2>Try it out, Martin!</h2>
<p>Create your own deck by forking a copy of <a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>this github gist</a>: <br /><a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>https://gist.github.com/ryanj/af84d40e58c5c2a908dd</a></p>
@mstr1
mstr1 / index.pug
Last active November 6, 2018 05:56
Responsive slider timeline with Swiper
.container
h1.title Responsive Slider Timeline
.timeline
.swiper-container
.swiper-wrapper
- for (var i = 1; i <= 6; ++i) {
.swiper-slide(style=`background-image: url(https://unsplash.it/1920/500?image=1${i}`, data-year=`201${i}`)
.swiper-slide-content
span.timeline-year 201#{i}
h4.timeline-title Our nice super title
@mstr1
mstr1 / component-architecture.markdown
Created September 11, 2018 01:25
Component Architecture
// ==UserScript==
// @name Shopee顯示折價券
// @namespace https://gist.github.com/poynt2005
// @version 0.1
// @match https://shopee.tw/cart/
// @grant none
// @require https://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==
(function() {