Skip to content

Instantly share code, notes, and snippets.

View Potat05's full-sized avatar

Potato Potat05

  • United States
  • 05:15 (UTC -05:00)
  • YouTube @rcrommer2
View GitHub Profile
@Potat05
Potat05 / SectionFetchableBlob.ts
Last active November 10, 2023 02:41
Fetch tiny sections of VERY large files without downloading the whole file.
export class SectionFetchableBlob implements Blob {
public readonly url: string;
public readonly size: number;
public readonly type: string;
private readonly start: number;
private readonly end: number;
private constructor(url: string, size: number, type: string, start: number = 0, end: number = size) {
@Potat05
Potat05 / webp_anim.ts
Last active June 17, 2023 21:31
Simple WEBP Animation Library
// MIT License
//
// Copyright (c) 2023 Potat05
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions: