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 / area.c
Last active January 29, 2017 03:29
Calcular el valor de PI con paralelismo CUDA usando el área de la función 4/(1+x^2) entre 0 y 1
/*
* ARQUITECTURA DE COMPUTADORES
* 2º Curso - Grado en Ingeniería Informática
* Curso 2016/17
*
* PRACTICA 07: "Memoria compartida dinámica"
* >> Utilizar la memoria compartida de la GPU de manera dinámica para calcular
pi mediante una nueva fórmula
*
* AUTOR: - GARCÍA MEDIAVILLA Marina - GARRIDO LABRADOR José Luis
@jlgarridol
jlgarridol / GetFonts.py
Last active December 25, 2016 00:30
Script en Python 3 para Linux para generar un JSON con todas las fuentes instaladas
#!/usr/bin/python3
import os.path
import subprocess
import json
subFamily = ["Thin","ExtraLight","Light","Regular","Medium","SemiBold","Bold","ExtraBold","Black"]
italic = "Italic"
folder = "/usr/share/fonts/TTF/"
ls = "ls "
@jlgarridol
jlgarridol / jka.h
Last active November 30, 2016 21:27
Multipurpose library with a wide range of useful functions for C language
/**
This file is source code of jkalib
jkalib (C) 2016-2017 JKA Network <contacto@jkanetwork.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@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>
#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 / 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|

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:

/*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
#!/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
@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