Skip to content

Instantly share code, notes, and snippets.

View brokenthorn's full-sized avatar
🏠
Working from home

Paul-Sebastian Manole brokenthorn

🏠
Working from home
View GitHub Profile
@brokenthorn
brokenthorn / UserAuthForm.vue
Last active June 20, 2020 20:05
Vue + Vuetify User Login + Auth Form Component
<template>
<v-card id="login-form-card">
<v-form ref="form" v-model="valid" @keyup.native.enter="submit">
<v-container>
<v-row no-gutters>
<v-col>
<v-alert color="error" :value="responseStatus !== ''">{{
responseStatus
}}</v-alert>
</v-col>
@brokenthorn
brokenthorn / romanian-cif-validate.js
Last active January 24, 2024 09:00
Functie Javascript pentru validarea CIF (Cod Identificare Fiscala) / CUI (Cod Unic Identificare)
/**
* Validates if a string conforms to a valid Romanian Fiscal Code.
*
* See Romanian Law no. 359 from 8 September 2004.
* @param v {string} input string to be validated
* @returns {string|boolean} `true` if the input is a valid CIF or an error message,
* describing where validation failed
*/
function validateRomanianCIF (v) {
if (typeof v !== 'string') {