This file contains 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
// Generate Function 实现 异步迭代 | |
async function typeTest(gap, wait) { | |
const wordList = Array.from(row1.children).map((i) => i.innerText) | |
const len = wordList.length | |
const f = new KeyboardEvent('keyup', { keyCode: 32, which: 32 }) | |
function* gen(gap) { | |
let i = 0 | |
while (i < len && i * (gap + wait) <= 60 * 1000) { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
const add = a => b => c => a + b + c; | |
export default add; |
This file contains 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
function MyObject(element) { | |
this.elm = element; | |
element.addEventListener('click', this.onClick.bind(this), false); | |
}; | |
MyObject.prototype.onClick = function(e) { | |
var t=this; //do something with [t]... | |
//without bind the context of this function wouldn't be a MyObject | |
//instance as you would normally expect. |
This file contains 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
''' | |
Created on 2013-3-10 | |
@author: gixiaochen | |
''' | |
import urllib2 | |
from bs4 import BeautifulSoup | |
import re | |
siteUrls = " " |
This file contains 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
body { | |
position: fixed; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
top: 0; | |
background: rgba(0,0,0,.8); | |
} |
NewerOlder