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
| # find #Figma plugin underdogs | |
| curl https://raw.githubusercontent.com/yuanqing/figma-plugins-stats/gh-pages/index.json > d.json | |
| node <<'EOF'|head -n 50 | |
| let d = require("./d.json"); | |
| let r = (p) => p.likeCount / p.installCount; | |
| d.plugins | |
| .sort((a, b) => r(b) - r(a)) | |
| .forEach((p, i) => console.log(`${i + 1}. ${p.name} by ${p.publisherName}`)); | |
| EOF |
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
| let recorder = await navigator.mediaDevices | |
| .getUserMedia({ audio: true }) | |
| .then((mediaSourceObject) => { | |
| document.createElement("audio").srcObject = mediaSourceObject; | |
| const recorder = new MediaRecorder(mediaSourceObject); | |
| let data = []; | |
| recorder.ondataavailable = (e) => data.push(e.data); | |
| recorder.onstop = () => { | |
| const blob = new Blob(data, { type: "audio/ogg" }); | |
| data = []; |
OlderNewer