Skip to content

Instantly share code, notes, and snippets.

View snuffyDev's full-sized avatar
😮‍💨
nice

snuffy snuffyDev

😮‍💨
nice
View GitHub Profile
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};
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};
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},
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},
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},
const test = [
{
"subtitle": [
{
"text": "System Of A Down",
"browseId": "UCDJftX2zx_UT_QSnBGIF96w",
"pageType": "MUSIC_PAGE_TYPE_ARTIST"
}
],
"artistInfo": {
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;
};
interface ArtistEndpointParams {
browseId: string;
browseEndpointContextMusicConfig: {
browseEndpointContextMusicConfig: {
pageType: "MUSIC_PAGE_TYPE_ARTIST";
};
};
}
interface PlayerEndpointParams {
use super::fs::{FSMethods, FileMetadata, FileSystem, Folder};
use std::{
io::{Error, ErrorKind},
path::{Component, Path, PathBuf},
};
use serde_json::Value;
#[derive(Default)]
/* 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) { }
}