Skip to content

Instantly share code, notes, and snippets.

View jjballano's full-sized avatar

jjballano jjballano

View GitHub Profile
SCORE_OF = {1=>100, 2=>0, 3=>0, 4=>0, 5=>50, 6=>0}
SCORE_OF_A_SET_OF_THREE = {1=>1000, 2=>200, 3=>300, 4=>400, 5=>500, 6=>600}
def score(dice)
score = 0
(1..6).each{ |number|
score += score_of_set_of(number, dice)
}
return score
end
class Student < ActiveRecord::Base
validates :first_name, :presence => true
end
class Student < ActiveRecord::Base
validates :first_name, :presence => true
end
def index
@students = Student.all
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @students }
end
end
def show
@student = Student.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @student }
end
end
<p id="notice"><%= notice %></p>
<p>
<b>First name:</b>
<%= @student.first_name %>
</p>
<p>
<b>Last name:</b>
<%= @student.last_name %>
@TestFor(MyService)
class MyServiceSpec extends Specification {
void "any test"(){
given:
anotherService.xyz() >> 7
when:
Integer value = service.anyMethod()
then:
Attaching to process ID 4761, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.51-b03
Deadlock Detection:
No deadlocks found.
Thread 21113: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)

Looking for new adventures

(12/2019)

It's been more than 2 years since I started working with Tymit as a contractor and all this time I've tried my best to help them to launch an amazing product that I'm sure will be a huge success. But I think it's time to move on and will leave the project at the end of this year and I’m looking for a new adventure to start on early 2020.

For more than 15 years I have been working as a software developer and that’s what I like and want to do.

What I’m looking for?