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
function partition( array, left, right ) { | |
var pivot = array[Math.floor((left + right)/2)], | |
i = left, | |
j = right; | |
while ( i <= j ) { | |
while ( array[i] < pivot ) { | |
i++; |
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 { Component, OnInit } from '@angular/core'; | |
import { NavController, NavParams, LoadingController } from 'ionic-angular'; | |
import { Storage } from '@ionic/storage'; | |
import * as localforage from "localforage"; | |
import { ProfileServices } from '../../providers/profile.services'; | |
@Component({ | |
template: '<div>test</div>', | |
providers: [ProfileServices] | |
}) |
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
la vista es esta: | |
<ion-header> | |
<ion-navbar> | |
<ion-title>Profile</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content padding> | |
<ion-card> | |
<div class="image_center"> | |
<img [src]="userProfile.picUser"> |
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 { Component, OnInit } from '@angular/core'; | |
import { NavController, NavParams, LoadingController } from 'ionic-angular'; | |
import { Storage } from '@ionic/storage'; | |
import * as localforage from "localforage"; | |
import { ProfileServices } from '../../providers/profile.services'; | |
@Component({ | |
selector: 'page-profile', | |
templateUrl: 'profile.html', |
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
const NodeCache = require('node-cache'); | |
const cache = new NodeCache(); | |
let data = { results: [] }; | |
// using the cache module to add an object to the cache | |
cache.set('my-pokemon', data, function(err, success) { | |
// success will be true if successful | |
}); |
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
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |