Skip to content

Instantly share code, notes, and snippets.

View AlonsoK28's full-sized avatar
👓
Learning Nest JS

C Alonso C Ortega AlonsoK28

👓
Learning Nest JS
View GitHub Profile
@sondreb
sondreb / styles.scss
Created October 2, 2023 20:31
Angular Material 16+ custom light and dark theme
@use "@angular/material" as mat;
@use "sass:map";
@include mat.core();
$primary-palette: (
50: #fef7df,
100: #fdeaae,
200: #fcdc7a,
300: #fbd041,
@krrskl
krrskl / Password confirm
Created June 3, 2021 23:32
Custom validator to password and password confirm using reactive forms
/utils/custom-validators.ts
export const confirmPasswords = (control: AbstractControl) => {
if (control.get('password').value !== control.get('confirmPassword').value) {
control.get('confirmPassword').setErrors({ passError: true });
return { passError: true };
}
return null;
};
@ShaiYer
ShaiYer / ScrollToTop-ng10.md
Created November 25, 2020 12:41
Scroll To Top Button - angular 10

Button scroll to top to a web site - Angular 10 Component

Add a Scroll to top button when scrolling down.

How to use

Basic use with the default values

@Villanuevand
Villanuevand / README-español.md
Last active May 20, 2024 22:38
Una plantilla para hacer un buen README.md. Inspirado en el gist de @PurpleBooth => https://gist.github.com/PurpleBooth/109311bb0361f32d87a2

Título del Proyecto

Acá va un párrafo que describa lo que es el proyecto

Comenzando 🚀

Estas instrucciones te permitirán obtener una copia del proyecto en funcionamiento en tu máquina local para propósitos de desarrollo y pruebas.

Mira Deployment para conocer como desplegar el proyecto.

@fer-ri
fer-ri / background-image.ts
Created May 24, 2016 06:33
Background Image Style Directive for Angular 2 and Ionic 2
import {Directive, ElementRef, Input} from '@angular/core';
@Directive({
selector: '[background-image]'
})
export class BackgroundImage {
private el: HTMLElement;
constructor(el: ElementRef) {
this.el = el.nativeElement;
@leotm
leotm / findAndReplace.js
Last active March 22, 2022 13:37
Node.js - Find and Replace file(s)
var glob = require('glob');
var fs = require('fs');
var replace = require('replace');
// Find file(s)
glob('fileName.txt', function(err, files) {
if (err) { throw err; }
files.forEach(function(item, index, array) {
console.log(item + ' found');