This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
// indica en consola que el server está ok | |
console.log("Servidor ON"); | |
// cada vez que nuestra app esté escuchando | |
// en el puerto 3000, muestra el mensaje. | |
app.get('/', function(req, res){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.css-table { | |
display:table; | |
width:500px; | |
background-color:#F9F9F9; | |
} | |
.css-table-cell { | |
display:table-cell; | |
width:30%; | |
padding:3%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%title | |
data-useragent | |
%h1 | |
Si lo ves en color verde, estás en IE10. | |
%br | |
Si lo ves en color azul, estás en IE11. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.documentElement.addEventListener('touchmove', function (event) { | |
event.preventDefault(); | |
}, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.0) | |
// Compass (v1.0.0) | |
// ---- | |
// =================================================================== | |
// Compressesd mixins - just to save you from scrolling :) | |
// =================================================================== | |
$_current_breakpoint_key:'';@mixin media($breakpointkeys...){@each $key,$value in $breakpointkeys{$_current_breakpoint_key:$key!global;@media #{map-get($breakpoints,$key)}{@content}$_current_breakpoint_key:''!global}};@mixin extends(){@content;@each $key,$value in $breakpoints{@include media($key){@content}}}@mixin new-extend($name){%#{$_current_breakpoint_key+$name}{@content}}@mixin extend($name){&{@extend %#{$_current_breakpoint_key+$name}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Animaciones */ | |
.animated { | |
-webkit-animation-duration: 1s; | |
animation-duration: 1s; | |
-webkit-animation-fill-mode: both; | |
animation-fill-mode: both; | |
} | |
.fast { | |
-webkit-animation-duration: 0.3s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img [src]="artist.images | sinfoto"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Pipe, PipeTransform } from '@angular/core'; | |
import { DomSanitizer } from '@angular/platform-browser'; | |
@Pipe({ | |
name: 'domseguro' | |
}) | |
export class DomseguroPipe implements PipeTransform { | |
constructor( private domSanitizer:DomSanitizer ){ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
urlArtista:string = "https://api.spotify.com/v1/artists"; | |
getArtista( id:string ){ | |
let query = `/${ id }`; | |
let url = this.urlArtista + query; | |
return this.http.get( url ) | |
.map( res =>{ | |
console.log( res.json() ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p><strong>Importantes: </strong><span *ngIf="postsFilter">{{ postsFilter.length }}</span></p> | |
<ion-list> | |
<ion-item no-padding *ngFor="let post of posts"> | |
<!-- {{ post.description }} --> | |
<span *ngFor="let item of post.tags">#{{ item.name }} </span> | |
</ion-item> | |
</ion-list> |
OlderNewer