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
// https://cobinhood.com/funds | |
var sql = 'INSERT INTO token_mappings (src, name, coin_name, image_url) VALUES \n'; | |
document.querySelectorAll('div.sc-AUpyg > div.sc-cSYcjD').forEach((row) => { | |
const name = row.querySelector('span.sc-gjAXCV').textContent.trim(); | |
const svg = window.btoa(new XMLSerializer().serializeToString(row.getElementsByTagName('svg')[0])); | |
const fullname = row.querySelector('span.sc-iybRtq').textContent.trim(); | |
sql += `('cobinhood', '${name}', '${fullname}', '${svg}'),\n`; | |
}); | |
console.log(sql); |
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
SELECT id, | |
@dep := dep dep, | |
@cnt := IF(@dep = dep, @cnt + 1, 1) cnt | |
FROM `emp`, | |
(SELECT @cnt := 0, @dep := 0) init |
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
aws polly synthesize-speech \ | |
--output-format mp3 \ | |
--voice-id Zhiyu \ | |
--language-code cmn-CN \ | |
--text file://p50.txt \ | |
p50.mp3 |
OlderNewer