Skip to content

Instantly share code, notes, and snippets.

[
[
"gbdmg",
[
[
42,
69,
59
],
[
function KonamiCodeMixin (callback) {
const KEYS = ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'KeyB', 'KeyA']
let i = 0
return {
mounted () {
window.addEventListener('keyup', this.onKeyUp)
},
destroyed () {
window.removeEventListener('keyup', this.onKeyUp)
const components = {
'*': 'strong',
'_': 'em',
'~': 's',
'```': 'code'
}
export default {
functional: true,
props: {
import { createElement } from '@vue/composition-api'
import htm from 'htm'
const acceptValue = ['input', 'textarea', 'option', 'select']
function getVNodeData (tag, attrs) {
const data = {}
const basics = ['slot', 'key', 'ref', 'refInFor', 'class', 'style']