Skip to content

Instantly share code, notes, and snippets.

View Bigomby's full-sized avatar

Diego Fernández Bigomby

  • Morón de la Frontera, Spain
View GitHub Profile

Instalar Warcraft III y Eurobattle.net

Instalación de Warcraft III: Reign of Chaos y Frozen Throne

  1. En primer lugar hay que descargarse las dos ISOS de los siguientes enlaces

  2. Para instalarlos tendrás que montar el ISO usando un programa como WinCDEmu. Una vez lo hayas montado podrás iniciar la instalación.

    1. Cuando pida una clave CD puedes usar el keygen que se encuentra en CD que está montado.

@Bigomby
Bigomby / pre-commit.sh
Created July 15, 2016 09:17
Pre commit hook to verify an app pass tests
#!/bin/sh
# stash any unstaged changes
git stash -q --keep-index
# run the tests
make tests
# store the last exit code in a variable
RESULT=$?
@Bigomby
Bigomby / unit-vs-integration.adoc
Last active July 21, 2016 12:08
Unit testig vs. Integration testing

Unit tests vs. Integration tests

Unit test Integration test

Results depends only on code

Results also depends on external systems

Easy to write and verify

Setup of integration test might be complicated

A single class/unit is tested in isolation

One or more components are tested

All dependencies are mocked if needed

No mocking is used (or only unrelated components are mocked)

Test verifies only implementation of code

Test verifies implementation of individual components and their interconnection behaviour when they are used together

// libraries
#include <stdlib.h>
#include <GSM.h>
#include <SPI.h>
#include <String.h>
#include <PubSubClient.h>
///////////////////////GSM///////////////////////
// PIN Number
#define PINNUMBER ""
// APN data

Guía de instalación de aplicaciones Go para redborder

A continuación se detalla cómo se construyen e instalan las aplicaciones de redborder escritas en Go. Son las siguientes:

@Bigomby
Bigomby / rb-github-labels.js
Last active October 26, 2016 14:19
Add redborder's github labels
[
{
"name": "Blocked",
"color": "e99695"
},
{
"name": "bug",
"color": "fc2929"
},
{
@Bigomby
Bigomby / salas_api_example.py
Created December 24, 2016 11:20
Ejemplo básico de uso de la API de reserva de salas
import requests
class colors:
OK = "\033[92m"
FAIL = "\033[91m"
ENDC = "\033[0m"
BOLD = "\033[1m"
def print_turn(turn):
print(' ▶ [{}]:'.format(turn["time"]), end="")
@Bigomby
Bigomby / salas-watcher.py
Last active January 9, 2017 14:44
Script para comprobar si una sala se queda libre
#!/usr/bin/python3
import requests
import time
import datetime
import gi
gi.require_version('Notify', '0.7')
from gi.repository import Notify
/* eslint no-alert: "off"*/
const LON_MIN = 8;
const LON_MAX = 15;
const ERRORS = {
1: `La contrasea no tiene una longitud minima (${LON_MIN})`,
2: `La contraseña no tiene una longitud maxima (${LON_MAX})`,
3: 'La contraseña debe tener al menos un numero',
4: 'La contraseña debe tener al menos una Mayuscula',
0x3670ec6BE115639c8E83F584140181b853339c61