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
SELECT nod.title as `Titulo`, dur.field_duracion_value as `Duracion`, tx.name as `Director`, sip.field_sinopsis_value as `Sinopsis`, rep.field_reparto_value as `Reparto` , | |
vid.field_video_fid as `ID Trailer`, fly.field_movie_flyer_fid as `ID Flyter`, /*gen.field_genero_tid as `ID Genero`*/ | |
/*,sal.field_salas_cine_value as `ID Salas`,*/filem.filename as `Nombre Flyer`, filem.uri as `Path Flyer`, fil.filename as `Titulo Trailer`, fil.uri as `Path Video` | |
FROM node nod | |
JOIN field_data_field_duracion dur ON dur.entity_id = nod.nid | |
JOIN taxonomy_index ti ON ti.nid = nod.nid | |
JOIN taxonomy_term_data tx ON tx.tid = ti.tid | |
JOIN field_data_field_director dir ON tx.tid = dir.field_director_tid | |
JOIN field_data_field_sinopsis sip ON sip.entity_id = nod.nid | |
JOIN field_data_field_reparto rep ON rep.entity_id = nod.nid |
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
Para quien no lo leyó, he aquí el post! | |
Me banean por esto ? | |
Quiero compartir esta experiencia, pues no tiene sentido pasar un mal momento si no lo vas a compartir con otros y de esta manera evitar que otros pasen por la misma situación. Hace unos días apliqué para una vacante que me resultó bien interesante, la misma buscaba un perfil bien parecido al mio, alguien que pueda diseñar y programar. Cabe destacar que apliqué a esta vacante debido a que la empresa que publicaba la vacante tiene fama de trabajar remoto y de ser una empresa buena onda. Menciono esto, pues actualmente tengo un buen empleo, no es que estoy necesitado de un empleo, sino, que nunca está de más asumir nuevos retos, trabajar con gente que según los comentarios son buena onda, (y me consta que lo son pues tuve una buena experiencia con ellos o mejor dicho con personas asociados a ellos), y además de esto, hacer buen dinero (Pues es obvio que trabajamos para generar más ingresos duh!). | |
Bueno, para no cansar el cuento, luego de varios cues |
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 parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
BLUE="\[\033[00m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[01;32m\]" | |
NO_COLOR="\[\033[0m\]" | |
OTHER="\[\033[01;36m\]" |
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
#include <stdio.h> | |
#include <string.h> | |
int main(void) { | |
char *names[] = {"Danny", "Florida", "Oregon", "Gaby", "Califoria", "Georgia", "Octavio", "Ana"}; | |
int namesLength = (int)( sizeof(names) / sizeof(names[0]) ); | |
for (int i = 0; i < namesLength; i++) { | |
for (int j = i+1; j < namesLength; j++) { | |
if (strcmp(names[i], names[j]) > 0) { | |
char* temp = names[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
public static bool validaCedula(string pCedula) | |
{ | |
int vnTotal = 0; | |
string vcCedula = pCedula.Replace("-", ""); | |
int pLongCed = vcCedula.Trim().Length; | |
int[] digitoMult = new int[11] { 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1 }; | |
if (pLongCed < 11 || pLongCed > 11) | |
return 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
CREATE TABLE [dbo].[Users] | |
( | |
[id] INT NOT NULL PRIMARY KEY IDENTITY, | |
[name] NVARCHAR(50) NOT NULL, | |
[last_name] NVARCHAR(75) NOT NULL, | |
[username] NVARCHAR(50) NOT NULL, | |
[password] NVARCHAR(100) NOT NULL, | |
[role] INT NOT NULL | |
) |
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
/** | |
* Get current time | |
* @example 10:34:12 am | |
* @param {Date} date | |
* @returns {string} | |
*/ | |
function getTime(date) { | |
var hours = date.getHours(); | |
var minutes = date.getMinutes(); | |
var seconds = date.getSeconds(); |
Only the VirtualBox and Vagrant versions specified below will work. Later versions have problems, so do not try to use them (we tried almost all of them).
- Install VirtualBox version
4.2.24
, from here
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
// Campo: esta_en_uso = true|false | |
// URL: http://oorden.io/apiv2?modelo=centro-costo&include=centroCosto.elementos | |
{ | |
"status": { | |
"type": "SUCCESS", | |
"message": "Lista de resultados" | |
}, | |
"data": [ | |
{ |
OlderNewer