Skip to content

Instantly share code, notes, and snippets.

@vdepizzol
vdepizzol / class-map-web-component.js
Created April 11, 2022 16:45
class-map basic web component
// #region [ function helpers ]
const ucFirst = (text) => {
if (!text) return text;
return `${text[0].toUpperCase()}${text.substring(1)}`
};
const getAttributeUpdatedMethodName = (name) => `attributeChanged${ucFirst(name)}`;
// #endregion
@vdepizzol
vdepizzol / wave.gif
Last active May 6, 2022 00:35
👋
wave.gif
// Link colors
// Sets the links color to $text-gray and $text-blue on hover
.link-gray {
color: $text-gray !important;
&:hover, &:hover [class*='text-'] {
color: $text-blue !important;
}
}
@vdepizzol
vdepizzol / token-input-facebook.css
Created June 8, 2011 18:47
cleaned facebook theme
/* Example tokeninput style #2: Facebook style */
ul.token-input-list-facebook {
overflow: hidden;
height: auto !important;
height: 1%;
width: 400px;
border: 1px solid #8496ba;
cursor: text;
font-size: 12px;
font-family: Verdana;
@vdepizzol
vdepizzol / emailPattern.js
Created March 3, 2011 15:00
javascript email Pattern
var emailPattern = /^([a-zA-Z0-9])+([\.\+a-zA-Z0-9_-])*@([\+a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+$/;
// emailPattern.test(var) returns a boolean value