This file contains hidden or 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
<login-template on-login="login($login)"></login-template> | |
<!-- login() es una función que esta en el controlador --> | |
<!-- funcion del controlador --> | |
$scope.login = function (user) { | |
$scope.user = user; | |
makeLogin() | |
}; |
This file contains hidden or 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
[{ | |
"name":"Encuesta de Clima Laboral 2016", | |
"id":34, | |
"type":"process", | |
"description":"Encuesta de Clima Laboral 2016", | |
"due_date":null, | |
"start_date":"2016-08-22", | |
"status":1, | |
"role_in_process":"admin", | |
"can_view_monitoring":true, |
This file contains hidden or 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
# Traducciones adicionales en https://github.com/plataformatec/devise/wiki/I18n | |
es: | |
devise: | |
confirmations: | |
confirmed: "Su cuenta ha sido confirmada." | |
send_instructions: "Recibirá un correo electrónico en unos minutos con instrucciones sobre cómo restablecer su contraseña." | |
send_paranoid_instructions: "Si su correo electrónico existe en nuestra base de datos recibirá un correo electrónico en unos minutos con instrucciones sobre cómo reiniciar su contraseña." | |
failure: | |
already_authenticated: "Ya ha sido identificado." |
This file contains hidden or 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 playing(list,times){ | |
var newArray = []; | |
var x = 0; | |
for(i=0;i<list.length;i++){ | |
// console.log(list.length); | |
if(times > 0){ | |
if(list.length%2 == 1){ | |
// impar debemos eliminar desde el 0 |
This file contains hidden or 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
public function insertarNuevoTicket($usuario=null, $servicio=null, $componente=null, $finicio=null, $descripcion=null, $tipo_ticket=null, $nuevo_id=null) { | |
$stm=$this->pdo->prepare("INSERT INTO tickets VALUES( ".$nuevo_id.", '".$usuario."', '".$descripcion."', ".$tipo_ticket.", now(), ".$servicio.", ".$componente.", timestamp IS NULL, 0, 1, 0, 0);"); $query = "INSERT INTO tickets VALUES( ".$nuevo_id.", '".$usuario."', '".$descripcion."', ".$tipo_ticket.", now(), ".$servicio.", ".$componente.", NULL, 0, 1, 0, 0)"; | |
echo "<br>".$query."<br>"; | |
$stm->execute(); | |
$row=0; | |
$row=$stm->rowCount(); | |
return $row; | |
} |
This file contains hidden or 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
- (BOOL)isValidLocation:(CLLocation *)newLocation | |
withOldLocation:(CLLocation *)oldLocation | |
{ | |
// Filter out nil locations | |
if (!newLocation) | |
{ | |
NSLog(@"No es valido newLocation is Nil"); | |
return NO; | |
} |
This file contains hidden or 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
// NSObject+PWObject.h | |
#import <Foundation/Foundation.h> | |
@interface NSObject (PWObject) | |
- (void)performBlock:(void (^)(void))block afterDelay:(NSTimeInterval)delay; | |
@end | |
/* NSObject+PWObject.m */ |
This file contains hidden or 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
// Create your image | |
UIImage *image = [UIImage imageNamed: @"logo.png"]; | |
UIImageView *imageview = [[UIImageView alloc] initWithImage: image]; | |
// set the text view to the image view | |
self.navigationItem.titleView = imageview; |
This file contains hidden or 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
models.Enterprises.find({'colaborators.rut':userRut}, "colaborators", callback); |
This file contains hidden or 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
models.Enterprises.find({'colaborators.rut':userRut}, callback); |