Skip to content

Instantly share code, notes, and snippets.

View Splaktar's full-sized avatar

Michael Prentice Splaktar

View GitHub Profile
@Splaktar
Splaktar / CLA-DevIntent-Castellano.md
Last active July 15, 2019 20:22
DevIntent CLA en castellano

Acuerdo de licencia de colaborador individual de DevIntent

Para aclarar la licencia de propiedad intelectual otorgada con contribuciones de cualquier persona o entidad, DevIntent LLC ("DevIntent") debe tener un Acuerdo de licencia de colaborador ("CLA") en el archivo que ha sido firmado por cada colaborador, indicando acuerdo a los términos de la licencia a continuación. Esta licencia es para su protección como Colaborador, así como para el protección de DevIntent; no cambia sus derechos para usar sus propias Contribuciones para ningún otro propósito.

Acepta y acepta los siguientes términos y condiciones para Sus contribuciones actuales y futuras enviadas a DevIntent. Excepto la licencia otorgada en este documento a DevIntent y los destinatarios de software distribuido por DevIntent, Usted

@Splaktar
Splaktar / CLA-DevIntent.md
Last active July 15, 2019 20:22
DevIntent Individual CLA

DevIntent Individual Contributor License Agreement

In order to clarify the intellectual property license granted with Contributions from any person or entity, DevIntent LLC ("DevIntent") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of DevIntent; it does not change your rights to use your own Contributions for any other purpose.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to DevIntent. Except for the license granted herein to DevIntent and recipients of software distributed by DevIntent, You reserve all right, title, and interest in and to Your Contributions.

@Splaktar
Splaktar / CHANGELOG.md
Last active February 21, 2019 01:39
AngularJS Material 1.1.13 Change log
@Splaktar
Splaktar / CHANGELOG.md
Last active June 28, 2018 06:34
AngularJS Material 1.1.10 CHANGELOG
@Splaktar
Splaktar / CHANGELOG.md
Last active April 27, 2018 21:35
AngularJS Material 1.1.9 CHANGELOG
@Splaktar
Splaktar / unsaved-changes-guard.ts
Last active March 13, 2023 18:23
Guard against navigating away when there are unsaved changes
import {CanDeactivate, Router} from '@angular/router';
import {Injectable} from '@angular/core';
import {Observable} from 'rxjs/Observable';
import {Observer} from 'rxjs/Observer';
import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material';
export interface CanComponentDeactivate {
canDeactivate: () => Observable<boolean> | Promise<boolean> | boolean;
}
@Splaktar
Splaktar / some.component.scss
Created October 4, 2017 21:53
Example of using Angular Material themes in custom components
@import '../../styles/theme';
.noRecordsContainer {
padding: 48px;
background-color: mat-color($app-accent, 50);
width: 100%;
}
.errorMessageContainer {
padding: 48px;
@Splaktar
Splaktar / styles.scss
Created October 4, 2017 21:29
This file can only be included in your app once!
@import './styles/theme';
// Include the base styles for Angular Material core. We include this here so that you only
// have to load a single css file for Angular Material in your app.
// Be sure that you only ever include this mixin once!
@include mat-core();
// Include theme styles for core and each component used in your app.
// Alternatively, you can import and @include the theme mixins for each component that you are using.
@include angular-material-theme($app-theme);
@Splaktar
Splaktar / _theme.scss
Created October 4, 2017 21:26
Theme configuration example
@import '~@angular/material/theming';
// Define the palettes for your theme using the Material Design palettes available in palette.scss
// (imported above). For each palette, you can optionally specify a default, lighter, and darker hue.
$app-primary: mat-palette($mat-teal, 700, 100, 900);
$app-accent: mat-palette($mat-orange);
// The warn palette is optional (defaults to red).
$app-warn: mat-palette($mat-red);
/* You can add global styles to this file, and also import other style files */
@import './styles/ng-io-theme';
@import './styles/main.scss';