This file contains 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 es.pdonaire.mensajeria.pojo; | |
import java.io.Serializable; | |
import java.util.Date; | |
public class Mensaje implements Serializable{ | |
private static final long serialVersionUID = 1L; | |
private String from; |
This file contains 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 es.pdonaire.mensajeria.pojo; | |
import java.io.Serializable; | |
import java.util.Date; | |
public class Usuario implements Serializable { | |
private static final long serialVersionUID = 1L; | |
private String nickname; |
This file contains 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
if (inputSequence.size() < 2) { //inputSequence cannot be null | |
return inputSequence.size(); | |
} else { | |
Integer maxSlice = 1; | |
Integer tempSlice = 1; | |
Integer numberOne = inputSequence.get(0); | |
Integer indexOne = 0; | |
Integer numberTwo = null; |
This file contains 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
class FormsController < ApplicationController | |
before_filter :customer_can_review?, only: :review | |
before_filter :require_user, only: [:index, :show, :edit, :update, :destroy, :confirm] | |
# GET /forms | |
# GET /forms.json | |
def index | |
@forms = Form.all | |
respond_to do |format| | |
format.html # index.html.erb |
This file contains 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
MacBook-Air-de-Pablo:cleverShop pdonaire$ rspec spec/controllers/admin/pedidos_controller_spec.rb | |
/Users/pdonaire/.rvm/gems/ruby-1.9.3-p392@clevershop/gems/better_errors-0.8.0/lib/better_errors/core_ext/exception.rb:9: [BUG] Segmentation fault | |
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.2.1] | |
-- Control frame information ----------------------------------------------- | |
c:0067 p:---- s:0207 b:0207 l:000206 d:000206 CFUNC :callers | |
c:0066 p:0064 s:0204 b:0204 l:001170 d:000f90 LAMBDA /Users/pdonaire/.rvm/gems/ruby-1.9.3-p392@clevershop/gems/better_errors-0.8.0/lib/better_errors/core_ext/exception.rb:9 |
This file contains 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
class Compiler | |
def self.compile doc | |
puts "INICIO COMPILACION" | |
tokens = compile_documento doc | |
puts "FIN COMPILACION" | |
if tokens[0] != :error | |
puts "INICIO SINTACTICO" | |
tokens = syntax_doc tokens | |
puts "FIN SINTACTICO" |