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
| use futures_util::{SinkExt, StreamExt}; | |
| use std::net::SocketAddr; | |
| use std::process::Stdio; | |
| use std::thread::sleep; | |
| use tokio::io::{AsyncReadExt, AsyncWriteExt, BufReader}; | |
| use tokio::net::{TcpListener, TcpStream}; | |
| use tokio::process::{Child, Command}; |
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
| pub mod terminal; | |
| use futures_util::{SinkExt, StreamExt}; | |
| use std::net::SocketAddr; | |
| use std::process::Stdio; | |
| use std::thread::sleep; | |
| use tokio::io::{AsyncReadExt, AsyncWriteExt, BufReader}; | |
| use tokio::net::{TcpListener, TcpStream}; | |
| use tokio::process::{Child, Command}; |
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
| use bytes::BytesMut; | |
| use env_logger; | |
| use futures::{SinkExt, StreamExt}; | |
| use futures_util::stream::{SplitSink, SplitStream}; | |
| use log::{debug, error}; | |
| use serde_derive::Deserialize; | |
| use std::{collections::HashMap, net::SocketAddr, process::Stdio}; | |
| use tokio::{ | |
| io::{AsyncReadExt, AsyncWriteExt}, | |
| net::{TcpListener, TcpStream}, |
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
| use bytes::BytesMut; | |
| use env_logger; | |
| use futures::{SinkExt, StreamExt}; | |
| use futures_util::stream::{SplitSink, SplitStream}; | |
| use log::{debug, error}; | |
| use serde_derive::Deserialize; | |
| use std::{collections::HashMap, net::SocketAddr, process::Stdio}; | |
| use tokio::{ | |
| io::{AsyncReadExt, AsyncWriteExt}, | |
| net::{TcpListener, TcpStream}, |
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
| use bytes::BytesMut; | |
| use env_logger; | |
| use futures::{SinkExt, StreamExt}; | |
| use futures_util::stream::{SplitSink, SplitStream}; | |
| use log::{debug, error}; | |
| use serde_derive::Deserialize; | |
| use std::{collections::HashMap, net::SocketAddr, process::Stdio}; | |
| use tokio::{ | |
| io::{AsyncReadExt, AsyncWriteExt}, | |
| net::{TcpListener, TcpStream}, |
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
| const test = [ | |
| { | |
| "subtitle": [ | |
| { | |
| "text": "System Of A Down", | |
| "browseId": "UCDJftX2zx_UT_QSnBGIF96w", | |
| "pageType": "MUSIC_PAGE_TYPE_ARTIST" | |
| } | |
| ], | |
| "artistInfo": { |
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
| function filterMap(array, cb, predicate) { | |
| let idx = -1; | |
| const length = array.length; | |
| const result = []; | |
| for (; ++idx < length;) { | |
| const res = cb(array[idx], idx, array); | |
| const passes = predicate(res); | |
| if (!passes) { | |
| continue; | |
| }; |
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
| interface ArtistEndpointParams { | |
| browseId: string; | |
| browseEndpointContextMusicConfig: { | |
| browseEndpointContextMusicConfig: { | |
| pageType: "MUSIC_PAGE_TYPE_ARTIST"; | |
| }; | |
| }; | |
| } | |
| interface PlayerEndpointParams { |
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
| use super::fs::{FSMethods, FileMetadata, FileSystem, Folder}; | |
| use std::{ | |
| io::{Error, ErrorKind}, | |
| path::{Component, Path, PathBuf}, | |
| }; | |
| use serde_json::Value; | |
| #[derive(Default)] |
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
| /* eslint-disable @typescript-eslint/no-inferrable-types */ | |
| import { Maybe } from "../../types/utility"; | |
| import { map } from "./array"; | |
| export class Node<T> { | |
| public next: Node<T> | null = null; | |
| public prev: Node<T> | null = null; | |
| constructor(public data: T) { } | |
| } |