Skip to content
View hz2's full-sized avatar

Block or report hz2

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
hz2/README.md

Hi there 👋

hz2's GitHub stats

Most Used Languages

Pinned Loading

  1. 1-line-code-convert-color 1-line-code-convert-color
    1
    // Convert hex color to RGBA color
    2
    // x => current item
    3
    // i => index
    4
    // o => origin value
    5
    const hex2rgba = h => h.replace('#','').split('').map((x,i,o)=>o.length< 6 ? [x,x]: x).flat().reduce((str,x,i,orig)=>i%2 ?  str.replace("x", parseInt( orig[i-1]+ x , 16) ) + ([',',','].concat(orig.length < 7 ? [',1)']:[',',')']))[(i-1)/2]  : str + 'x','rgba(')
  2. project-nest project-nest Public

    a nestjs backend API service

    TypeScript