Skip to content
View gynekolog's full-sized avatar

Organizations

@argo22com

Block or report gynekolog

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Pagination generator Pagination generator
    1
    // The code is based on https://gist.github.com/kottenator/9d936eb3e4e3c3e02598#gistcomment-3238804
    2
    
                  
    3
    type PageItem = number | "...";
    4
    
                  
    5
    export const getRange = (start: number, end: number): PageItem[] => {
  2. Typescript To Convert Bytes To MB, K... Typescript To Convert Bytes To MB, KB, Etc
    1
    export function convertBytes(bytes: number, options: { useBinaryUnits?: boolean; decimals?: number } = {}): string {
    2
      const { useBinaryUnits = false, decimals = 2 } = options;
    3
    
                  
    4
      if (decimals < 0) {
    5
        throw new Error(`Invalid decimals ${decimals}`);