Skip to content

Instantly share code, notes, and snippets.

View danywalls's full-sized avatar
🎯
Focusing

Dany Paredes danywalls

🎯
Focusing
View GitHub Profile
@danywalls
danywalls / password.pipe.ts
Last active December 7, 2022 13:10
Angular Pipe for Password.
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'password'
})
export class PasswordPipe implements PipeTransform {
transform(value: string, hide: boolean = true): any {
return !hide ? value.replace(/./g, '*') : value;
@danywalls
danywalls / EdgarJs
Last active December 24, 2018 08:47
Helper to manage the local and session storage.
var EdgarJs = {
Session: {
load(key, value) {
if (localStorage.getItem(key)) {
return localStorage.getItem(key);
}
return "not existe";
@danywalls
danywalls / CheckEmptyFields.js
Created January 20, 2015 16:48
CheckEmptyFields
function CheckEmptyFields()
{
$(".required").each(function()
{
if($.trim($(this).val()).length == 0)
{
$(this).addClass("warning");
}
else
{
@danywalls
danywalls / radiowithtextrigthside
Created January 20, 2015 16:46
radio with text rigth side
input[type="radio"]
{
vertical-align:top;
}