Skip to content

Instantly share code, notes, and snippets.

View li-jia-nan's full-sized avatar

lijianan li-jia-nan

  • moego
  • Hangzhou, China
  • 15:45 (UTC +08:00)
  • LinkedIn in/li-jia-nan
View GitHub Profile
@li-jia-nan
li-jia-nan / pr.js
Created April 24, 2024 16:31
pr.js
const { spawnSync } = require('node:child_process');
const consoleStd = (std) => {
const output = std.stdout.toString();
const error = std.stderr.toString();
if (output) {
console.log(output);
}
if (error) {
console.log(error);
@property --gradientAngle {
syntax: "<percentage> | <angle>";
inherits: false;
initial-value: 0deg;
}
.wapper {
width: 380px;
position: relative;
padding: 16px;
@li-jia-nan
li-jia-nan / MicrophoneRecorder.ts
Last active March 14, 2024 10:23
MicrophoneRecorder
import RecordRTC from "recordrtc";
const options: RecordRTC.Options = {
type: "audio",
mimeType: "audio/wav",
recorderType: RecordRTC.StereoAudioRecorder,
};
class MicrophoneRecorder {
recorder: RecordRTC | undefined;