Skip to content
View alexpvieira's full-sized avatar
Block or Report

Block or report alexpvieira

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

Hello, I'm Alex πŸ€“

I'm a very curious person who happens to write code for living!

  • πŸ‘¨β€πŸ’» I'm currently working as a front-end developer @STX Group and living in the Netherlands πŸ‡³πŸ‡±
  • πŸ‡§πŸ‡· I'm a brazilian, married, 35 years old and working with IT for almost 18 years now...

My networks:

alexvieira.dev alexpvieira | Twitter alexpvieira | LinkedIn alvtech | Behance


Languages and Tools:

⚑ Github Stats

Alex's github stats
Top Langs

⚑ Recent Github Activity
  1. ❗️ Closed issue #198 in quasarframework/quasar-ui-qcalendar
  2. πŸ—£ Commented on #198 in quasarframework/quasar-ui-qcalendar
  3. ❗️ Opened issue #198 in quasarframework/quasar-ui-qcalendar

Pinned

  1. Axios Refresh Token Axios Refresh Token
    1
    let isRefreshing = false
    2
    let subscribers = []
    3
    
                  
    4
    axios.interceptors.response.use(undefined, err => {
    5
        const { config, response: { status } } = err
  2. Validate CPF Validate CPF
    1
    export default function validateCPF(strCPF) {
    2
        let sum = 0
    3
        let rest
    4
        if (strCPF == "00000000000") return false
    5
        for (let i = 1; i <= 9; i++) sum = sum + parseInt(strCPF.substring(i-1, i)) * (11 - i)
  3. Get Card Brand Get Card Brand
    1
    let brands = {};
    2
    brands["elo"] = {
    3
        regexpBin: /^401178|^401179|^431274|^438935|^451416|^457393|^457631|^457632|^504175|^627780|^636297|^636368|^(506699|5067[0-6]\d|50677[0-8])|^(50900\d|5090[1-9]\d|509[1-9]\d{2})|^65003[1-3]|^(65003[5-9]|65004\d|65005[0-1])|^(65040[5-9]|6504[1-3]\d)|^(65048[5-9]|65049\d|6505[0-2]\d|65053     [0-8])|^(65054[1-9]|6505[5-8]\d|65059[0-8])|^(65070\d|65071[0-8])|^65072[0-7]|^(65090[1-9]|65091\d|650920)|^(65165[2-9]|6516[6-7]\d)|^(65500\d|65501\d)|^(65502[1-9]|6550[3-4]\d|65505[0-8])/,
    4
        regexpFull: /^(401178|401179|431274|438935|451416|457393|457631|457632|504175|627780|636297|636368|(506699|5067[0-6]\d|50677[0-8])|(50900\d|5090[1-9]\d|509[1-9]\d{2})|65003[1-3]|(65003[5-9]|65004\d|65005[0-1])|(65040[5-9]|6504[1-3]\d)|(65048[5-9]|65049\d|6505[0-2]\d|65053[0-8])|(65054[1-9]| 6505[5-8]\d|65059[0-8])|(65070\d|65071[0-8])|65072[0-7]|(65090[1-9]|65091\d|650920)|(65165[2-9]|6516[6-7]\d)|(65500\d|65501\d)|(65502[1-9]|6550[3-4]\d|65505[0-8]))[0-9]{10,12}/,
    5
        regexpCvv: /^\d{3}$/,
  4. Validate Credit Card Validate Credit Card
    1
    export default function validateCard(card) {
    2
        if (/[^0-9-\s]+/.test(card)) return false
    3
    
                  
    4
        var nCheck = 0, nDigit = 0, bEven = false
    5
        card = card.replace(/\D/g, "")