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
class Electrodomesticos { | |
private double precio; | |
private String color; | |
private char consumo; | |
private double peso; | |
public double getPrecio() { | |
return this.precio; | |
} |
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
<?php | |
/** | |
* CRUD Model - Ocrend Framework | |
* Ejemplo de uso correcto para un CRUD usando rutas y la api rest | |
*/ | |
final class Crud extends Models implements OCREND { | |
public function __construct() { |
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 <iostream> | |
#include <string> | |
//#include <stdlib.h> descomenta si se cierra la pantalla al compilar | |
#define max 5 | |
using namespace std; | |
/* | |
Estructura que me define una cola. | |
*/ | |
typedef struct { |
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 <stdlib.h> //DESCOMENTAR SI SE CIERRA LA VENTANA | |
#define allahuakbar 10 //Es una constante | |
void SelectionSort(int *array, int n) { | |
int x, y, min, tmp; | |
for(x = 0; x < n; x++) { | |
min = x; | |
for(y = x + 1; y < n; y++) { | |
if(array[min] > array[y]) { |
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
program Proyecto; | |
{ | |
Absolutamente todas las funciones y algunos procedimientos son reutilizables en la Trivia y el Ahorcado | |
Están hechos con el fin de que sirvan para ambos. | |
} | |
uses crt, sysutils; | |
const | |
TRIVIA_FILE = '/home/prinick/Escritorio/pascal/PROYECTO/trivia.txt'; |
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
/** | |
* JSON_LIB | |
* Funciones básicas para comunicar PHP 7 con C++, "simulando" una primitiva de Json | |
* @link http://www.ocrend.com/ | |
* @author Brayan Narváez (Prinick) <princk093@gmail.com> <prinick@ocrend.com> | |
* @copyright 2016 Brayan Narváez | |
*/ | |
//Definición de librerías necesarias | |
#ifndef iostream |
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
{ | |
"normals":[0,-0.503281,-0.864101,0,1,0,0.168554,-0.503281,-0.847499,0.330668,-0.503281,-0.798334,0.480056,-0.503281,-0.718467,0.611011,-0.503281,-0.611011,0.718467,-0.503281,-0.480056,0.798334,-0.503281,-0.330668,0.847499,-0.503281,-0.168554,0.864101,-0.503281,0,0.847499,-0.503281,0.168554,0.798334,-0.503281,0.330668,0.718467,-0.503281,0.480056,0.611011,-0.503281,0.611011,0.480056,-0.503281,0.718467,0.330668,-0.503281,0.798334,0.168554,-0.503281,0.847499,0,-0.503281,0.864101,-0.168554,-0.503281,0.847499,-0.330668,-0.503281,0.798334,-0.480056,-0.503281,0.718467,-0.611011,-0.503281,0.611011,-0.718467,-0.503281,0.480056,-0.798334,-0.503281,0.330668,-0.847499,-0.503281,0.168554,-0.864101,-0.503281,0,-0.847499,-0.503281,-0.168554,-0.798334,-0.503281,-0.330668,-0.718467,-0.503281,-0.480056,-0.611011,-0.503281,-0.611011,-0.480056,-0.503281,-0.718467,-0.330668,-0.503281,-0.798334,-0.168554,-0.503281,-0.847499], | |
"vertices":[0.008099,0.052694,-0.879203,0.203189,0.052694,-0.859989,0.390782,0.052694,-0.803083,0 |
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
/* (320x480) iPhone (Original, 3G, 3GS) */ | |
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) { | |
/* insert styles here */ | |
} | |
/* (320x480) Smartphone, Portrait */ | |
@media only screen and (device-width: 320px) and (orientation: portrait) { | |
/* insert styles 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
<?php | |
/** | |
* Verifica si un número de teléfono es válido en Venezuela | |
* El formato debe ser 0414/0412/0416/0424/0426/0422-1234567 | |
* | |
* @param string $phone : Número de teléfono | |
* | |
* @return bool (true si es válido, false si no) | |
*/ |
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
$('#idboton').click(function(e){ | |
/* START Prevención de doble clic */ | |
e.preventDefault(); | |
/* END Prevención de doble clic */ | |
var algo = new FormData(); | |
var perfil = document.getElementById('id en el input de tipo file'); | |
var file = perfil.files[0]; | |
// Hay que cargar manualmente cada input, por id |
NewerOlder