Description: What does this project do and who does it serve?
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
| /** | |
| * An abstract class that is | |
| * common to several games in | |
| * which players play against | |
| * the others, but only one is | |
| * playing at a given time. | |
| */ | |
| abstract class Game { | |
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
| <?php | |
| function devolver_ordinal($elem, $ordenados){ | |
| for($x=0;$x<count($ordenados);$x++){ | |
| $ordenado = $ordenados[$x]; | |
| if($elem == $ordenado){ | |
| return $x; | |
| } | |
| } | |
| return 999999; | |
| } |
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
| body, h1, h2, h3, div, p, u, strong, img, ul, li, a { margin:0; padding:0;} | |
| #contenedor { width:900px; margin:auto;} | |
| div#cabecera { margin-bottom:20px;} | |
| div div h3 { font-size:28px; color:purple; text-decoration:underline;} | |
| div div #logo h3 { font-size:38px; color:red;} | |
| #logo h3 { color:blue;} | |
| #contenido h1 { padding:2px;} | |
| #contenido h1 { font-size:26px; color:red; padding:5px;} | |
| h1 { border:1px solid black;} | |
| .noticia img { width:200px; height:200px; float:left;} |
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
| <?php | |
| function conectar_con_bd(){ | |
| $user = "root"; | |
| $pass = ""; | |
| $server = "localhost"; | |
| $bd = "bdLibros"; | |
| $link = mysql_connect($server,$user,$pass); | |
| mysql_select_db($bd,$link); | |
| return $link; | |
| } |
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
| <?php | |
| // Importamos el archivo que tiene las funciones para conectar a la base de datos | |
| require_once("c:/wamp/www/ejercicio/modelos/bd_con.php"); | |
| class mProducto{ | |
| public static $categorias = array("Bazar", "Carniceria", "Panaderia", "Regaleria"); | |
| public static $tags = array("Oferta 10%", "Oferta 20%", "Oferta 30%"); | |
| public static $nombreTabla = "Productos"; | |
| private $id; | |
| private $codigo_de_barras; | |
| private $titulo; |
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
| state_machine :initial => :unassigned do | |
| after_transition :on => [:accept, :assign], :do => :save | |
| # Reject | |
| event :reject do | |
| transition :assigned => :unassigned | |
| end | |
| after_transition :on => :reject do |
This quick tips would help you write better user stories, and group them in themes. As a quick reference here are a few examples
- As a customer role, I want goal/desire so that benefit
- As an admin, I want to send register invitations so that I can invite user lists from the old application
- As a regular user I want to have a search bar in the top so that I can easily find what I am looking for
- As a regular user I want to create and save playlists so that I can have my songs organized, and accesible
- Focus on the user: As its name suggests, a user story should tell a story about a customer or user employing the product. Write stories from the user’s perspective and employ user roles, such as corporate user, consumer, admin, marketer.
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 'yaml' | |
| # For some weird reason I ended up creating a script to create specs | |
| # for testing the I18n Locale file. It happens that I never used it anyway | |
| # but it might be of use to someone so I'll leave it here. | |
| # | |
| # This assumes you use I18n, and also uses the YAML gem. The example is | |
| # default configured for the Rails path to the locale file, but off course | |
| # you can change it. | |
| # | |
| # Note: This is just a generator in case you already started your project |