This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| initializer 'generators.rb', <<-RUBY | |
| Rails.application.config.generators do |g| | |
| end | |
| RUBY | |
| template = {"authentication"=>"omniauth", "templating"=>"haml", "unit_testing"=>"test_unit", "css"=>"sass", "javascript"=>"jquery", "integration_testing"=>"on", "orm"=>"datamapper"} | |
| recipes = template.values.flatten | |
| def say_recipe(name); say "\033[36m" + "recipe".rjust(10) + "\033[0m" + " Running #{name} recipe..." end | |
| def say_wizard(text); say "\033[36m" + "wizard".rjust(10) + "\033[0m" + " #{text}" end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| %% | |
| %% exam.sty a style file for exams in the Dept of Maths | |
| %% | |
| %% concocted from: fancyheadings.sty and personal files by Paul Hafner | |
| %% with minor amendments by David McIntyre 7/9/95, 7/5/96 and 16/5/97 | |
| %% and further amendments by David McIntyre 5/5/98 | |
| %% | |
| %% Revised for the post-nDeva style on 14/5/01 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Map.Entry; | |
| import java.util.ArrayList; | |
| public class Main{ | |
| public static void main(String[] args){ | |
| Diccionario es = new Diccionario(); | |
| Diccionario fr = new Diccionario("francés"); | |
| es.addPalabra("examen", "hora y media de estrés"); | |
| fr.addPalabra("quiz", "une chose très amusante"); | |
| System.out.printf("Significado de %s en %s: %s\n", "examen", es.getLenguaje(), es.getSignificado("examen")); | |
| System.out.printf("Significado de %s en %s: %s\n", "imposible", es.getLenguaje(), es.getSignificado("imposible")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package parte2; | |
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| /** | |
| * @author lfborjas | |
| */ | |
| public class Baraja { | |
| public static String[] palos={"diamantes", "tréboles", "corazones", "espadas"}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'grit' | |
| include Grit | |
| GIT_PATH = "/home/git/repositories" | |
| KEYPATH = "/home/git/repositories/gitosis-admin.git/gitosis-export/keydir/" | |
| original_repo = Repo.init_bare_or_open("#{GIT_PATH}/examen1_template.git") | |
| puts "#{Dir.entries(KEYPATH).reject{|name| name=="." || name==".." || name["@"] }.each do |student_key| | |
| puts "Creando repositorio para #{student_key}" | |
| original_repo.fork_bare "#{GIT_PATH}/#{student_key.split("_")[1].split(".")[0]}.git" | |
| end.length} Repositorios creados" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public final class Brontosaurio extends Herbivoro{ | |
| public Brontosaurio(double p){ | |
| super(p); | |
| } | |
| public void comer(SerVivo algo){ | |
| peso = Math.pow(peso, algo.peso); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in `find . -name *.swp`; do; rm $i; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # >---------------------------[ Install Command ]-----------------------------< | |
| # rails new APP_NAME -m http://railswizard.org/257558554d274cfab160.rb -J | |
| # >---------------------------------------------------------------------------< | |
| # | |
| # _____ _ _ __ ___ _ | |
| # | __ \ (_) | \ \ / (_) | | | |
| # | |__) |__ _ _| |___\ \ /\ / / _ ______ _ _ __ __| | | |
| # | _ // _` | | / __|\ \/ \/ / | |_ / _` | '__/ _` | | |
| # | | \ \ (_| | | \__ \ \ /\ / | |/ / (_| | | | (_| | | |
| # |_| \_\__,_|_|_|___/ \/ \/ |_/___\__,_|_| \__,_| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Característica: administrar libros y solucionarios | |
| Para pasar mis clases | |
| Como un alumno inteligente | |
| Quiero obtener solucionarios y aportarlos | |
| Escenario: buscar solucionarios | |
| Dado que existen los siguientes solucionarios: | |
| |nombre| autor| | |
| | física | chuck norris| | |
| | mate | tarantino | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.List; | |
| import java.util.LinkedList; | |
| import java.util.HashMap; | |
| public class Pokemon implements Comparable{ | |
| String nombre; | |
| int nivel; | |
| int vida; | |
| static List ataquesPosibles; | |
| List ataquesAprendidos; | |
| { |