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
#!/bin/env python | |
import numpy as np | |
import scipy.misc | |
from scipy.fftpack import dct, idct | |
import sys | |
H = 128 | |
W = 128 | |
lenna = scipy.misc.imresize(scipy.misc.lena(), (H, W)).astype(float) |
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
document.getElementById('field').style.background = '#66f' | |
document.getElementById('composite-number-toggle').style.visibility = 'hidden'; | |
timer = setInterval(_ => { | |
const discardBtnElm = document.getElementById('discard-button'); | |
const cardArr = [...document.getElementById('discard-frame').querySelectorAll('.card')]; | |
if (cardArr.length === 0) { |
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
var evt = document.getElementById('start-button').addEventListener('click', _evt => { | |
var timer = setTimeout(_ => { | |
document.getElementById('pass-button').click(); | |
document.getElementById('start-button').removeEventListener('click', evt); | |
}, 99); | |
}); |