Skip to content

Instantly share code, notes, and snippets.

View jlgarridol's full-sized avatar
👨‍💻
Probably coding

José Luis Garrido-Labrador jlgarridol

👨‍💻
Probably coding
View GitHub Profile
@jlgarridol
jlgarridol / zipTar.sh
Last active February 24, 2016 20:15
A simple script to zip and unzip with tar
#!/bin/sh
#Author: José Luis Garrido Labrador (JoseluCross)
#Organitation: JKA Network
#Original http://mirror.jkanetwork.com/Scripts/zipTar.sh
#Licence: CC-BY-SA
#Version: v1.3
#This script help the user to zip and unzip in differents formats
#The version 1.1 include the format .tbz2
#The version 1.2 allow unzip write ($1) the format too
#The version 1.3 now the script run in many other GNU/Linux destributions
@jlgarridol
jlgarridol / configC.sh
Created February 26, 2016 16:37
COnfiguración rápida para usuario de la UBU
#!/bin/sh
#Autor: José Luis Garrido Labrador (JoseluCross)
#Compañia: JKA Network
#Licencía: CC-BY-SA
#Version: Ubuntu.1.0
#Descripción: Este script sirve para configurar automáticamente nuestro sistema para usar el makefile de
#Carlos Pardo Aguilar, y poder programar en C. Algunas ordenes necesitan permisos de root
#Para una correcta ejecución ejecutar en la misma carpeta donde se encuentre el archivo configuracionC.tar
#Se requiere una conección a internet, si se requiere una nueva ejecución del script borre la última línea
#Cualquier duda remitirla a jgl0062@alu.ubu.es
/**
*Title: Sopa de letras
*Description: Hace una sopa de letras con varios temas
*@Author: Luis Pedrosa Ruiz y José Luis Garrido Labrador (JoseluCross)
*@organization: UBU
*@Version: 2.0.0
*@Date: 05/04/2016
*/
#include <stdio.h>
@jlgarridol
jlgarridol / mul.asm
Last active April 11, 2016 17:12
Multiplicación por suma desplazamiento de un intel 8085
;Programa creado por José Luis Garrido Labrador y Luis Pedrosa Ruiz.
;Burgos, abril de 2016
ORG 1000H
LXI H,1200H ;Dirección de memoria donde se guardará el producto
MVI B,00 ;El registro B (el contador) lo reseteamos
MVI M,0FH ;Cargamos en 1200 el primer operando
INR L ;Siguiente dirección de memoria
MVI M,06H ;Cargamos en 1201 el segundo operando
INR L ;Siguiente dirección de memoria
MVI M,00 ;Vaciamos el destino de la memoria
#!/bin/bash
#Creado por JKA Network (JoseluCross, Kprkpr, Yukialba) <contacto@jkanetwork.com>
#Primero la función
function update {
UAH=$(ls -d */)
for j in $UAH
do
if [ -d "$j" ];then
cd $j
/*prototype*/
size_t stringlength(char[]);
/*funcion*/
/**
*Title: stringlength
*Description: A implementation to calculate string length when the return of strlen don't work correctly
*@param chain[] - string which will be calculate length
*@return i - a lenght of stringlenght
*@author: José Luis Garrido Labrador (JoseluCross) from JKA Network <contacto@jkanetwork.com>
*@date: 05/05/2016

Keybase proof

I hereby claim:

  • I am jlgarridol on github.
  • I am jlgarridol (https://keybase.io/jlgarridol) on keybase.
  • I have a public key whose fingerprint is 0B07 7E5C FCAB 5091 7773 78E6 0D31 3D36 97F4 378B

To claim this, I am signing this object:

@jlgarridol
jlgarridol / practica4
Created November 3, 2016 19:23
Hello!
Práctica 4
=
######José Luis Garrido Labrador - José Miguel Ramírez Sánz - Eduardo Zambrano León
![enter image description here](http://www.ubu.es/ubu/cm/gallery/Publicaciones/ESCUDO_LOGO_UBU_PNG/escudo_COLOR_2L_ABAJO.png)
Primera parte
-
Los datos para los nacidos a las 40 semanas son:
|Tipo de dato|Valor|
|--|--|
|Recuento|9|
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <cuda_runtime.h>
#include <math.h>
#define HILOS 45
/**
* Sumatorio de los valores de un array mediante paralelismo en NVIDIA
@jlgarridol
jlgarridol / Sesion17
Created November 7, 2016 17:28
Hello!
<h1 id="genericidad-en-java">Genericidad en Java</h1>
<h3 id="otras-reglas">Otras reglas</h3>
<p>Se puede tener una genericidad restringida multiple con varias interfaces y una unica clase <br>
No se pueden crear instancias de parámetros genéricos <br>
Tampoco crear caracteristicas estáticas de tipo T</p>