Skip to content

Instantly share code, notes, and snippets.

View prinick96's full-sized avatar
Dándole a golang!!

Brayan Narváez prinick96

Dándole a golang!!
View GitHub Profile
{
"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
@prinick96
prinick96 / gist:c2919b64de30baa83c9e26579eeebc97
Created March 16, 2018 20:24 — forked from Mikodes/gist:be9b9ce42e46c3d4ccb6
All Media queries for resolutions
/* (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 */
}
@prinick96
prinick96 / check_venezuelan_phone.php
Created December 30, 2017 19:12
Verifica si un número de teléfono es válido en Venezuela en PHP
<?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)
*/
$('#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
#include <signal.h>
using namespace std;
class ReplicaMuerte {
private:
pid_t proceso_inicial;
pid_t hijo_principal;
bool sigueVivo(pid_t proceso) {
return 0 == kill(proceso,0);
using Programa.Interfaces;
namespace Programa.Clases
{
class Carro
{
IMotor motor;
public Carro(IMotor motor)
{
this.motor = motor;
<?php
/**
* Ocrend Framework - MVC Architecture for Web Applications
* PHP Version 7
* @package Ocrend Framework
* @version v1.2
* @author Brayan Narváez (Prinick) <prinick@ocrend.com> <youtube.com/user/prinick96>
* @copyright 2016 - Ocrend Software
* @license http://opensource.org/licenses/MIT MIT License
public class O2 extends Thread {
private XD xd;
public O2(XD xd) {
this.xd = xd;
}
@Override
public void run() {
@prinick96
prinick96 / malloc.c
Last active December 11, 2016 21:58
int *array = NULL;
array = (int *) malloc(sizeof(int *) * (arreglo + 1));
class Electrodomesticos {
private double precio;
private String color;
private char consumo;
private double peso;
public double getPrecio() {
return this.precio;
}