Skip to content

Instantly share code, notes, and snippets.

View gonzalezgarciacristian's full-sized avatar

Cristian González García gonzalezgarciacristian

View GitHub Profile
@gonzalezgarciacristian
gonzalezgarciacristian / evenFactorialExercise.py
Last active August 29, 2015 14:07
Python: even and factorial
__author__ = 'Cris'
import unittest
class EvenFactorial(unittest.TestCase):
def even(self, n):
pass
@gonzalezgarciacristian
gonzalezgarciacristian / primeNumbersExercise.py
Last active August 29, 2015 14:07
Python: Prime Numbers
__author__ = 'Cris'
import unittest
class PrimeNumbers(unittest.TestCase):
def is_prime(self, n):
pass
@gonzalezgarciacristian
gonzalezgarciacristian / inheritanceExercise.py
Last active August 29, 2015 14:07
Python: Herencia con Figuras
__author__ = 'Cris'
import math
# Figure, Circle and Square
# Figure, Circle and Square
# Figure, Circle and Square
# Figure, Circle and Square
# Figure, Circle and Square
@gonzalezgarciacristian
gonzalezgarciacristian / classesExercise.py
Created October 18, 2014 13:49
Python: Team, Players and Coach
__author__ = 'Cris'
# Team, Coach, Player
# Team, Coach, Player
# Team, Coach, Player
# Team, Coach, Player
# Team, Coach, Player
@gonzalezgarciacristian
gonzalezgarciacristian / examExercise.py
Last active August 29, 2015 14:07
Python: Diccionaries
__author__ = 'Cris'
import unittest
class Exam(unittest.TestCase):
def calculate_notes(self, solutions, all_answers):
pass
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
package tests;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import main.Operaciones;
import static org.junit.Assert.*;
package tests;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import analizador.Lexico;
public class LexicoTestsUnit {
package tests;
import static org.junit.Assert.*;
import org.junit.Test;
import models.Player;
import models.NPC;
import models.Place;