Skip to content

Instantly share code, notes, and snippets.

View ecomaikgolf's full-sized avatar
🔑
PGP: C79F01CE017F57A4FBBB4E2233DDFB0AEB9420CB

Ernesto Martínez García ecomaikgolf

🔑
PGP: C79F01CE017F57A4FBBB4E2233DDFB0AEB9420CB
View GitHub Profile
@ecomaikgolf
ecomaikgolf / autocorrector.sh
Last active May 22, 2020 19:59
Autocorrector en paralelo (de ficheros de prueba .cpp/.cpp.sal)
#!/bin/bash
# Enable & install ccache to get faster compilations
# Project makefile to generate .o
MAKEFILE_LOCATION=../../
# Project include/ folder (.h)
INCLUDE_LOCATION=../../include
@ecomaikgolf
ecomaikgolf / crashfix.patch
Created December 5, 2019 07:41
Onelio/ConnectU App crash patch
From 0cad52ca611a23060781870742696069168173d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ernesto=20Mart=C3=ADnez=20Garc=C3=ADa?=
<ecomaikgolf@protonmail.com>
Date: Mon, 25 Nov 2019 12:39:09 +0100
Subject: [PATCH] [BUGFIX] Crash due to empty path in image
---
app/src/main/java/com/onelio/connectu/API/LoginRequest.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

Keybase proof

I hereby claim:

  • I am ecomaikgolf on github.
  • I am ecomaikgolf (https://keybase.io/ecomaikgolf) on keybase.
  • I have a public key whose fingerprint is C79F 01CE 017F 57A4 FBBB 4E22 33DD FB0A EB94 20CB

To claim this, I am signing this object:

@ecomaikgolf
ecomaikgolf / examen.asm
Created May 23, 2019 21:52
El examen que es de algo de contabilidad. 2019
# Ernesto Martínez García
.data
text1: .asciiz "\n1. Euro - Libra\n"
text2: .asciiz "2. Euro - Dólar\n"
text3: .asciiz "3. Euro - Yuan\n"
libra: .float 0.87
dolar: .float 1.12
yuan: .float 7.71
ingresos: .float 65.2, 87.9, 24.6, 23.1, 90.2
%Reutiliza el script de la Práctica #1 para calcular L n y R n de
% f (x) = x^2 − 2x + 3 en [−2, 3] con 8, 16, 32 y 48 rectángulos respectivamente
syms x
f = @(x) -x^2 -2*x + 3
desde = -2
hasta = 3
cant = 40
h = (hasta - desde)/cant
@ecomaikgolf
ecomaikgolf / riemansums.m
Last active April 2, 2019 20:24
Sumas de riemann en matlab
%Reutiliza el script de la Práctica #1 para calcular L n y R n de
% f (x) = x^2 − 2x + 3 en [−2, 3] con 8, 16, 32 y 48 rectángulos respectivamente
syms x
f = @(x) -x^2 -2*x + 3
desde = -2
hasta = 3
cant = 40
h = (hasta - desde)/cant
@ecomaikgolf
ecomaikgolf / double()
Created April 1, 2019 16:44
Edu me has ofendido
>> syms x
>> f = x^2
f =
x^2
>> int(f,0,2)
ans =
1
5
ZLLLGRCIOBTGTPDYKTOLPNKOK
3
26
3
35
4
TVZWFPXZWSOZQAUELLTXZGYEB
15
#include <iostream>
#include <fstream>
#include <time.h>
#include <algorithm>
#include <random>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <thread>
#include <chrono>
7
2
570
3209
4
LXBQGQPKJSWRFLZBLNSKWODKG
57
4193
2
180